GET /render/card/{hash}
Renders a single card and returns raw PNG bytes. The {hash} path segment encodes a CardRenderRequestData JSON object.
Path parameter
Base64 standard alphabet, no-padding encoding of a
CardRenderRequestData JSON object. See Hash encoding for construction details.Examples
Response
200 OK — Raw PNG bytes.| Header | Value |
|---|---|
Content-Type | image/png |
X-Source | rendered on request or loaded from disk cache |
X-Processing-Time | e.g. 12.345ms |
Errors
| Status | Body | Cause |
|---|---|---|
400 | bad request - provided card hash is invalid | {hash} failed base64 decoding |
400 | bad request - provided card hash is a valid json but does not follow API structure | JSON decoded but does not match CardRenderRequestData |
500 | failed request - invalid frame type provided | frame_type value is not 0, 1, or 2 |
500 | failed request - missing main image asset. | Character image file not found on disk |
500 | failed request - failed to decode main image asset. | Character image file exists but could not be decoded |
500 | server error - failed to copy character | Error compositing the character layer |
500 | server error - missing required asset: {key} | A frame asset file is missing |
500 | server error - cannot write card image to buffer | PNG encoding of the result failed |
500 | gateway timeout - asset render took more than 5 seconds | Render exceeded the 5-second timeout |
Related
CardRenderRequestData— full field reference for the JSON payload- Hash encoding — how to construct the
{hash}segment