botruntime
API ReferenceChat API

List Events

Retrieves a list of [Event](#schema_event) you’ve previously created. The events are returned in sorted order, with the most recent appearing first.

GET
/v1/chat/events

Query Parameters

nextToken?string

Provide the meta.nextToken value provided in the last API response to retrieve the next page of results

pageSize?integer

Number of items to return per page (default 20, max 100)

type?string

Filter by event type

conversationId?string

Filter by conversation id

userId?string

Filter by user id

messageId?string

Filter by message id

workflowId?string

Filter by workflow id

status?string

Filter by status. Allowed values: pending, ignored, processed, failed.

Value in

  • "pending"
  • "ignored"
  • "processed"
  • "failed"
  • "scheduled"

Header Parameters

x-bot-id*string

Bot id

x-integration-id?string

Integration id

x-integration-alias?string

Integration alias

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/chat/events" \  -H "x-bot-id: string"
{  "events": [    {      "id": "stringstringstringstringstri",      "createdAt": "2019-08-24T14:15:22Z",      "type": "string",      "payload": {},      "conversationId": "stringstringstringstringstri",      "userId": "stringstringstringstringstri",      "messageId": "stringstringstringstringstri",      "status": "pending",      "failureReason": "string"    }  ],  "meta": {    "nextToken": "string"  }}
{  "events": [    {      "id": "stringstringstringstringstri",      "createdAt": "2019-08-24T14:15:22Z",      "type": "string",      "payload": {},      "conversationId": "stringstringstringstringstri",      "userId": "stringstringstringstringstri",      "messageId": "stringstringstringstringstri",      "status": "pending",      "failureReason": "string"    }  ],  "meta": {    "nextToken": "string"  }}