---
title: "Deny Device Login"
method: POST
path: "/api/auth/device/deny"
tags: ["auth"]
---

# Deny Device Login

`POST /api/auth/device/deny`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/auth/device/deny`
- Auth: HTTP bearer

Denies a pending user code; the polling terminal then gets ``access_denied``.

## Request body

- DeviceUserCodeRequest: Request schema for the signed-in human approving or denying a user code.
  - `user_code` string, required

## Response `200`

Successful Response

- DeviceDecisionResponse: Response schema for an approve or deny call.
  - `ok` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
