cURL
curl --request GET \ --url https://api.botpress.cloud/v1/chat/messages \ --header 'Authorization: Bearer <token>' \ --header 'x-bot-id: <api-key>'
{ "messages": [ { "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "type": "<string>", "payload": {}, "direction": "incoming", "userId": "<string>", "conversationId": "<string>", "tags": {} } ], "meta": { "nextToken": "<string>" } }
Retrieves a list of Message you’ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using Tags.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your bot ID.
Provide the meta.nextToken value provided in the last API response to retrieve the next page of results
meta.nextToken
Conversation id
Filter by tags
Show child attributes
Returns a list of Message objects.
Was this page helpful?