The partner provides a POST API along with an authentication method (Authorization key) to receive call events from Alohub. Whenever there is a change in the call status, the system will automatically push data to the partner's endpoint in real-time.
Note: The partner needs to provide the webhook URL and Authorization key for Alohub to establish the connection. Contact Alohub for configuration support.
https://{{webhook-url-doi-tac}}Alohub will send an HTTP POST request to the partner's webhook URL with the JSON body as below.
Header | Type | Description |
|---|---|---|
| string | Authorization key provided by the partner to Alohub |
| string | Always |
Parameter | Type | Description |
|---|---|---|
| string | Automatic call identifier |
| string | Call status (e.g.: |
| string | Call direction: |
| string | Customer's phone number called automatically |
| string | Extension number of the consultant |
| string | Call start time (format |
| string | Time the consultant answered the call |
| string | Call end time |
| string | Side that ended the call: |
| string | Hotline number (if any) |
| string | Total call duration (seconds) |
| string | Hold duration (seconds) |
| string | URL of the call recording file |
| integer | Default is |
| string | Transaction ID passed when creating the Auto Call campaign |
| string | Name of the consultant account making or receiving the call |
| string | Default is |
{
"call_id": "20240113150030xxxxxx",
"call_status": "answered",
"direction": "outbound",
"caller_number": "03899xxx",
"destination_number": "888",
"starttime": "2024-01-13 15:00:30",
"answertime": "2024-01-13 15:00:35",
"endtime": "",
"hangup_by": "",
"hotline": "",
"total_duration": "",
"holding_duration": "",
"recording_url": "",
"objectId": 1,
"transactionID": "TRANSID_1111",
"userName": "adminxxx",
"eventType": "call"
}
After receiving the webhook, the partner's endpoint needs to respond with HTTP status 200 OKto confirm successful receipt. If no response is received or an error code is received, Alohub may attempt to resend.
Note: The partner needs to provide the webhook URL and Authorization key for Alohub to establish the connection. Contact Alohub for configuration support.