Docs/Authentication

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_KEY

Example 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

StatusErrorDescription
401invalid_api_keyThe API key provided is invalid
401missing_api_keyNo API key was provided
403api_key_disabledThe API key has been disabled