Skip to Content

List mailbox grants

Returns who can use the mailbox, what each grant allows, newest first. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.

GET
/v1/mailboxes/{id}/grants

Returns who can use the mailbox, what each grant allows, newest first. Pass nextCursor back as cursor for the next page; it is null on the last page.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$

Query Parameters

limit?|null
cursor?string

Response Body

MailboxGrantPage

application/json
  1. response
items*array<>
nextCursor*string|null
Example Request
import { 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"
      ],
      "createdAt": "string"
    }
  ],
  "nextCursor": "string"
}

Related documentation