Optionalparams: VoiceV2CallbackWebhooksParametersThe event body containing the Voice v2 webhook notification.
Serialize a webhook response body to JSON.
The SVAML commands to return to the Voice platform.
Updates the Voice service credentials used to validate webhook signatures.
The service ID and Base64 service secret.
Validate the Authorization header of a Voice v2 webhook request.
Voice v2 signs callbacks with Authorization: service {serviceId}:{signature}.
The signature is Base64(HMAC-SHA256(secretBytes, UTF8(stringToSign))) where
secretBytes is the Base64-decoded service secret.
Use the raw request body exactly as delivered — do not re-serialize JSON before validation.
Incoming request's headers
Incoming request's raw body
Incoming request's path (no scheme, host, query or fragment)
Incoming request's HTTP method
StaticparseStatic reviver for a Voice v2 webhook event.
The event body containing the Voice v2 webhook notification.
StaticserializeStatic serializer for a Voice v2 webhook response.
The SVAML commands to return to the Voice platform.
Reviver for a Voice v2 webhook event. This method ensures the object can be treated as a Voice v2 webhook event and should be called before any action is taken to manipulate the object.