Number Masking Webhook
Number masking in the Alohaa enhances privacy by hiding actual phone numbers during calls. This guide details the webhooks for setting up call initiation and managing completion events.
Part 1: Number Masking Call Initiation
Webhook Request Data
When a number masking call is to be initiated, Alohaa sends the following data to the client’s endpoint:
Expected Webhook Response
The client needs to process the above request and respond with the following structure, which includes the number to which the call should be forwarded and any applicable timeout settings:
Payload Fields Description
Field | Description |
---|---|
| The phone number to which the call should be forwarded. |
| Timeout for the call in seconds. '0' indicates no timeout. |
Call Flow Description
The Caller initiates a call to the DID
A webhook is triggered on the Client Server with the Caller ID, Caller No., and DID No.
The Client Server responds to the webhook with the Receiver's number and Call timeout duration. Call timeout should be 0, if there is no timeout.
The Aloaha Server initiates a call to the Receiver.
The call is connected between the Caller and the Receiver.
The call is completed.
A webhook is triggered on the Client Server with the call details.
Part 2: Call Completion Notification
Upon the completion of a number masking call, Alohaa sends a webhook with the following data to notify the client of the call's outcome:
Payload Fields Description
Field | Description |
---|---|
| Direct Inward Dialing number used for the call. |
| Unique identifier for the call session. |
| Masked number of the caller. |
| Masked number of the receiver. |
| Status of the call, e.g., "Answered", "Missed". |
| Timestamp when the call was answered. |
| URL to access the recording of the call. |
| Timestamp when the call ended. |
Last updated