> ## Documentation Index
> Fetch the complete documentation index at: https://sudomock.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> The base URL is https://api.sudomock.com.
> Authenticate every request with the x-api-key header. Keys begin with sm_.
> A render returns the finished image at data.print_files[0].export_path. A request sent with is_async true returns a job_id to poll at GET /api/v1/jobs/{job_id}.
> Prefer the official SDKs over hand-written HTTP calls: npm install sudomock for Node, pip install sudomock for Python.

# Retrieve a single job

> Poll an async render, video, upload, photo mockup creation, or seam fix job. Returns its current status and result when available.

```js Node.js theme={"theme":{"light":"github-light","dark":"vesper"}}
const response = await fetch("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
  method: "GET",
  headers: { "x-api-key": "sm_your_api_key" },
});

const data = await response.json();
console.log(data);
```

```php PHP theme={"theme":{"light":"github-light","dark":"vesper"}}
<?php

$ch = curl_init("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "x-api-key: sm_your_api_key",
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
```

```python Python theme={"theme":{"light":"github-light","dark":"vesper"}}
import requests

response = requests.get(
    "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6",
    headers={"x-api-key": "sm_your_api_key"},
)

response.raise_for_status()
print(response.json())
```

```ruby Ruby theme={"theme":{"light":"github-light","dark":"vesper"}}
require "net/http"
require "uri"

uri = URI("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6")
request = Net::HTTP::Get.new(uri)
request["x-api-key"] = "sm_your_api_key"

response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http|
  http.request(request)
end

puts response.body
```

```go Go theme={"theme":{"light":"github-light","dark":"vesper"}}
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("x-api-key", "sm_your_api_key")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
```

```java Java theme={"theme":{"light":"github-light","dark":"vesper"}}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6"))
    .header("x-api-key", "sm_your_api_key")
    .GET()
    .build();

HttpResponse<String> response = HttpClient.newHttpClient()
    .send(request, HttpResponse.BodyHandlers.ofString());

System.out.println(response.body());
```

```csharp .NET theme={"theme":{"light":"github-light","dark":"vesper"}}
using System.Net.Http;
using System.Text;

var request = new HttpRequestMessage(HttpMethod.Get, "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6");
request.Headers.Add("x-api-key", "sm_your_api_key");

var client = new HttpClient();
var response = await client.SendAsync(request);

Console.WriteLine(await response.Content.ReadAsStringAsync());
```

```bash cURL theme={"theme":{"light":"github-light","dark":"vesper"}}
curl -X GET "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "x-api-key: sm_your_api_key"
```

```json Response theme={"theme":{"light":"github-light","dark":"vesper"}}
{
  "created_at": "2026-09-18T10:24:31.482913+00:00",
  "credits_charged": 38,
  "job_id": "5f1c0b2a-7d43-4e9a-8c16-0b5d3f7a2e94",
  "kind": "video",
  "model": "veo-3.1-fast",
  "outcome_tier": "standard",
  "result_url": "https://cdn.sudomock.com/mockup-assets/videos/5f1c0b2a/clip.mp4",
  "status": "succeeded",
  "updated_at": "2026-09-18T10:41:07.118204+00:00",
  "error": null,
  "mockup_uuid": null,
  "payg": null,
  "watermark": null
}
```


## OpenAPI

````yaml openapi.json GET /api/v1/jobs/{job_id}
openapi: 3.1.0
info:
  title: SudoMock API
  description: >-
    Product mockup API. Render PSD templates, turn product photos into reusable
    mockups, create still images and videos, personalize text with fonts, and
    manage asynchronous jobs and signed webhooks.


    Every endpoint answers failures with the same envelope, so the status codes,
    the error_code values and the retry rule are documented once at
    https://sudomock.com/docs/errors rather than repeated per operation.
  version: 1.0.0
servers:
  - url: https://api.sudomock.com
    description: Production
security: []
tags:
  - name: PSD mockups
    description: Turn a Photoshop file into a reusable mockup, then render it.
  - name: Photo mockups
    description: Turn a product photo into a reusable mockup, then render artwork onto it.
  - name: Video mockups
    description: Render a mockup as a short video.
  - name: Fonts
    description: Upload and manage the fonts available to text layers.
  - name: Background removal
    description: Isolate a subject from its background as a standalone step.
  - name: Patterns
    description: Check a repeating pattern tile for seams and fix them.
  - name: Studio
    description: Open an embedded editor session and read what the customer produced in it.
  - name: Webhook endpoints
    description: Register signed endpoints and manage their secrets.
  - name: Webhook deliveries
    description: Inspect, replay and retry what those endpoints received.
  - name: Jobs
    description: Poll queued renders and seam fixes, and read their results.
  - name: Account
    description: Read the current account, its plan and its remaining credits.
