Skip to main content

Call Status (Number Masking)

This method provides insights about call details and will be sent to your "Voice Call Summary" (VCS) endpoint. Your "Voice Call Summary" (VCS) endpoint can be configured on the sub-account level with the Webhooks API.

When receiving status updates for ongoing calls, the 8x8 platform will POST a JSON object to your "Voice Call Summary" (VCS) endpoint.

The JSON object will contain the following values:

NameTypeDescription
namespaceString8x8's overall product namespace. For Voice products the value will be "VOICE"
eventTypeStringEvent type that generated this callback. For call status events the value will be "CALL_STATUS"
descriptionStringDescription of the event type that triggered the callback.
eventIdStringUnique id that triggered the callback
callIdStringId unique to a one call leg of the number masking session [UUID]
sessionIdStringUnique id that represents Number masking session [UUID]
subAccountIdStringId of the 8x8 SubAccount that the callback belongs to.
callStatusStringStatus of the call leg that triggered the callback. Possible values:
CALL_INITIATED
CALL_RECEIVED
CALL_CONNECTED
CALL_DISCONNECTED
CALL_UPDATED
DTMF_RECEIVED
callDirectionStringDirection of the call leg that triggered the callback. Values: INBOUND or OUTBOUND
callTypeStringType of the call leg. Values: PSTN or VOIP (depending on call origin: telco operators or VoiceSDK users). For Number Masking, the value is always PSTN
sourceStringSource number associated with the call leg that triggered this callback
destinationStringDestination number associated with the call leg that triggered this callback
sourceFormatStringFormat of the source number. For NumberMasking the value will always be MSISDN.
destinationFormatStringFormat of the destination number. For NumberMasking the value will always be MSISDN.
sourceCountryCodeStringCountry code of the source number (ISO 3166-1 alpha-2 format, e.g., "SG", "US")
destinationCountryCodeStringCountry code of the destination number (ISO 3166-1 alpha-2 format, e.g., "LK", "US")
callDurationIntegerDuration of the call leg (in seconds) that initiated the callback
sipCodeIntegerFinal Sip status code for the call leg(s) defined by RFC 3261
timestampStringTimestamp of a call event

Additional parameters could be included depending on individual destination or account requirements.

Example of a JSON object sent to your handleURL:

{
"payload": {
"eventId": "e2078079-eae8-11f0-ae64-a500004e488e",
"callId": "e1ff6a14-eae8-11f0-baa6-c93abb37794a",
"sessionId": "e1ff6a15-eae8-11f0-baa6-c147150ab00e",
"subAccountId": "8x8_test",
"callStatus": "CALL_RECEIVED",
"callDirection": "INBOUND",
"callType": "PSTN",
"source": "+656833033",
"destination": "+94778066434",
"sourceFormat": "MSISDN",
"destinationFormat": "MSISDN",
"sourceCountryCode": "SG",
"destinationCountryCode": "LK",
"callDuration": 0,
"sipCode": 200,
"timestamp": "2026-01-06T10:17:19.375Z"
},
"namespace": "VOICE",
"eventType": "CALL_STATUS",
"description": "Status update of a call"
}

Response

Your endpoint should respond with 200 OK status.


Error Handling

For a complete list of error codes and troubleshooting guidance, see the Number Masking Error Codes reference.