---
title: "GET /api/oauth/consents/{requestId}"
method: GET
path: "/api/oauth/consents/{requestId}"
tags: ["OAuth"]
---

# GET /api/oauth/consents/{requestId}

`GET /api/oauth/consents/{requestId}`

## Request

- The document declares no server URL.
- Auth: API key in cookie `session`

The request the browser arrived at the consent screen with. 404 when it is unknown, expired or already decided.

## Path parameters

- `requestId` string, required

## Response `200`

The request has succeeded.

- OAuthConsent: What the consent screen shows for one authorization request.
  - `clientName` string, required: Name of the application asking for access.
  - `redirectHost` string, required: Host the user is sent back to after deciding.
  - `scopes` string[], required: What the application asks for: OAuth scopes (`catalog:read`, `progress:read`, `admin`, `offline_access`).
  - `accountName` string, required: The signed-in account that would grant it.

## Other responses

- `default`: Default error response shared by every operation. `@error` emits an OpenAPI `default` response, keeping central transport failures typed without enumerating every status on every operation.

## Changes

- **2026-10-18** `9380d4c85a04`: 3 info
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `404`
  - added the optional property `errors` to the response with the `default` status
- **2026-10-17** `023e7c2cd140`: 1 info
  - endpoint added
- **2026-10-17** `d09902c84ca9`: 1 breaking
  - api path removed without deprecation
- **2026-10-17** `b3e2bb3e440b`: 1 info
  - endpoint added
- **2026-10-17** `6038dca99ed6`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/hexlet-basics/apis/hexlet-basics-api/changes/api/oauth/consents/:requestId/get.md)

---

[API](https://skmtc.dev/hexlet-basics/apis/hexlet-basics-api.md) · [All operations](https://skmtc.dev/hexlet-basics/apis/hexlet-basics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hexlet-basics/apis/hexlet-basics-api/revisions/51c7f596b47c?raw)
