Authentication
Learn how request authentication works for TextPro API endpoints.
Authentication Overview
All /api endpoints require an API key passed via the X-API-KEY header.
X-API-KEY: tp_live_xxx
POST
/api/send/sms
curl -X POST https://textpro.co.uk/api/send/sms \
-H "X-API-KEY: tp_live_xxx" \
-H "Content-Type: application/json" \
-d '{"to":"+447000000000","message":"Authentication test"}'
Invalid or Revoked Keys
Missing, invalid, or revoked keys return 401 Unauthorized.
401
Unauthorized
{
"error": "Invalid API key"
}
403
Forbidden
{
"error": "API access is temporarily blocked for this account"
}