---
title: "Oauth Authorize"
method: POST
path: "/api/v1/oauth/authorize"
tags: ["oauth"]
---

# Oauth Authorize

`POST /api/v1/oauth/authorize`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/oauth/authorize`
- Auth: none declared

Step 1: Frontend consent page calls this after user logs in.
Validates Firebase token, generates auth code, returns code+state+redirect_uri.

## Request body

- AuthorizeRequest
  - `id_token` string, required
  - `client_id` string, required
  - `redirect_uri` string, required
  - `state` string, required
  - `response_type` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api.md) · [All operations](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/slidemaster/apis/slidemaster-ai-api/revisions/a964c005977e?raw)
