---
title: "Authorize"
method: GET
path: "/api/identity/oauth/{provider}/authorize"
tags: ["identity"]
---

# Authorize

`GET /api/identity/oauth/{provider}/authorize`

## Request

- Base URL: `https://api.superit.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.superit.ai/api/identity/oauth/{provider}/authorize`
- Auth: none declared

Redirect to OAuth provider for authorization.

``signup`` marks a start from the sign-up page, which begins the sign-up
trace. ``plan_key`` comes from the sign-up page; it picks the tier to
offer if this sign-in creates a new account. ``offer`` is the sign-up
offer code from the sign-up link, kept for a new account only.

## Path parameters

- `provider` 'google' | 'microsoft', required: Supported OAuth providers.

## Query parameters

- `return_url` string
- `signup` boolean
- `plan_key` string
- `offer` string

## Other responses

- `302`: Redirect to OAuth provider
- `307`: Successful Response
- `400`: Invalid input
- `401`: Not authenticated
- `403`: Forbidden
- `404`: Not found
- `405`: Method not allowed
- `409`: Conflict
- `422`: Validation Error

---

[API](https://skmtc.dev/superit/apis/super-it-api.md) - [All operations](https://skmtc.dev/superit/apis/super-it-api/llms.txt) - [OpenAPI document](https://skmtc.dev/superit/apis/super-it-api/revisions/4944d556c2bb?raw)
