Skip to main content
GET
Retrieve an image edit's status and results
Retrieve the status of a Magic Edit job. While it is pending or processing, keep polling; once completed, the response carries the edited images, each with a presigned url valid for 24 hours. Only edit jobs your organization created are visible; any other id returns 404 not_found.
Compliance blocks. If all outputs failed the compliance pipeline (for example C2PA signing), the job is failed with error delivery_blocked_compliance: <codes> — terminal, so stop polling. If only some failed it, the job is completed: images holds the deliverable outputs and blocked_images lists the others as { id, reason }. See Get an image generation.
Pass a webhook_url on the original edit request to receive a signed callback instead of polling. See Webhooks.

Authorizations

Authorization
string
header
required

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

Path Parameters

edit_id
string<uuid>
required

Response

Successful Response

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

Both are backed by image_generation_tasks; a distinct name for the docs.

id
string<uuid>
required
status
enum<string>
required

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.

Available options:
pending,
processing,
completed,
failed,
cancelled
Example:

"completed"

created_at
string<date-time>
required

When the job was submitted.

credits_used
integer | null

Net credits charged for this job, after any refunds.

Example:

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.

Example:

"delivery_blocked_compliance: compliance_failed_signing"