---
title: "POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/start"
method: POST
path: "/api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/start"
---

# POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/start

`POST /api/v1/projects/{projectUuid}/aiAgents/mcpServers/{mcpServerUuid}/oauth/start`

## Path parameters

- `projectUuid` string, required
- `mcpServerUuid` string, required

## Request body

- ApiAiMcpOAuthCredentialRequest
  - `credentialScope` 'shared' | 'user'

## Response `200`

Success

- ApiStartAiMcpOAuthResponse
  - `results` object, required
    - `authorizationUrl` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/versions/40c933755c9a/schema)
