Mint a signed URL-render link
Returns an HMAC-signed `GET /api/v1/img/{template}` URL for CMS / Open Graph `<img>` tags. The fetch itself needs no API key. Pass `jobs` (1–50) to mint many URLs in one call. Minting does not consume a credit; the first unique GET of each URL does. Repeats are cache hits.
/api/v1/img/signReturns an HMAC-signed GET /api/v1/img/{template} URL for CMS / Open Graph <img> tags. The fetch itself needs no API key. Pass jobs (1–50) to mint many URLs in one call. Minting does not consume a credit; the first unique GET of each URL does. Repeats are cache hits.
API key as Authorization: Bearer <key>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/img/sign" \ -H "Content-Type: application/json" \ -d '{ "template": "060ce75e-87d6-4677-b330-eaee58e54138" }'{ "url": "http://example.com", "expiresAt": "2019-08-24T14:15:22Z"}{ "error": "string", "code": "UNAUTHORIZED", "details": {}, "message": "string"}{ "error": "string", "code": "UNAUTHORIZED", "details": {}, "message": "string"}{ "error": "string", "code": "UNAUTHORIZED", "details": {}, "message": "string"}{ "error": "string", "code": "UNAUTHORIZED", "details": {}, "message": "string"}{ "error": "string", "code": "UNAUTHORIZED", "details": {}, "message": "string"}Create a render POST
Enqueues a render and returns immediately with `status: queued` (HTTP 202). Pass `?wait=60` (max 120) to block until a terminal status within the timeout.
Fetch or render a signed image GET
Unauthenticated. `sig` is HMAC over the template id and query (except `sig`). Optional `exp` is a unix expiry. Other query keys map to layer `text` or variables. First unique payload renders and bills the template owner; later hits stream the stored file.