pbs-library
POST /v1/pbs-library/images
Upload one image for a saved design (raw body, deduplicated by content).
Authentication
Send an API key as a bearer token. This endpoint does not state a specific permission in the specification, so give your key the least it needs and check the response rather than assuming.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/pbs-library/images \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The body is the image itself (Content-Type image/webp, image/jpeg, image/png, image/gif or image/avif; no SVG). At most 2 MB and 2560 px on the longest edge — the plugin resizes and re-encodes before upload, and the engine re-checks the bytes. The same bytes twice answer 200 with created: false and charge nothing.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
team (query) | string | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
sha256 | string | Yes | — |
content_type | string | Yes | — |
size_bytes | integer | Yes | — |
width | integer | Yes | — |
height | integer | Yes | — |
created | boolean | Yes | — |
Errors this endpoint can return
401 · 403 · 409 · 413 · 415 · 422 · 429 · 503