List threads
https://anjal.app/v1/inboxes/{id}/threadsNewest first, each with its labels. ?labels=a,b returns threads
that carry every label across their messages. Spam is left out unless
includeSpam=true; a thread containing spam then carries hasSpam: true.
Path parameters
idrequired string | Inbox UUID |
Query parameters
limitinteger | |
offsetinteger | |
labelsstring | Comma-separated labels, e.g. `needs-review,billing`. Only results carrying every one are returned. |
includeSpamboolean | Spam is stored but left out by default. Pass `true` to include it (`include_spam` also works). |
Responses
threadsobject[] | |
threadIdstring | format: uuid |
subjectstring | |
messageCountinteger | |
firstMessageAtstring | format: date-time |
lastMessageAtstring | format: date-time |
labelsstring[] | Every label carried by any message in the thread. |
hasSpamboolean | Present (true) only when the thread contains spam, which happens with `includeSpam=true`. |
Authentication
Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.