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

PSD Mockup → Get Job

AI-generated

Summary

Retrieve the current status and result details of an asynchronous PSD Mockup-related job by its job ID, optionally polling until the job reaches a terminal state (succeeded, failed, or cancelled).

Inputs

  • Job ID (required) — The unique job_id returned by a prior asynchronous PSD Mockup render, upload, video, or photo mockup request.
  • Wait for Completion — Boolean flag indicating whether to poll the job status until it reaches a terminal state instead of returning immediately with the current status.
  • Poll Timeout (Seconds) — Maximum number of seconds to wait when polling the job status for completion; applicable only if 'Wait for Completion' is true.

Output shape

a single job status object

The output contains the job status and relevant result data. If the job is of kind 'upload' and includes a mockup UUID, it is surfaced as 'resultMockupUuid'. If the job provides a 'result_url' (e.g. for render or video jobs), it is surfaced as 'resultUrl'. When polling for completion, the node blocks until the job reaches a terminal status or the timeout expires, after which it returns the final job state. Otherwise, it returns the current job state immediately.

Examples

Example 1: Query a PSD Mockup render job by its ID, waiting up to 5 minutes for completion, and then process the result URL to access the rendered image.

Set 'Job ID' to the target job UUID, enable 'Wait for Completion', and set 'Poll Timeout (Seconds)' to 300.

Links

Discussion