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

# Approve consent request

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

## Request

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

Approves a pending consent token and returns an attestation token for the requesting application.

## Path parameters

- `consentToken` string, required

## Response `200`

Consent approved and attestation token issued

- ApiResponseAttestationTokenResponse
  - `success` boolean
  - `message` string
  - `errorCode` string
  - `data` AttestationTokenResponse
    - `token` string
    - `expiresAt` integer
    - `tag` string
    - `subjectId` string
    - `consentId` string
  - `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/approve/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)
