---
title: "Authorize"
method: GET
path: "/oauth2/authorize"
tags: ["internal"]
---

# Authorize

`GET /oauth2/authorize`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/oauth2/authorize`
- Auth: HTTP bearer

OAuth2 Authorization Endpoint.

The user must be logged in. Shows a consent page with the requested scopes.
On approval, redirects back to redirect_uri with an authorization code.

## Query parameters

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
