Quickstart
Send your first message with the API in a few minutes. You need a Connecfy account, an API key and a sender number.
1. Get an account
Connecfy sets up accounts personally. If you don't have one yet, request access. Once it exists, sign in at www.connecfy.com.
2. Create an API key
In the dashboard, open API keys, name the key (for example Production server) and choose Generate key. The full key is shown once. Copy it into your secrets manager straight away; Connecfy keeps only a one-way fingerprint and cannot show it again.
Keep it secretAnyone with the key can send and read messages as your account. Store it in an environment variable, never in source control or client-side code. See API key security.
3. Find your sender number
Open Sender numbers in the dashboard. The number listed there is the value you pass as from. No number listed yet? Ask us to add one to your account; the API needs at least one. You can still send from the dashboard in the meantime. See Sender numbers.
4. Send a message
export CONNECFY_API_KEY="paste-your-key-here"
curl -X POST https://www.connecfy.com/api/v1/sms/send/ \
-H "Authorization: Bearer $CONNECFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+212612345678",
"from": "+212600000000",
"message": "Hello from Connecfy"
}'A successful call returns 202 Accepted and the message's ID:
{
"status": "queued",
"message_id": "f3a1b2c4-d5e6-7890-abcd-ef1234567890",
"to": "+212612345678",
"from_number": "+212600000000",
"created_at": "2026-08-26T14:30:00.123Z"
}202 means the message is queued, not that it has been sent. Use the same request_id on a retry so a repeated request can't send twice. See Building reliable integrations.
5. Check its status
curl https://www.connecfy.com/api/v1/sms/f3a1b2c4-d5e6-7890-abcd-ef1234567890/ \
-H "Authorization: Bearer $CONNECFY_API_KEY"The status moves from queued to sending to sent, and usually to delivered. It ends at failed if the message could not be sent. You can also follow it under Messages in the dashboard. See Message statuses.