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

# Authorize

`GET /api/v1/oauth/authorize`

Start OAuth flow: redirect user to Google login.

ChatGPT sends:
  GET /oauth/authorize?client_id=bolsai&redirect_uri=https://chat.openai.com/...&state=xyz&response_type=code

MCP clients additionally send PKCE (code_challenge + S256) and an RFC 8707
`resource` naming the MCP endpoint. We store them with the redirect_uri + state
in session, then send the user to Google.

## Query parameters

- `client_id` string
- `redirect_uri` string
- `state` string
- `response_type` string
- `code_challenge` string
- `code_challenge_method` string
- `resource` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usebolsai/apis/bolsai.md) · [All operations](https://skmtc.net/usebolsai/apis/bolsai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usebolsai/bolsai/versions/4ff1922c6a7f/schema)
