Send SMS
Required JSON fields: to, sender_id, message, type. Optional: client_reference, callback_url, metadata.
POST /v1/messages
POST /v1/messages
Authorization: Bearer sms_test_...
Idempotency-Key: 8f14e45f-ceea-467c-9daa-6e4d999bac48
Content-Type: application/json
{
"to": "+233200000001",
"sender_id": "TAYSEND",
"message": "Your verification code is 482193",
"type": "otp"
}Same Idempotency-Key + same body replays the original response. Same key + different body returns 409 IDEMPOTENCY_CONFLICT. Batch send is POST /v1/messages/batch.