---
title: "Revoke a team-admin grant"
method: DELETE
path: "/teams/{team_id}/admins/{user_id}"
tags: ["Teams"]
---

# Revoke a team-admin grant

`DELETE /teams/{team_id}/admins/{user_id}`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/teams/{team_id}/admins/{user_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`

Authorized: org_admin / org_owner (or the grantee revoking their own active grant on this team). Authorization: `team_id` is resolved to its owning organization from the DB and the caller must be an owner/admin of that org — or be `user_id` themselves revoking an active self-grant on this team — so a team in an org the caller does not belong to returns the same 404 as a nonexistent team (a member with a lower role receives 403) and no other tenant's grant can be revoked.

## Path parameters

- `team_id` string, required
- `user_id` string, uuid, required

## Response `200`

Revoked (or idempotent no-op if already revoked).

- object
  - `team_id` string, uuid, required
  - `user_id` string, uuid, required
  - `revoked` boolean, required: `true` when the grant was revoked by this request; `false` on an idempotent no-op.
  - `revoked_at` string, date-time: Timestamp of revocation. Present only when `revoked: true`.
  - `revoked_by` string, uuid: Actor who revoked the grant. Present only when `revoked: true`.
  - `idempotent_noop` boolean: `true` when there was no active grant to revoke. `revoked` is `false` in this case.

## 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/274b7a6ea182?raw)
