Skip to Content

Revoke a mailbox grant

Removes a member's access to a mailbox. Request: DELETE /v1/mailboxes/{id}/grants/{grantId}. Scope: mailboxes:manage.

DELETE
/v1/mailboxes/{id}/grants/{grantId}

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

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

Response Body

SuccessResponse

application/json
  1. response
success*boolean
Example Request
import { 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
}

Related documentation