ServerEvent

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

For example, if the bot sets a TTL for the message and the TTL expires, this event will be fired to notify the partner that the bot message timed out.

The ServerEvent appears in the "data" field of the "message" object that the agent receives from its Pub/Sub subscription. The "data" field is a base64-encoded string that the agent must decode to match the ServerEvent structure.

JSON representation
{
  "phoneNumber": string,
  "agentId": string,
  "messageId": string,
  "eventType": enum (ServerEvent.EventType),
  "eventId": string,
  "sendTime": string
}
Fields
phoneNumber

string

Phone number (in E.164 format) of the user involved in the event.

agentId

string

The agent's unique identifier. Set by RCS Business Messaging.

messageId

string

The RCS message ID of the message that is associated with the event.

eventType

enum (ServerEvent.EventType)

Type of the event.

eventId

string

A unique event ID assigned for the event instance.

sendTime

string (Timestamp format)

Time at which the server sends the event.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".