Send SMS from your app

POST /v1/messages with a TEST key. The dashboard uses that same path. Open the message id when you need the delivery report. A 202 is only acceptance.

A developer at a desk with two screens of code and a phone on a stand
POST /v1/messagesQUEUED
{
  "to": "+233200000001",
  "sender_id": "TAYSEND",
  "message": "Hello from Taysend",
  "type": "transactional"
}

Poll the message id for the DLR

Base URL
api.taysend.com
Keys
TEST and LIVE
Networks
MTN · Telecel · AT

1

path, console and API

One send path

The console and POST /v1/messages reserve, queue, and settle the same way.

3

networks, read from the number

Ghana prefixes

MTN, Telecel, and AT from the number. Other countries only after we add the route.

2

key types, shown once

Bearer keys

sms_test_ and sms_live_. Shown once. Stored as SHA-256.

202

accepted, not yet delivered

Delivery reports

HTTP 202 means we accepted the send. Delivered, failed, or expired comes later on the DLR.

Mint a key and send to a simulated number

  • RESTful JSON under /v1
  • Authorization: Bearer sms_test_…
  • Idempotency-Key on send
  • Sandbox numbers with known outcomes
export TAYSEND_KEY=sms_test_your_key

curl -X POST "https://api.taysend.com/v1/messages" \
  -H "Authorization: Bearer $TAYSEND_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+233200000001",
    "sender_id": "TAYSEND",
    "message": "Hello from Taysend",
    "type": "transactional"
  }'

Idempotency-Key is optional. Use a new one for each message.

Try it in the sandbox

Try it in the sandbox

No API key. Your Ghana number receives one real text a day, or pick a simulated outcome.

  • LIVE

    My number

    A real text to your own phone, once a day. The sender shows as Taysend.

  • TEST

    Simulated

    A number with a known outcome. The sender is TAYSEND.

Sandbox

LIVE

One real SMS to this number per day. Sender Taysend.

18/143 characters. “Taysend sandbox: ” is added in front.

Response

{
  "id": "msg_…",
  "status": "QUEUED",
  "environment": "LIVE"
}

Get your API key

Mint a TEST key in the console. It is shown once. Need help? Routing, sender IDs, or a contract rate.

Get API KeyContact us