Errors and rate limits

The Dotfile API returns the following status codes:

CodeDescription
200 - OKEverything worked as expected.
201 - CreatedThe resource was created successfully.
204 - No contentThe resource was deleted successfully.
400 - Bad RequestThe request could not be accepted, due to missing or incorrect parameters. The response body names what to fix.
401 - UnauthorizedNo API key was provided, or the key is not valid.
403 - ForbiddenThe API key is valid but the call comes from an IP outside the allowlist configured on that key.
404 - Not FoundThe requested resource could not be found.
409 - ConflictThe request failed due to the current state of the resource.
413 - Payload Too LargeThe uploaded file is too large. The maximum is 20MB on POST /files/upload.
415 - Unsupported Media TypeThe uploaded file type is not supported.
429 - Too Many RequestsThe rate limit was exceeded. Retry after a pause and space out the calls that follow.
500 - Internal Server ErrorThe Dotfile API encountered an internal error. The failure is reported automatically and does not need to be raised with support.
502 - Bad GatewayA third party Dotfile calls in the request path is unavailable. The request is safe to retry.

Rate limits

The limit is counted per workspace API key, and reads have a larger budget than writes:

RequestsAverageBurst
GET800 per minute200
POST, PATCH, DELETE300 per minute100

The average is the sustained rate. The burst is how many requests may arrive at once, above that
rate, before the limiter starts refusing them: a bucket depth, not a per-second rate.

A request over the limit returns 429 Too Many Requests. Retry it after a short pause and space
out the calls that follow. An integration that needs a higher limit should raise it with
[email protected].