---
title: "Revoke a mailbox grant"
method: DELETE
path: "/v1/mailboxes/{id}/grants/{grantId}"
tags: ["Mailboxes"]
---

# Revoke a mailbox grant

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

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/mailboxes/{id}/grants/{grantId}`
- Auth: API key in header `x-api-key`

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.

## Path parameters

- `id` string, required
- `grantId` string, required

## Response `200`

SuccessResponse

- SuccessResponse
  - `success` boolean, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