paths:
  /api/v1/jobs/{job_id}:
    get:
      tags:
        - Jobs
      summary: Retrieve a single job
      description: >-
        Poll an async render, video, upload, photo mockup creation, or seam fix
        job. Returns its current status and result when available.
      operationId: get_job_api_v1_jobs__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            description: Id returned when this job was accepted.
          description: Id returned when this job was accepted.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobStatusResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: Node.js
          source: >-
            const response = await
            fetch("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6",
            {
              method: "GET",
              headers: { "x-api-key": "sm_your_api_key" },
            });


            const data = await response.json();

            console.log(data);
        - lang: PHP
          source: >-
            <?php


            $ch =
            curl_init("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6");

            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            curl_setopt($ch, CURLOPT_HTTPHEADER, [
                "x-api-key: sm_your_api_key",
            ]);


            $response = curl_exec($ch);

            curl_close($ch);


            echo $response;
        - lang: Python
          source: |-
            import requests

            response = requests.get(
                "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6",
                headers={"x-api-key": "sm_your_api_key"},
            )

            response.raise_for_status()
            print(response.json())
        - lang: Ruby
          source: >-
            require "net/http"

            require "uri"


            uri =
            URI("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6")

            request = Net::HTTP::Get.new(uri)

            request["x-api-key"] = "sm_your_api_key"


            response = Net::HTTP.start(uri.host, uri.port, use_ssl: true) do
            |http|
              http.request(request)
            end


            puts response.body
        - lang: Go
          source: "package main\n\nimport (\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\treq, err := http.NewRequest(\"GET\", \"https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6\", nil)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\treq.Header.Set(\"x-api-key\", \"sm_your_api_key\")\n\n\tres, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer res.Body.Close()\n\n\tbody, _ := io.ReadAll(res.Body)\n\tfmt.Println(string(body))\n}"
        - lang: Java
          source: |-
            import java.net.URI;
            import java.net.http.HttpClient;
            import java.net.http.HttpRequest;
            import java.net.http.HttpResponse;

            HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create("https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6"))
                .header("x-api-key", "sm_your_api_key")
                .GET()
                .build();

            HttpResponse<String> response = HttpClient.newHttpClient()
                .send(request, HttpResponse.BodyHandlers.ofString());

            System.out.println(response.body());
        - lang: .NET
          source: >-
            using System.Net.Http;

            using System.Text;


            var request = new HttpRequestMessage(HttpMethod.Get,
            "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6");

            request.Headers.Add("x-api-key", "sm_your_api_key");


            var client = new HttpClient();

            var response = await client.SendAsync(request);


            Console.WriteLine(await response.Content.ReadAsStringAsync());
        - lang: cURL
          source: >-
            curl -X GET
            "https://api.sudomock.com/api/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6"
            \
              -H "x-api-key: sm_your_api_key"
