---
title: Revoke a Consent
slug: connect/revoke-a-consent
docTags: 
createdAt: 2023-11-21T06:37:07.053Z
---

:::ApiMethodV2
```json
{
  "name": "revoke",
  "method": "DELETE",
  "url": "https://api-sandbox.klavi.ai/data/v1/consents/{consentId}/revoke",
  "description": "Revoke a consent by its consentId",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "toQ3gxYPkT-ORHXmeukFe",
        "language": "curl",
        "code": "curl --location --globoff --request DELETE 'https://api-sandbox.klavi.ai/data/v1/consents/{consentId}/revoke' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "toQ3gxYPkT-ORHXmeukFe"
  },
  "results": {
    "languages": [
      {
        "id": "vjk7G6-oIpMdhfbVkEslZ",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"ok\"\n}"
      }
    ],
    "selectedLanguageId": "vjk7G6-oIpMdhfbVkEslZ"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "Bearer access token, it returned by the /auth",
        "children": []
      }
    ],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "revoke",
  "legacyHash": "81quvAGoPdhJUe03flwui"
}
```
:::

