Sign inGet Started

bird amb conversations list-messages

Usage

Przykład kodu
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

Przykład kodu
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

NameDescription
--directionFilter to received (inbound) or sent (outbound) messages. Possible values: outbound, inbound.
--response-schemaPrint the fields this command returns, then exit

Pagination

NameDescription
--ending-beforeCursor 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-afterCursor from the next_cursor field of a previous list response. Returns items immediately after the cursor position in the current sort order.
NameDescription
bird amb conversations getGet a conversation
bird amb conversations listList conversations
bird amb conversations typingSend a typing indicator
bird amb conversations updateUpdate a conversation

Powiązane zasoby

Kontynuuj z dokumentacją, przewodnikami i przykładami dotyczącymi tego tematu. Zasoby są w języku angielskim.

Uzyskaj brief wdrożeniowy