List messages in a conversation
Returns the messages in a conversation, newest first, both received and sent. To page through older messages, use starting_after. The sort order is fixed, so to render the messages in conversation order, reverse the page yourself. Messages do not expire based on age.
Request
- Base URL: https://us1.platform.bird.com
- URL: https://us1.platform.bird.com/v1/amb/conversations/{conversation_id}/messages
- Auth: one of:
- HTTP bearer
- API key in cookie bird_session
Query parameters
Whether a message was sent by the business or received from the customer:
- outbound: A reply the business sent into the conversation.
- inbound: A message the customer sent.
Filter to received (inbound) or sent (outbound) messages.
Maximum number of items to return per page.
Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
Cursor from the prev_cursor or refresh_cursor field of a previous list response. Returns items immediately before the cursor position in the current sort order. prev_cursor returns the preceding page. refresh_cursor anchors at the first row of that response, which on a newest-first sort is how to fetch the items that have appeared since.
Headers
Workspace context for the request. Required for dashboard authentication and master keys. Workspace keys and access tokens already identify their workspace; send that workspace or omit the header. A different one is rejected.
Organization context for the request. Required for dashboard authentication. An API key or access token carries its own organization, so send either that organization or no header at all; a different one is rejected.
Response
Paginated list of messages in the conversation.
Changes
No recorded changes to this operation across all 3 revisions of this API.