---
title: "Submit Authorization Consent"
method: POST
path: "/oauth/authorize"
tags: ["MCP OAuth"]
---

# Submit Authorization Consent

`POST /oauth/authorize`

Submit the user's consent, issue an authorization code, and return the client redirect target

## Request body

- ConsentRequest
  - `client_id` string, required
  - `redirect_uri` string, required
  - `code_challenge` string, required
  - `code_challenge_method` string, required
  - `resource` string, required
  - `state` string
  - `workspace_id` string
  - `workspace_name` string
  - `csrf` string

## Response `200`

Consent response with the client redirect target

- ConsentResponse
  - `redirect_to` string

## Changes

- **2026-06-12** `3c8b8cd609d5` — 1 info
  - endpoint added
- **2026-05-04** `d606e84c75e4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/oauth/authorize/post.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/0739fa5022ca/schema)
