---
title: "OAuth 2.1 authorization endpoint (consent POST)"
method: POST
path: "/oauth/authorize"
tags: ["OAuth"]
---

# OAuth 2.1 authorization endpoint (consent POST)

`POST /oauth/authorize`

Receives the user/team selection from the dashboard, validates the session cookie, mints an authorization code, and redirects to the client's redirect_uri.

## Request body

- object
  - `response_type` 'code', required
  - `client_id` string, required
  - `team_id` string, required
  - `redirect_uri` string, uri, required
  - `scope` string, nullable
  - `state` string
  - `code_challenge` string, required
  - `code_challenge_method` 'S256', required

## Other responses

- `302` — Default Response
- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `500` — Default Response

---

[API](https://skmtc.dev/jam/apis/jam-public-api.md) · [All operations](https://skmtc.dev/jam/apis/jam-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jam/jam-public-api/revisions/b628e9368a59/schema)
