---
title: "Deny a CLI device sign-in"
method: POST
path: "/oauth/device-deny"
tags: ["OAuth Consent"]
---

# Deny a CLI device sign-in

`POST /oauth/device-deny`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/oauth/device-deny`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Request body

- DeviceDeny
  - `user_code` string, required
  - `workspace_id` integer, nullable

## Response `204`

Decision recorded

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
