---
title: "Deny: return to the app with access_denied"
method: POST
path: "/oauth/consent/deny"
tags: ["OAuth Consent"]
---

# Deny: return to the app with access_denied

`POST /oauth/consent/deny`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/oauth/consent/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

- AuthorizeDeny
  - `client_id` string, required
  - `redirect_uri` string, required
  - `state` string, nullable

## Response `200`

Return to the app

- ConsentRedirect
  - `redirect_url` string, required: Where to send the browser next: back to the app

## Other responses

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

---

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