Server event

An event that occurred server side that is related to a conversation between an agent and a user.

Payload

An HTTP POST body that contains event data serialized in JSON format.

A server-generated event reporting about a previously sent agent message, such as delivery, failure, or revocation.

string

The agent's unique identifier.

string

Timestamp (RFC 3339) at which the webhook event was sent.

string

Recipient device phone number in E.164 format.

string

Identifier of the agent message this event relates to.

string
enum

The type of server event.

Allowed:
string

Unique identifier of the event.

string
enum

Source from which the event originated. Set only for custom SENT or FAILED events.

Allowed:
string

Error code, present when the event indicates a failure.

string

Human-readable error description, present when the event indicates a failure.

richMessageClassification
object

Billing classification for a server event's related message.

int64

Total payload size of the related message in bytes.

Headers
string
required

An HTTP header that indicates what type of event class the callback is. Options are ServerEvent, UserEvent, or UserMessage.

string
required

An HTTP header that contains a BASE64 encoded HMAC SHA512 signature.

Response
200

Return 200 to acknowledge receipt of the webhook.

LoadingLoading…