---
title: "Approve"
method: POST
path: "/oauth2/approve"
tags: ["internal"]
---

# Approve

`POST /oauth2/approve`

## 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/approve`
- Auth: HTTP bearer

Approve OAuth2 authorization from the frontend consent page.

Called via the frontend proxy (X-Auth-Token header) after user clicks Allow.
Returns JSON with the authorization code; frontend performs the redirect.

## 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)
