---
title: "Disconnect per-user OAuth"
method: POST
path: "/api/oauth/{serverId}/disconnect"
tags: ["OAuth"]
---

# Disconnect per-user OAuth

`POST /api/oauth/{serverId}/disconnect`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/oauth/{serverId}/disconnect`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Deletes the current Grafana user's stored token for an OAuth-enabled MCP server.

## Path parameters

- `serverId` string, required

## Response `204`

Token deleted

## Other responses

- `401`: No authenticated Grafana user
- `404`: Server unknown or has no OAuth configuration

## Changes

- **2026-08-25** `336f05fb2b50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/changes/api/oauth/:serverId/disconnect/post.md)

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
