Skip to main content
GET
Retrieve a background-removal job's status and result
Retrieve the status of a background-removal job. While it is pending or processing, keep polling; once completed, the response carries a single image result object — a transparent PNG with a presigned url valid for 24 hours. A cache-hit job is born completed with its result already attached. Only jobs your organization created are visible; any other id returns 404 not_found. Requires the images.transform scope.

Example: completed job

The image is a derived-format result object; for background removal model, width, and height are always null. This example is a cache hit, so credits_used is 0 (a normal miss shows 1):
200 OK
Pass a webhook_url on the original background-removal request to receive a signed callback instead of polling — on a cache hit the completed event fires immediately. See Webhooks.

Authorizations

Authorization
string
header
required

Organization API key as a bearer token: Authorization: Bearer samsa_sk_....

Path Parameters

background_removal_id
string<uuid>
required

Response

Successful Response

GET /images/background-removals/{id} body (SAM-820 / S8.8 — ADR §7.2).

The standard async-job envelope plus ONE nullable image result object (an image_formats derivative — a transparent PNG — built by the S8.2 egress builder; model/width/height are always null for background removal). created_at is the job's submit time from the credit ledger (the image_generation_tasks table has no created_at column). A cache-hit job is born completed with a frozen result; a normal job progresses pending → processing → completed/failed.

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

pending, processing, completed, failed, or cancelled.

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 (0 for a cache hit).

Example:

1

image
PublicImageFormatResult · object | null

The produced transparent PNG (presigned URL); null until completed.

error
string | null

Failure detail when status is failed; otherwise null.