Sign inGet Started

bird email threads search

Usage

Code example
bird email threads search <q> [flags]

Description

Full-text search across every mailbox in the workspace, ranked by relevance. Matches a conversation's message subjects, body text, and sender and recipient addresses, and returns the matching threads with highlighted subject or body fragments when available.

Returns a paginated JSON envelope; narrow with the filters below and page with --limit and --starting-after.

Examples

Code example
bird email threads search <q>
bird email threads search <q> | jq -r '.data[].id'
bird email threads search <q> --limit 50 --starting-after <cursor>

Options

Filters

NameDescription
--afterMatch only conversations with a matching message received at or after this time. Use the response cursors for pagination.
--beforeMatch only conversations with a matching message received at or before this time. Use the response cursors for pagination.
--label <value>…Restrict to conversations that have this label. Repeat the parameter to ask for more than one: only conversations that have every label you list are returned. A placement label picks a folder: inbox, archive, spam, or blocked. A custom label matches a conversation in any folder.
--mailbox-idRestrict the search to a mailbox by ID or email address in this workspace. An unknown or ambiguous email address returns 404; a valid mailbox ID with no matching threads returns an empty page.
--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. Allowed range: 1 to 100.
--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 email threads deleteDelete a thread
bird email threads getGet a thread
bird email threads listList threads
bird email threads updateUpdate a thread

Continue with the documentation, guides and examples for this topic.