Authorization header as a Bearer token.
API Key Format
API Key Types
Chirp provides two types of API keys for different use cases:App Keys
App keys are scoped to a specific application and come in two variants: Test Keys (sk_test_app_*)
- For development and testing
- Work with the Playground
- Completely free (no charges)
- Cannot send real messages
sk_live_app_*)
- For production use
- Send real SMS/MMS messages
- Incur charges based on usage
- Send messages (
POST /v1/sms) - Manage webhooks (
/v1/webhooks) - Assign phone numbers (
/v1/phone-numbers) - View message logs
Admin Keys
Admin keys are scoped to your organization: Format:sk_admin_*
Permissions:
- Create and manage applications
- Manage app keys
- Purchase and assign phone numbers
- Manage organization settings
- View all organization data
Getting Your API Keys
App Keys:- Log in to the Chirp dashboard
- Select your application
- Navigate to the Keys page
- Copy your test or live API key
- Log in to the Chirp dashboard
- Navigate to Organization Settings > Admin Keys
- Create a new admin key
- Copy the key (shown only once)
Security Best Practices
1. Keep Keys Secret Never expose API keys in:- Client-side code (JavaScript, mobile apps)
- Public repositories
- Version control systems
- Public forums or documentation
- Create a new admin key
- Update all services to use the new key
- Delete the old key
- Development
- Staging
- Production
Error Responses
Missing API Key401 Unauthorized
Invalid API Key
401 Unauthorized
Wrong Key Type
Using an app key on an admin endpoint (or vice versa):
401 Unauthorized