---
title: "Authorize with OAuth 2.0"
method: GET
path: "/v1/auth/oauth2/authorize"
tags: ["auth_endpoints"]
---

# Authorize with OAuth 2.0

`GET /v1/auth/oauth2/authorize`

## Request

- Base URL: `https://partners.tryotter.com`
- URL: `https://partners.tryotter.com/v1/auth/oauth2/authorize`
- Auth: none required
- TypeScript: <https://skmtc.dev/cloudkitchens/apis/otter-api/docs/v1/auth/oauth2/authorize/get.ts> (a function with typed inputs; its response is checked against the schema)

Request a user's authorization to perform action on their behalf

## Query parameters

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

## Other responses

- `302`: The token was successfully generated.
- `400`: The request is malformed.
- `401`: Invalid authorization.
- `422`: The request body is not valid.

---

[API](https://skmtc.dev/cloudkitchens/apis/otter-api.md) - [All operations](https://skmtc.dev/cloudkitchens/apis/otter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudkitchens/apis/otter-api/revisions/4c868194a467?raw)
