Authentication
How to authenticate with the Lype API
The Lype API uses API keys. All API keys start with sk_. Create them from the API Keys page in the dashboard.
Passing your API key
Use either header:
x-api-key: sk_your_api_keyAuthorization: Bearer sk_your_api_keyEvery endpoint except GET /api/health requires authentication.
| Response | Cause |
|---|---|
401 Unauthorized | No API key was sent, or the key is disabled or expired |
403 Forbidden | The API key does not exist |
Rate limits
Each API key may make 60 requests per 60 seconds. Beyond that, requests get 429 Too Many Requests with a Retry-After header (seconds) until the window resets.