Common capabilitiesAPI referenceJobsRetrieve a job result

Retrieve a job result

After a job succeeds, get a short-lived download URL for the result file. Call again for a new URL after it expires. retained_until is when the result file stops being retained.

Authentication

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

Credentials in the examples are placeholders. Replace them and run the examples on your server.

Code examples

curl -X GET 'https://shixux.com/api/v1/jobs/job_id_example/result' \  -H 'X-API-Key: yb_xxx_yyy'
{  "id": "job_xxx",  "status": "queued"}

Path Parameters

job_id*Job Id

Response Body

Request succeeded

application/json
  1. response
expires_in?integer|null
id*Id
result_url?string|null
retained_until?|

When the asset or result file stops being retained. Request a new download URL after one expires.

status*JobStatus
Value in"queued""processing""succeeded""failed""cancelled"
preview_url?string
preview_status?string
Value in"pending""ready""expired"
thumbnail_url?string

Optional signed, aspect-preserving image thumbnail for canvas display.

On this page