Information
- OpenAPI version:
3.1.0
Documents @snap4id-sdk/partner-api 1.0.0
Server-to-server API between your backend and Snap4ID: unlock a job after you verified a store purchase, read a
job and its files, and receive the signed job.paid webhook. Server-side only: requests are signed with your
Ed25519 private key, which never leaves your backend. @snap4id-sdk/partner-api signs, retries and parses for you;
these pages are the wire contract. The OpenAPI document ships in the SDK repository under contracts/.
Errors are { "error": { "code": "<code>" } }. 5XX answers are retryable with a fresh request id. A job is
visible only to the partner that embedded it; anything else answers 404 not_found, exactly like a missing job.
Every request except GET /api/v1/partner/webhook-keys carries five headers: x-partner-id, x-key-id, x-timestamp, x-request-id, x-signature.
The signature is Ed25519, base64 (standard, padded), over these fields joined by \n (LF), UTF-8, no trailing newline:
Timestamp skew at most 5 minutes; a request id is accepted once within 10 minutes;
body at most 128 KiB. A failure answers 401 unauthorized (the reason is only in Snap4ID’s logs).
job.paid deliveries carry x-snap4id-key-id, x-timestamp, x-signature. The signature is Ed25519, base64 (standard, padded),
over these fields joined by \n (LF), UTF-8, no trailing newline:
Skew at most 5 minutes. Delivery is retried for 72 hours; answer
410 only to stop an event for good. Keys: GET /api/v1/partner/webhook-keys.
Your partner_id.
Security scheme type: apiKey
Header parameter name: x-partner-id
Id of one of your registered, active Ed25519 keys (rotation: register a new key, switch, revoke the old one).
Security scheme type: apiKey
Header parameter name: x-key-id
Unix epoch milliseconds (decimal digits); accepted within ±300000 ms.
Security scheme type: apiKey
Header parameter name: x-timestamp
UUID v4, fresh per request (also per retry); a repeat within 600000 ms is rejected.
Security scheme type: apiKey
Header parameter name: x-request-id
Standard padded base64 of the 64-byte Ed25519 signature over the canonical request (see the signing section of the overview).
Security scheme type: apiKey
Header parameter name: x-signature