Mailboxes
List mailbox grants
Returns who can use the mailbox, what each grant allows, and whether its sends wait for approval, newest first.
GET
Returns who can use the mailbox, what each grant allows, and whether its sends wait for approval, newest first. Pass nextCursor back as cursor for the next page; it is null on the last page.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$limit?|nullcursor?stringMailboxGrantPage
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.listGrants({ "id": "example"});Example Response
{ "items": [ { "id": "string", "actor": { "kind": "user", "id": "string", "displayName": "string" }, "permissions": [ "mailbox:read" ], "sendMode": "send", "createdAt": "string" } ], "nextCursor": "string"}Related documentation
List mailbox folders
Returns each folder that holds a thread with its thread count and the caller's unread count. The folder set is fixed, so the list is never paged.
List mailbox labels
Returns every label defined on a mailbox, ordered by name. A mailbox holds at most 100 labels, so the list is never paged.