Send SMS — POST /api/sms/send
Queue an SMS for delivery. Returns immediately with a job id (202 Accepted); delivery happens asynchronously on your phone.
Request body
| Field | Type | Req | Notes |
|---|---|---|---|
| recipient | string | Yes | E.164 (+254712345678). Numbers without + are treated as Kenyan (+254). |
| message | string | Yes | Up to 1,600 characters. Long messages are split + reassembled. |
| priority | int (0–10) | — | Higher = sent first. Default 0. Use 9–10 for OTPs. |
| devices | array | — | Target specific phones/SIMs. Omit to let SMSKit choose. |
| idempotencyKey | string | — | Dedupe retries — same key never sends twice. |
Examples
curl https://api.smskit.cloud/api/sms/send \
-H "X-Api-Key: sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{ "recipient": "+254712345678", "message": "Your code is 123456" }'Response — 202 Accepted
{ "jobId": "job_7H2K9M4P1Q6R3T8V5W0X", "status": "Pending" }