Job status and, once paid, its deliverable files
Documents @snap4id-sdk/partner-api 1.0.0
import { createPartnerClient } from '@snap4id-sdk/partner-api';
const snap4id = createPartnerClient({ baseUrl: 'https://snap4.id', partnerId: 'your-partner-id', keyId: process.env.SNAP4ID_KEY_ID, privateKey: process.env.SNAP4ID_PARTNER_KEY_PEM, // Ed25519 PKCS#8 PEM});
const job = await snap4id.getJob('eu-6f1c2b9e-3d4a-4b8f-9c2e-1a7d5e3f0b42');if (job.paid) for (const file of job.artifacts ?? []) await copy(file.url, file.filename);# Signed with your Ed25519 key: build the canonical string and the five headers as described# in the overview (or use @snap4id-sdk/partner-api, which does it for you).curl -X GET 'https://snap4.id/api/v1/partner/jobs/eu-6f1c2b9e-3d4a-4b8f-9c2e-1a7d5e3f0b42' \ -H 'x-partner-id: your-partner-id' \ -H 'x-key-id: <your key id>' \ -H 'x-timestamp: <unix epoch ms>' \ -H 'x-request-id: <fresh UUID v4>' \ -H 'x-signature: <base64 Ed25519 signature>'Status of one of the partner’s jobs (crash recovery without the WebView). artifacts is present only when paid is true: the deliverables in metadata order, titles in the partner’s locale, each url the job’s existing signed link (stable across calls, never re-signed) valid until expires_at (the job’s retention end) — copy the files before then. Served during maintenance.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Job id ({zone}-{uuid} or a legacy bare uuid). Unknown, malformed, unroutable and other partners’ jobs all answer the same 404 not_found (no existence oracle).
Job id ({zone}-{uuid} or a legacy bare uuid). Unknown, malformed, unroutable and other partners’ jobs all answer the same 404 not_found (no existence oracle).
Responses
Section titled “Responses”OK
Partner API job status
object
Job status
Deliverable artifact link
object
Artifact code
Title in the partner’s locale (en-us fallback)
Snap4id-{order_code}-{code}{extension}
The job’s existing signed link
The job’s expires_at (files gone after)
Example generated
{ "job_id": "example", "status": "example", "paid": true, "order_code": "example", "artifacts": [ { "code": "example", "title": "example", "mime_type": "example", "filename": "example", "url": "https://example.com", "expires_at": "2026-04-15T12:00:00Z" } ]}Headers
Section titled “Headers”unauthorized
Embed / Partner API error
object
object
Examples
{ "error": { "code": "unauthorized" }}not_found
Embed / Partner API error
object
object
Examples
{ "error": { "code": "not_found" }}Retryable server error (body not part of the contract). Retry with a fresh x-request-id (also: a paid job whose links are not ready yet).
