---
title: "Authorize"
method: GET
path: "/auth/authorize"
tags: ["Authentication"]
---

# Authorize

`GET /auth/authorize`

OAuth2 authorization endpoint. Redirects to the upstream OIDC provider.

Validates `client_id` + `redirect_uri`. Built-in platform clients are
validated against config; third-party MCP clients are looked up in Mantle
via `MantleClient.find_mcp_client`.

## Query parameters

- `response_type` string, required
- `client_id` string, required
- `redirect_uri` string, required
- `provider` string
- `scope` string, nullable
- `state` string, nullable
- `code_challenge` string, nullable
- `code_challenge_method` string, nullable
- `setup_operator_token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agience/apis/agience-platform-api.md) · [All operations](https://skmtc.net/agience/apis/agience-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agience/agience-platform-api/revisions/187bad270c94/schema)
