Getting Your API Key
Log in to your TEGASMS dashboard, go to Settings → API Keys and generate a new API key. Keep it secure - treat it like a password.
Using the API Key
Include your API key in every request as a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Example Request
curl -X POST https://api.tegasms.co.tz/v1/sms/send \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "255782466004", "message": "Hello from TEGASMS!"}'