components:
  schemas:
    JobStatusResponse:
      properties:
        job_id:
          type: string
          description: Identifier of this job.
          examples:
            - 5f1c0b2a-7d43-4e9a-8c16-0b5d3f7a2e94
        kind:
          type: string
          description: >-
            What this job does: render, video, upload, 2d_create, 2d_render,
            photo_mockup_create, photo_mockup_render or seam_fix.
          examples:
            - video
        status:
          type: string
          enum:
            - queued
            - dispatched
            - running
            - succeeded
            - failed
            - cancelled
          description: >-
            Where the job stands, and it is over once this reads succeeded,
            failed or cancelled.
        result_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Link to the finished file, or the path of the mockup that was
            created, and null until the job succeeds.
          examples:
            - https://cdn.sudomock.com/mockup-assets/videos/5f1c0b2a/clip.mp4
        mockup_uuid:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Identifier of the mockup this job created, and null for jobs that
            hand back a file instead.
        error:
          anyOf:
            - $ref: '#/components/schemas/JobError'
            - type: 'null'
          description: >-
            Why the job produced no result, and null unless it failed or was
            cancelled.
        credits_charged:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Credits you actually paid for this job, which is zero once a failed
            or cancelled job has been refunded.
          examples:
            - 38
        payg:
          anyOf:
            - $ref: '#/components/schemas/JobPaygCost'
            - type: 'null'
          description: >-
            Pay as you go cost of this job, and null when it was paid for with
            plan or extra credits.
        watermark:
          anyOf:
            - $ref: '#/components/schemas/JobWatermark'
            - type: 'null'
          description: >-
            Why this result is marked and how to get unmarked results, and null
            when the result is clean.
        created_at:
          type: string
          description: When this job was submitted.
          examples:
            - '2026-09-18T10:24:31.482913+00:00'
        updated_at:
          type: string
          description: When this job last changed.
          examples:
            - '2026-09-18T10:41:07.118204+00:00'
        model:
          anyOf:
            - type: string
            - type: 'null'
          description: The video model that produced this clip, present on video jobs only.
        outcome_tier:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The quality level this clip was produced at, present on video jobs
            only.
          examples:
            - standard
        alternative_url:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Link to a second fixed version of the tile, present on seam fix jobs
            only, and null unless the job succeeded with one.
        result_status:
          anyOf:
            - type: string
              enum:
                - seamless
                - faint_seam
                - visible_seam
            - type: 'null'
          description: >-
            How the fixed tile repeats, checked again at no cost: seamless,
            faint_seam or visible_seam. Present on seam fix jobs only, and null
            until the job succeeds.
          examples:
            - seamless
        changes:
          anyOf:
            - type: string
              enum:
                - edges
                - whole_tile
                - rearranged
            - type: 'null'
          description: >-
            What the fix changed: edges when only the area along the edges
            changed, whole_tile when the change reaches across the tile,
            rearranged when motifs were moved so none is cut. Present on seam
            fix jobs only, and null until the job succeeds.
          examples:
            - edges
        fine_detail:
          anyOf:
            - type: string
              enum:
                - unchanged
                - softer
            - type: 'null'
          description: >-
            How the tile's fine detail came out of the fix: unchanged, or softer
            when the tile was rebuilt. Present on seam fix jobs only, and null
            until the job succeeds and on fixes older than this field.
          examples:
            - unchanged
        changed_area:
          anyOf:
            - type: string
              enum:
                - part
                - whole
            - type: 'null'
          description: >-
            How much of the tile the fix changed: part, or whole when all of it
            changed. Present on seam fix jobs only, and null until the job
            succeeds and on fixes older than this field.
          examples:
            - part
        stage:
          anyOf:
            - type: string
              enum:
                - queued
                - fixing
                - finishing
            - type: 'null'
          description: >-
            How far a seam fix has come: queued, fixing or finishing. It only
            moves forward. Present on seam fix jobs only.
          examples:
            - fixing
      type: object
      required:
        - job_id
        - kind
        - status
        - created_at
        - updated_at
      title: JobStatusResponse
      description: Where a job stands right now, and its result once it has finished.
      example:
        created_at: '2026-09-18T10:24:31.482913+00:00'
        credits_charged: 38
        job_id: 5f1c0b2a-7d43-4e9a-8c16-0b5d3f7a2e94
        kind: video
        model: veo-3.1-fast
        outcome_tier: standard
        result_url: https://cdn.sudomock.com/mockup-assets/videos/5f1c0b2a/clip.mp4
        status: succeeded
        updated_at: '2026-09-18T10:41:07.118204+00:00'
        error: null
        mockup_uuid: null
        payg: null
        watermark: null
    JobError:
      properties:
        error_code:
          type: string
          description: Stable code for this failure, safe to branch on in your own code.
          examples:
            - JOB_FAILED
        message:
          type: string
          description: Plain language explanation of what went wrong.
          examples:
            - The job could not be completed.
        details:
          anyOf:
            - $ref: '#/components/schemas/JobErrorDetails'
            - type: 'null'
          description: >-
            More about this failure, present only when error_code is
            TILE_NOT_FIXABLE.
      type: object
      required:
        - error_code
        - message
      title: JobError
      description: Why a job produced no result.
    JobPaygCost:
      properties:
        credits:
          anyOf:
            - type: integer
            - type: 'null'
          description: Credits this job bills.
          examples:
            - 38
        unit_price:
          anyOf:
            - type: number
            - type: 'null'
          description: Price of one credit in US dollars for this account.
          examples:
            - 0.0093
        cost:
          anyOf:
            - type: number
            - type: 'null'
          description: >-
            Total US dollars for this job, the credits multiplied by the unit
            price.
          examples:
            - 0.3534
      type: object
      title: JobPaygCost
      description: What this job costs at the account's pay as you go rate.
    JobWatermark:
      properties:
        reason:
          type: string
          description: Why this result was marked.
        remove_url:
          type: string
          description: Where to go to start getting unmarked results.
          examples:
            - https://sudomock.com/dashboard/billing?action=topup#payg-section
      type: object
      required:
        - reason
        - remove_url
      title: JobWatermark
      description: >-
        Why the result carries a watermark, and where to get results without
        one.
    JobErrorDetails:
      properties:
        reason:
          anyOf:
            - type: string
              enum:
                - not_a_pattern_tile
                - no_clean_result
            - type: 'null'
          description: >-
            Why a seam fix ended with TILE_NOT_FIXABLE: not_a_pattern_tile when
            the image is not a repeating pattern tile, no_clean_result when no
            fixed version of the tile repeated cleanly.
          examples:
            - no_clean_result
      type: object
      title: JobErrorDetails
      description: More about why a job produced no result.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key with sm_ prefix. Get your key at
        https://sudomock.com/dashboard/api-keys

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.