API docs
API reference

Authentication

How to authenticate with the Setback API.

API keys

All API requests require authentication via an API key passed in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.setback.io/v1/documents

Getting an API key

  1. Log in to the Setback dashboard
  2. Navigate to Settings > API Keys
  3. Click Create New Key
  4. Copy and securely store your key

Security best practices

  • Never expose API keys in client-side code
  • Use environment variables to store keys
  • Rotate keys periodically
  • Use separate keys for development and production

Rate limiting

Requests are rate-limited based on your plan. Rate limit information is returned in response headers:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 57
X-RateLimit-Reset: 1700000000

When rate limited, the API returns 429 Too Many Requests.

On this page