---
title: "Get Consent Details"
method: POST
path: "/api/service/data/consent/details"
tags: ["Data"]
---

# Get Consent Details

`POST /api/service/data/consent/details`

Retrieves the details of a consent by session ID.

## Request body

- ConsentDetailsDto
  - `sessionId` string, required — The ID of the data session to which the consent belongs.

## Response `200`

Returns the details of the consent

- ConsentDetailsResponseDto
  - `expiresAt` number — The Epoch time in seconds at which the consent expires.
  - `revokedAt` number — The Epoch time in seconds at which the consent was revoked.
  - `permissions` string[], required — The permissions granted in this consent.
  - `status` 'created' | 'authorised' | 'expired' | 'revoked' | 'failed', required — The current status of the consent.
  - `createdAt` number, required — The Epoch time in seconds when the consent was created.
  - `updatedAt` number, required — The Epoch time in seconds when the consent was last updated.

---

[API](https://skmtc.dev/augustus/apis/ivy-api.md) · [All operations](https://skmtc.dev/augustus/apis/ivy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/augustus/apis/ivy-api/revisions/917638bf9349?raw)
