Skip to main content
The ShortKit API uses conventional HTTP status codes and returns structured error responses in the standard response envelope.

Error response format

Each error object contains:
string
Machine-readable error code. Use this for programmatic error handling.
string
Human-readable description of what went wrong.

HTTP status codes

Error handling

We recommend handling errors by code rather than by HTTP status:

Rate limiting

Secret key requests are limited to 120 requests per minute using a sliding window. When you exceed the limit, the API returns a 429 status:
If you need higher rate limits, contact us.

Retry strategy

For 429 responses, implement exponential backoff:
  1. Wait 1 second, then retry.
  2. If still rate-limited, wait 2 seconds.
  3. Double the wait time on each subsequent retry, up to a maximum of 30 seconds.
For 500 errors, retry once or twice with a brief delay. If the error persists, the issue is on our end — contact support with the request_id.