createEvent
Creates a new Event. When creating a new Event, the required tags must be provided. See the specific integration for more details.
POST
/v1/chat/eventsAuthorization
AuthorizationBearerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header parameters
x-bot-idstringrequiredBot id
x-integration-idstringIntegration id
x-integration-aliasstringIntegration alias
Request body
Event data
typestringrequiredType of the Event.(max length: 200)
payloadobjectrequiredPayload is the content of the event defined by the integration installed on your bot or one of the default events created by our API.
scheduleobjectSchedule the Event to be sent at a specific time. Either dateTime or delay must be provided.
conversationIdstringID of the Conversation to link the event to.(min length: 28, max length: 36)
userIdstringID of the User to link the event to.(min length: 28, max length: 36)
workflowIdstringID of the Workflow to link the event to.(min length: 28, max length: 36)
messageIdstringID of the Message to link the event to.(min length: 28, max length: 36)
Response
Returns a Event object if creation succeeds. Returns an error otherwise
eventobjectrequiredThe event object represents an action or an occurrence.