Revoke a mailbox grant
Removes a member's access to a mailbox. Request: DELETE /v1/mailboxes/{id}/grants/{grantId}. Scope: mailboxes:manage.
DELETE
Removes a member's access to a mailbox. The last grant that can configure the mailbox cannot be revoked, so a mailbox is never left with nobody able to administer it: grant a teammate the admin role before removing your own.
apiKeyheader
x-api-key<token>id*stringMatch
^mbx_[0-9a-hjkmnp-tv-z]{16,24}$grantId*stringMatch
^mbxacl_[0-9a-hjkmnp-tv-z]{16,24}$SuccessResponse
application/json- response
success*booleanimport { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.mailboxes.revokeGrant({
"id": "example",
"grantId": "example"
});Example Response
{
"success": true
}