SudoMock icon

SudoMock

Generate PSD mockups, photo mockups and product videos for Print-on-Demand automation. Upload PSDs, turn product photos into mockups, render with your designs, render videos, run renders asynchronously, track jobs, and manage webhooks.

Actions229

Image → Get Job

AI-generated

Summary

Retrieve the status and details of an asynchronous job by its job_id, optionally polling until the job reaches a terminal state (succeeded, failed, or cancelled).

Inputs

  • Job ID (required) — The job_id returned by a previous asynchronous render, upload, video, or photo mockup request.
  • Wait for Completion — Whether to poll the job status until it reaches a terminal state instead of returning the current state immediately.
  • Poll Timeout (Seconds) — Maximum time in seconds to wait while polling for job completion; applicable only if 'Wait for Completion' is true.

Output shape

a single JSON object detailing the job status, including its current state, results URL or mockup UUID if available, and job details.

If 'Wait for Completion' is enabled, the node polls the job until it finishes or the timeout expires, throwing an error on timeout. The returned job object contains a flattened 'resultUrl' or 'resultMockupUuid' for easier access depending on the job kind.

Examples

Example 1: Retrieve job status by job_id without waiting

Set 'Job ID' to the known job UUID and leave 'Wait for Completion' false (default). The node returns the current state of the job immediately.

Example 2: Wait for job to complete and get final results

Set 'Job ID' to the known job UUID, enable 'Wait for Completion', and optionally adjust 'Poll Timeout (Seconds)' as needed. The node blocks execution until the job completes or times out, returning the final job status and result URL or mockup UUID.

Links

Discussion