Skip to content
Pixmato
Esc
↑↓navigate↵open⌘Jpreview
On this page

Get Render

Inspect one render job, request, response, outputs, and failure state.

Fetch one render job by ID.

Endpoint

GET https://api.pixmato.com/v1/renders/:id

Request

curl "https://api.pixmato.com/v1/renders/rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
  "templateId": "YOUR_TEMPLATE_ID",
  "kind": "single",
  "status": "completed",
  "error": null,
  "errorCode": null,
  "requestJson": {
    "template": "YOUR_TEMPLATE_ID",
    "modifications": {
      "headline": "Spring drop"
    },
    "output": {
      "format": "png",
      "scale": 2
    }
  },
  "responseJson": {
    "id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
    "status": "completed",
    "output_url": "https://storage.pixmato.com/workspaces/ws_01/renders/rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G.png",
    "duration_ms": 842,
    "template": "YOUR_TEMPLATE_ID"
  },
  "outputs": [
    {
      "url": "https://storage.pixmato.com/workspaces/ws_01/renders/rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G.png",
      "format": "png",
      "width": 1200,
      "height": 630,
      "scale": 2
    }
  ]
}

Status values

Status Meaning
pending Job is waiting to start.
processing Renderer is generating output.
completed Output is available.
failed Render failed. error says what to fix and errorCode is the stable code from Errors.

A failed render

{
  "id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
  "status": "failed",
  "error": "Image \"photo\" could not be loaded from https://cdn.harborlight.com/menu/lemon-farro.jpg: the server responded with HTTP 404. Check that the URL opens in a browser without signing in, or upload the image to your workspace. Nothing was charged.",
  "errorCode": "asset_unavailable",
  "responseJson": {
    "id": "rnd_01JY7R8Q7S2K3B4A5C6D7E8F9G",
    "status": "failed",
    "code": "asset_unavailable",
    "error": "Image \"photo\" could not be loaded from https://cdn.harborlight.com/menu/lemon-farro.jpg: the server responded with HTTP 404. Check that the URL opens in a browser without signing in, or upload the image to your workspace. Nothing was charged.",
    "duration_ms": 612,
    "template": "YOUR_TEMPLATE_ID"
  },
  "outputs": []
}

Was this page helpful?