---
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

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
