Mailboxes
List your drafts across mailboxes
Lists only the caller's own unsent drafts in mailboxes where they may write drafts, newest first.
GET
Lists only the caller's own unsent drafts in mailboxes where they may write drafts, newest first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes and threadId narrows to one thread. Each row carries its mailbox identity. Teammates' and agents' drafts are excluded. Pass nextCursor as cursor for the next page.
apiKeyheader
x-api-key<token>limit?|nullcursor?Cursor|nullmailboxId?|array<>|nullkind?|nullthreadId?|nullOrganizationMailboxDraftPage
application/json- response
items*array<>nextCursor*string|nullimport { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.mailboxes.listOrganizationDrafts({});Example Response
{ "items": [ { "id": "string", "channel": "email", "threadId": "string", "inReplyToMessageId": "string", "state": "saved", "lockedByActionId": "string", "to": [ "string" ], "subject": "string", "createdAt": "string", "updatedAt": "string", "mailbox": { "id": "string", "address": "string", "kind": "personal" } } ], "nextCursor": "string"}