Base URL
All API requests use the following base URL:Authentication
The Chirp API uses API keys for authentication. Include your API key in theAuthorization header as a Bearer token:
API Key Types
Chirp provides two types of API keys: App Keys (sk_live_app_* / sk_test_app_*)
Used for application-level operations:
- Sending messages
- Managing webhooks
- Viewing message logs
sk_admin_*)
Used for organization-level operations:
- Creating and managing applications
- Managing phone numbers
- Team and billing administration
Request Format
All POST and PUT requests must include aContent-Type: application/json header and a JSON body:
Response Format
All responses are returned as JSON:HTTP Status Codes
The API uses standard HTTP status codes:200 OK- Request succeeded201 Created- Resource created successfully400 Bad Request- Invalid request parameters401 Unauthorized- Invalid or missing API key403 Forbidden- Insufficient permissions404 Not Found- Resource not found429 Too Many Requests- Rate limit exceeded500 Internal Server Error- Server error
Error Responses
Error responses include anerror field with a description:
Rate Limits
The API enforces rate limits to ensure fair usage. See Rate Limits for details.Test Mode
Use test API keys (sk_test_app_*) to test your integration without sending real messages or incurring charges. Test mode works with the Playground for simulated messaging.
Versioning
The current API version isv1. The version is included in the URL path: