Authentication
Learn how to authenticate your API requests securely using API keys.
API Keys
All API requests require authentication using an API key. You can find your API keys in theDashboard Settings.
Keep your API keys secure
Never expose your API keys in client-side code or public repositories. Use environment variables.
Making Authenticated Requests
Include your API key in the Authorization header:
Header
Authorization: Bearer YOUR_API_KEYExample Request
curl -X GET https://api.wetalk.com/v1/account/balance \
-H "Authorization: Bearer wt_live_xxxxx"API Key Types
LIVE
Live API Key
Use for production. Starts with wt_live_. Charges apply.
TEST
Test API Key
Use for development. Starts with wt_test_. No charges, messages not delivered.
Authentication Errors
| Status | Error | Description |
|---|---|---|
401 | invalid_api_key | The API key provided is invalid |
401 | missing_api_key | No API key was provided |
403 | api_key_disabled | The API key has been disabled |