Sending SMS
There are two ways to send: the dashboard, for messages a person writes, and the API, for anything your own software sends. Both use the same queue and report the same statuses.
From the dashboard
Open Send SMS, choose the sender number (or leave the default if your account uses shared numbers), enter the recipient and the message, and choose Review message. A live preview shows the length, the encoding and the number of segments. You confirm once in a review step, and submitting the same form twice never sends the message twice.
From your own code
The full technical reference is Sending SMS API. In outline:
POST https://www.connecfy.com/api/v1/sms/send/
Authorization: Bearer YOUR_API_KEY
{
"to": "+212612345678",
"from": "+212600000000",
"message": "Hello from Connecfy"
}How a message picks its sender number
The from number decides where a message is sent from. Connecfy confirms your account is allowed to use it, either because it belongs to your account or because Connecfy has granted your account access to a shared number. You cannot send from a number your account has no rights to.
Scheduling a send
Pass send_at as a future UTC timestamp and the message is held until that time, then queued. Leave it out to send as soon as possible.
Your monthly allowance
Every message counts once against your monthly allowance when it is queued, whether it came from the dashboard or the API. Past the limit, the API returns 402 with the code quota_exceeded and the dashboard explains why; nothing is dropped silently. See Usage and billing.
Safe retries
Pass a request_id of your choosing. If the same value arrives again from your account within 24 hours, Connecfy returns the original message instead of creating a second one. See Building reliable integrations.
See also
- Limits and restrictions: length, encoding, number format.
- Sending to many recipients
- Message statuses