---
title: "Revoke Consent"
method: POST
path: "/api/service/data/consent/revoke"
tags: ["Data"]
---

# Revoke Consent

`POST /api/service/data/consent/revoke`

Revokes a consent by session ID.

## Request body

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

## Response `200`

Returns the details of the revoked consent

- ConsentRevokeResponseDto
  - `expiresAt` number — The Epoch time in seconds at which the consent expires.
  - `revokedAt` number, required — The Epoch time in seconds at which the consent was revoked.
  - `permissions` string[], required — The permissions granted in this consent.
  - `status` 'revoked', 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-service-production.skmtc.workers.dev/v1/apis/augustus/ivy-api/revisions/67331c93ebb1/schema)
