bird amb conversations list-messages
Usage
Codevoorbeeld
bird amb conversations list-messages <conversation-id> [flags]Description
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.
Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.
Examples
Codevoorbeeld
bird amb conversations list-messages <conversation-id>
bird amb conversations list-messages <conversation-id> | jq -r '.data[].id'
bird amb conversations list-messages <conversation-id> --limit 50 --starting-after <cursor>Options
Filters
| Name | Description |
|---|---|
| --direction | Filter to received (inbound) or sent (outbound) messages. Possible values: outbound, inbound. |
| --response-schema | Print the fields this command returns, then exit |
Pagination
| Name | Description |
|---|---|
| --ending-before | 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. |
| --limit <n> | Maximum number of items to return per page. |
| --starting-after | Cursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order. |
Related
| Name | Description |
|---|---|
| bird amb conversations get | Get a conversation |
| bird amb conversations list | List conversations |
| bird amb conversations typing | Send a typing indicator |
| bird amb conversations update | Update a conversation |
Gerelateerde bronnen
Ga verder met de documentatie, gidsen en voorbeelden voor dit onderwerp. De bronnen zijn in het Engels.
Begrijp het conceptShould I use a Bird SDK or call the API directly?Volg het leerpadBuild your first integrationImplementatiegidsSend your first email
Ontvang een implementatieoverzicht