API reference
The Design API: addresses, authentication, errors and limits.
On this page
API: https://design.api.sypnia.com/v1 Cloud, or your engine’s address Engine.
Authentication
Authorization: Bearer <session or token>. Tokens belong to a project and have scopes: read (guide, gallery, screens, checks), write (drafts, proposals, renders, exports, uploads), admin (tokens and the repository link). Approving a proposal or a screen needs a person’s session; a token gets 403 person_required.
Errors
{ "error": { "code": "contrast_failed", "message": "color.ink-quiet on color.surface is 3.9:1; text needs 4.5:1." } }| Status | Codes |
|---|---|
| 400 | invalid_request, invalid_file |
| 401 | unauthorized |
| 402 | insufficient_credits |
| 403 | forbidden, person_required |
| 404 | not_found |
| 409 | conflict, out_of_date (the guide moved on since your proposal) |
| 413 | too_large |
| 415 | type_not_allowed |
| 422 | check_failed, contrast_failed, unsafe_svg, font_licence_missing |
| 429 | rate_limited (with retry-after) |
Limits are on Limits.
Guide, proposals, assets, icons, gallery, screens, renders, exports, checks and tokens.