API Reference
The Lettr API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.Base URL
Authentication
Authenticate requests using an API key in the Authorization header:Request Format
Send JSON-encoded bodies with the appropriate Content-Type header:Response Format
All responses are JSON-encoded:HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found |
429 | Too Many Requests - Rate limited |
500 | Server Error |
Error Response
Errors return a consistent format:Pagination
List endpoints support pagination:Rate Limits
| Plan | Limit |
|---|---|
| Free | 10 requests/second |
| Pro | 100 requests/second |
| Enterprise | Custom |