Webhook
A webhook endpoint that receives events from the chats you are a member of, plus presence events for the users in your organization. Events are delivered as JSON POST requests to the endpoint URL.
- createdType: stringFormat: date-time
_at requiredthe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- descriptionType: stringrequired
An optional description of the endpoint.
- disabledType: booleanrequired
Disabled endpoints do not receive events.
- eventType: array of string | null
_types requiredEvent types this endpoint receives:
message.created,message.updated,message.deleted,membership.created,membership.deleted,membership.updated,chat.updated,user.online,user.offline.nullmeans all event types. - idType: stringrequired
Unique identifier for the webhook endpoint.
- tagsType: array of string | nullrequired
Tags this endpoint is limited to. Every message event is tagged with its chat (
chat_{id}) and its sender (user_{id}). Membership events (membership.created,membership.deleted,membership.updated) are tagged with their chat (chat_{id}) and the member (user_{id}), andchat.updatedwith the chat (chat_{id}). Presence events (user.online,user.offline) are tagged with the user they describe (user_{id}). Events in a thread are tagged with the thread's parent chat plus the thread itself (thread_{id}), and events for messages that mention you are additionally taggedmentioned. A thread message's payload references the thread as itschat_id;GET /chats/{chat_id}returns the thread'sparent_chat_id.nullmeans the endpoint receives all events. - updatedType: stringFormat: date-time
_at requiredthe date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- urlType: stringFormat: urirequired
The URL events are delivered to.