Vai al contenuto principale
GET
Retrieve a resize job's status and results
Recupera lo stato di un job di ridimensionamento. Finché è pending o processing, continua a interrogare; una volta completed, la risposta include le images prodotte, ognuna con un presigned url valido per 24 ore. Sono visibili solo i job creati dalla tua organizzazione; qualsiasi altro id restituisce 404 not_found. Richiede lo scope images.transform.

Esempio: job completato

200 OK
Passa un webhook_url nella richiesta di ridimensionamento originale per ricevere una callback firmata invece di interrogare. Vedi Webhook.

Autorizzazioni

Authorization
string
header
obbligatorio

Organization API key (Authorization: Bearer samsa_sk_...) or OAuth 2.1 access token (Authorization: Bearer samsa_at_...).

Parametri del percorso

resize_id
string<uuid>
obbligatorio

Risposta

Successful Response

GET /images/resizes/{id} body — same contract as image generation.

Backed by image_generation_tasks like the other image jobs; a distinct component name for the docs.

id
string<uuid>
obbligatorio
status
enum<string>
obbligatorio

pending, processing, completed, failed, or cancelled. A job whose outputs ALL failed the compliance pipeline (for example C2PA signing) is failed with error starting delivery_blocked_compliance — a terminal state, so stop polling.

Opzioni disponibili:
pending,
processing,
completed,
failed,
cancelled
Esempio:

"completed"

created_at
string<date-time>
obbligatorio

When the job was submitted.

credits_used
integer | null

Net credits charged for this job, after any refunds.

Esempio:

5

images
PublicImageAsset · object[]

Produced images (presigned URLs); empty until completed.

blocked_images
PublicBlockedImage · object[]

Produced images that are permanently withheld because they failed the compliance pipeline, each with its compliance code. Empty unless a completed job delivered only some of its outputs, or a failed job was blocked by compliance.

error
string | null

Failure detail when status is failed; otherwise null. A compliance block reads delivery_blocked_compliance: <codes>, where <codes> are the blocked_images reasons.

Esempio:

"delivery_blocked_compliance: compliance_failed_signing"