---
title: "Start per-user OAuth flow"
method: GET
path: "/api/oauth/{serverId}/start"
tags: ["OAuth"]
---

# Start per-user OAuth flow

`GET /api/oauth/{serverId}/start`

## 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}/start`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Begins the OAuth 2.0 authorization-code flow (with PKCE when configured) for the current Grafana user against an OAuth-enabled MCP server. Responds with a 302 redirect to the provider's authorization endpoint. Intended to be opened in a popup window.

## Path parameters

- `serverId` string, required

## Other responses

- `302`: Redirect to the provider's authorization endpoint
- `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/start/get.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)
