Skip to main content
Every error the API returns has the same body:

Error codes

New codes may be added. Treat an unknown code by its HTTP status.

Retrying safely

A POST that creates something accepts an Idempotency-Key header. Send a new random value (a UUID) with each request you mean to make once, and the same value when you retry it:
For 24 hours, a retry with the same key and the same body gets the first response back, with the header idempotent-replayed: true, instead of creating a second design. The same key with a different body answers 409 idempotency_key_reused. A 5xx isn’t kept, so retrying after one runs the request again. PUT, PATCH and DELETE are safe to retry as they are.

A 403 with an HTML page

A 403 whose body is an HTML page, with no code and no requestId, didn’t come from the API. Our firewall stopped the request before it reached the API, because it matched a common attack pattern: for example a path-traversal sequence such as ../ in the URL, markup such as SVG or HTML in a request body, a URL with a bare IP address in a request body, or traffic from an IP address on a known-abuse list. To put an SVG on a design, upload it as a file and place it with asset, rather than sending the markup inline: see Create a design through the API. Check the request for anything unusual in its URL or body. If it looks normal, contact support with the time of the request (in UTC) and the IP address it came from, so we can find it.

Rate limits

Requests are rate limited. Past the limit you get 429 Too Many Requests. This response comes from the API gateway itself, so its body is { "message": "Too Many Requests" }, not the error shape above. Retry 429 and 5xx responses with exponential backoff, for example 1s, 2s, 4s, up to a few attempts. Don’t retry other 4xx responses unchanged.