---
title: "Api Oauth Decision"
method: POST
path: "/api/oauth/decision"
tags: ["oauth"]
---

# Api Oauth Decision

`POST /api/oauth/decision`

## Request

- Base URL: `https://tradedashboard.eu` (the document declares no server; this is the origin it was published from)
- URL: `https://tradedashboard.eu/api/oauth/decision`
- Auth: none declared

Record the consent decision from oauth.html's script (session-gated).
Returns ``{"redirect_to": ...}`` for the script to navigate to; never
redirects itself, since it is called via ``fetch``.

## Request body

- OAuthDecisionReq: Consent decision from static/oauth.html's script -- the JSON counterpart of the ``client_id``/``redirect_uri``/... query params ``/oauth/authorize`` was originally called with.
  - `client_id` string, required
  - `redirect_uri` string, required
  - `code_challenge` string, required
  - `decision` string, required
  - `resource` string, nullable
  - `scope` string, nullable
  - `state` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer.md) · [All operations](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/llms.txt) · [OpenAPI document](https://skmtc.dev/tradedashboard/apis/eu-trade-explorer/revisions/b9abc715a5c2?raw)
