---
title: "Owner-initiated revocation of an OAuth grant by id"
method: POST
path: "/oauth/grants/revoke"
tags: ["OAuth"]
---

# Owner-initiated revocation of an OAuth grant by id

`POST /oauth/grants/revoke`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/oauth/grants/revoke`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`
  - API key in cookie `mnemom_session`

Revokes a grant the caller owns, by its opaque `grant_id`, within an org the caller owns/admins. Distinct from RFC 7009 POST /oauth/revoke (which lets a token HOLDER revoke its OWN token). Idempotent: revoking an already-revoked grant in the caller's org returns revoked:true with already_revoked:true. The revocation cascades to the grant's refresh token (a single grant row holds both the access and refresh token hashes), and is recorded on the org's audit trail (action=oauth.grant_revoked). A grant in another org — or unknown — returns 404 with no distinction (no cross-org existence oracle).

## Request body

- object
  - `grant_id` string, required
  - `org_id` string, required

## Response `200`

The grant is revoked (idempotent).

- object
  - `revoked` true
  - `grant_id` string
  - `already_revoked` boolean: true when the grant was already revoked before this call.

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

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