---
title: "Deny consent request"
method: POST
path: "/v1/consent/{consentToken}/deny"
tags: ["Consent"]
---

# Deny consent request

`POST /v1/consent/{consentToken}/deny`

## Request

- Base URL: `https://idaas.yourflexpay.com/api`
- URL: `https://idaas.yourflexpay.com/api/v1/consent/{consentToken}/deny`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/docs/v1/consent/:consentToken/deny/post.ts> (a function with typed inputs; its response is checked against the schema)

Denies a pending consent token and marks the related claim request as rejected.

## Path parameters

- `consentToken` string, required

## Response `200`

Consent denied

- ApiResponseClaimResponse
  - `success` boolean
  - `message` string
  - `errorCode` string
  - `data` ClaimResponse
    - `id` string, uuid
    - `tagId` string, uuid
    - `tagString` string
    - `subjectId` string, uuid
    - `subjectExternalId` string
    - `requestedByAppId` string, uuid
    - `requestedByAppName` string
    - `state` 'PENDING' | 'ACTIVE' | 'REVOKED' | 'DENIED'
    - `requestedAt` string, date-time
    - `approvedAt` string, date-time
    - `revokedAt` string, date-time
    - `consentToken` string
    - `approvalUrl` string
    - `tokenExpiresAt` string, date-time
  - `errors` string[]
  - `timestamp` string, date-time

## Other responses

- `404`: Consent token not found or expired
- `409`: Consent is no longer pending

## Changes

- **2026-04-17** `db1f954badfb`: 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the optional property `errorCode` to the response with the `200` status

[Operation history](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/changes/v1/consent/:consentToken/deny/post.md)

---

[API](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api.md) - [All operations](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reflexpay/apis/idaas-identity-as-a-service-api/revisions/db1f954badfb?raw)
