curl https://sendi.elgiosoft.com/api/v1/sms/send \
-H "Authorization: Bearer $SENDI_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+237671234567",
"message": "Your order #1042 has shipped."
}'
curl https://sendi.elgiosoft.com/api/v1/whatsapp/send \
-H "Authorization: Bearer $SENDI_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+237671234567",
"type": "template",
"template": {
"name": "order_shipped",
"variables": { "body": ["#1042"] }
}
}'
# 1. Send a code
curl https://sendi.elgiosoft.com/api/v1/verify/start \
-H "Authorization: Bearer $SENDI_KEY" \
-d to=+237671234567 -d "channels[]=sms"
# 2. Check what the user typed
curl https://sendi.elgiosoft.com/api/v1/verify/check \
-H "Authorization: Bearer $SENDI_KEY" \
-d verification_id=vrf_8kQ2 -d code=482913