Get started
Quickstart
Send your first SMS through the API in five minutes.
Send your first SMS through the API in about five minutes. You need a Falconzo account with SMS turned on (Settings › Apps › SMS in the app).
Steps
Create a test key
Open API keys and create a test key with the
sms.sendandsms.readpermissions. Copy it: it is shown only once. Test keys never send a real SMS and cost nothing.Send a message
Put your key in an environment variable called
FALCONZO_API_KEYand run one of these.curl -X POST "https://api.falconzo.com/v1/sms/messages" \ -H "Authorization: Bearer fz_test_YOUR_KEY" \ -H "Idempotency-Key: order-1042-shipped" \ -H "Content-Type: application/json" \ -d '{"to":["0771234567"],"message":"Your order #1042 has shipped.","clientReference":"1042"}'Check what happened
The answer lists each number with a
messageIdand the statusQUEUED. A few seconds later a test message moves toSENTand thenDELIVERED. Read it back with Get an SMS, or have Falconzo tell you with webhooks.curl https://api.falconzo.com/v1/sms/messages/MESSAGE_ID \ -H "Authorization: Bearer $FALCONZO_API_KEY"Go live
When it works, create a live key and swap it in. Nothing else in your code changes. Until one of your sender IDs is verified, live messages only go to your verified test numbers; see Test mode.
Keep keys on your server
Never put an API key in a website, a mobile app or a code repository. Anyone who has it can send SMS on your balance.