Zum Hauptinhalt springen
GET
Retrieve an image-variations job's status and results
Rufe den Status eines Variations-Jobs ab. Solange er pending oder processing ist, frage weiter ab; sobald completed, enthält die Antwort die erzeugten images, jedes mit einer presigned url, 24 Stunden gültig. Nur Jobs, die deine Organisation erstellt hat, sind sichtbar; jede andere id liefert 404 not_found. Erfordert den images.transform-Scope.

Beispiel: abgeschlossener Job

200 OK
Übergib eine webhook_url bei der ursprünglichen Variations-Anfrage, um statt Polling einen signierten Callback zu erhalten. Siehe Webhooks.

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

variation_id
string<uuid>
erforderlich

Antwort

Successful Response

GET /images/variations/{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>
erforderlich
status
enum<string>
erforderlich

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.

Verfügbare Optionen:
pending,
processing,
completed,
failed,
cancelled
Beispiel:

"completed"

created_at
string<date-time>
erforderlich

When the job was submitted.

credits_used
integer | null

Net credits charged for this job, after any refunds.

Beispiel:

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.

Beispiel:

"delivery_blocked_compliance: compliance_failed_signing"