---
title: "Disconnect one of my OAuth grants: its refresh token and access tokens stop at once"
method: DELETE
path: "/api/me/oauth-grants/{grantId}"
tags: ["oauth"]
---

# Disconnect one of my OAuth grants: its refresh token and access tokens stop at once

`DELETE /api/me/oauth-grants/{grantId}`

## Request

- Base URL: `https://api.wizbi.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wizbi.ai/api/me/oauth-grants/{grantId}`
- Auth: none declared

## Path parameters

- `grantId` string, required

## Response `200`

Revoked (idempotent).

- object
  - `grant` OAuthGrant, required
    - `id` string, required
    - `clientId` string, required
    - `clientName` string
    - `principalId` string, required
    - `orgId` string, required
    - `scopes` string[], required
    - `extraScopes` string[], required
    - `resource` string, required
    - `surface` string, required
    - `createdAt` string, required
    - `lastUsedAt` string
    - `refreshExpiresAt` string, required
    - `revokedAt` string
    - `revokedReason` string
    - `active` boolean, required

## Other responses

- `404`: Not my grant.

---

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