---
title: "Authorize user"
method: GET
path: "/oauth/authorize"
---

# Authorize user

`GET /oauth/authorize`

Authorize the user and generate an authorization code.

## Query parameters

- `client_id` string, required
- `redirect_uri` string, required
- `state` string, required
- `response_type` string, required

## Response `200`

Authorization code generated successfully

- object
  - `location` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api.md) · [All operations](https://skmtc.dev/supabase/apis/dalil-oauth-resource-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/dalil-oauth-resource-api/revisions/40a7125e0355/schema)
