API for texts and calls

Create a key in the app under Billing. A live key sends messages and calls and spends credit. A test key sends nothing and charges nothing. The secret is shown only once.

The request is POST to https://voice.atlayo.com/api/open.php?action=sms or action=call. Header: Authorization: Bearer av_live_…. The body is JSON.

{"number_id": 12, "to": "+420601123456", "text": "Hello"}

A call first rings the phone on the account and, once answered, connects it to the destination. Both legs are billed from credit. A test key does not dial.

{"number_id": 12, "to": "+420601123456"}

Save the event address in the same place. It must be a public https address. Each event is JSON {"id","type","data"} with the header X-Atlayo-Signature as t=time,v1=hmac. The signature is HMAC SHA-256 of time.body and the secret shown when you save the address.

Events: message.received, message.sent, call.started, call.answered, call.ended. A failed delivery is retried. At most 60 requests per minute.

Ακόμα χρειάζεστε βοήθεια; Στείλτε μας e-mail στο hola@atlayo.com.

Χρειάζεστε βοήθεια;

Βοηθώ να διαλέξετε πρόγραμμα. Αρκεί να ρωτήσετε.