---
title: "Authorize"
method: GET
path: "/api/oauth/authorize/{provider}"
---

# Authorize

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

## Request

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

## Path parameters

- `provider` string, required

## Query parameters

- `pk` string, required: Environment public key
- `callback_url` string, required: Developer app callback endpoint
- `app_callback_url` string: Final app redirect path
- `visitor_id` string, nullable: Anonymous visitor ID for analytics stitching
- `flow` string: Either 'signup' or 'login' — signup may create a new user, login rejects unknown users.
- `tos_accepted` boolean: Whether the SDK-rendered ToS checkbox was checked (signup only).
- `tos_fingerprint` string, nullable: Fingerprint of the tosUrl shown to the user (signup only).

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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