---
title: "Signed-in user denies the client; returns where to send the browser"
---

> Documentation Index
> Fetch the complete documentation index at: https://truememory-docs.mvstg.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Auth API › OAuth

`POST /oauth/requests/{request_id}/deny`

## Authentication

- `HTTPBearer`, http, header `Authorization`

## Path parameters

- `request_id` (`deny_oauth_requests__request_id__deny_post.path.request_id`; string, required)
  - format `uuid`

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://truememory-auth.mvstg.com/oauth/requests/<request_id>/deny' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://truememory-auth.mvstg.com/oauth/requests/<request_id>/deny';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://truememory-auth.mvstg.com/oauth/requests/<request_id>/deny"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.text)
```

## Responses

### 200

Successful Response

#### Example

```json
{
  "redirect_url": "string"
}
```

- `redirect_url` (`deny_oauth_requests__request_id__deny_post.response.200.redirect_url`; string, required)

### 422

Validation Error

#### Example

```json
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
```

- `detail` (`deny_oauth_requests__request_id__deny_post.response.422.detail`; array<object>, optional)
  - `loc` (`deny_oauth_requests__request_id__deny_post.response.422.detail.loc`; array<any of>, required)
    - any of: `string`, `integer`
  - `msg` (`deny_oauth_requests__request_id__deny_post.response.422.detail.msg`; string, required)
  - `type` (`deny_oauth_requests__request_id__deny_post.response.422.detail.type`; string, required)
  - `input` (`deny_oauth_requests__request_id__deny_post.response.422.detail.input`; unknown, optional)
  - `ctx` (`deny_oauth_requests__request_id__deny_post.response.422.detail.ctx`; object, optional)


Source: https://truememory-docs.mvstg.com/auth/oauth/requests/deny/index.md
