notifyUrl to a queue to be notified when an inbound call arrives at the queue and when it ends. Trackly POSTs a small JSON payload to your URL; if you also set a notifySecret, each request is signed so you can verify it came from Trackly.
Configuring
SetnotifyUrl (and optionally notifySecret) when you create a queue:
notifyUrl must be a public HTTPS URL.
Events
Payload
The request body is a JSON object. Fields are serialized with sorted keys, so verify the signature against the exact raw bytes you receive.string
call.received or call.ended.string
The call’s id — look it up with Get a Call.
string
The queue that emitted the event.
string
The caller’s number (E.164).
string
The number that was dialed (E.164).
Verifying the signature
When anotifySecret is configured, Trackly sends an X-Trackly-Signature header containing the hex-encoded HMAC-SHA256 of the raw request body, keyed by your secret. Recompute it and compare in constant time.
notifySecret is set, the X-Trackly-Signature header is omitted.