---
updatedAt: 2026-05-21T16:40:27.000Z
---

# Retrieve a specific consent record.

Use this API to retrieve a consent record specified by id.                      <br/><br/><b>Entitlements required (one of the following):</b>                       <ul><li>readSelfPrivacyConsent (Read your own privacy consents)</li>                           <li>manageSelfPrivacyConsent (Manage your own privacy consents)</li>                           <li>readPrivacyConsent (Read privacy consents)</li>                           <li>managePrivacyConsent (Manage privacy consents)</li>                          <li>readAppPrivacyConsent (Read the privacy consents of the applications that you own)</li></ul>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "version": "1.0.0",
    "description": "Data privacy & consent",
    "title": "Data privacy & consent"
  },
  "servers": [
    {
      "url": "https://{tenanturl}",
      "variables": {
        "tenanturl": {
          "default": "{tenant_url}",
          "description": "URL of your IBM Security Verify tenant"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Data Privacy and Consent Management"
    }
  ],
  "paths": {
    "/config/v1.0/privacy/consents/{id}": {
      "get": {
        "tags": [
          "Data Privacy and Consent Management"
        ],
        "summary": "Retrieve a specific consent record.",
        "description": "Use this API to retrieve a consent record specified by id.                      <br/><br/><b>Entitlements required (one of the following):</b>                       <ul><li>readSelfPrivacyConsent (Read your own privacy consents)</li>                           <li>manageSelfPrivacyConsent (Manage your own privacy consents)</li>                           <li>readPrivacyConsent (Read privacy consents)</li>                           <li>managePrivacyConsent (Manage privacy consents)</li>                          <li>readAppPrivacyConsent (Read the privacy consents of the applications that you own)</li></ul>",
        "operationId": "getConsent",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique ID of a consent.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The operation was successful.",
            "content": {
              "*/*": {
                "schema": {
                  "title": "Consent",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The unique identifier of the consent."
                    },
                    "version": {
                      "type": "integer",
                      "description": "The version of the consent (Any update to the consent will increment the version)."
                    },
                    "subjectId": {
                      "type": "string",
                      "description": "The unique identifier of the user. It is the Cloud Directory user ID if isExternalSubject is false."
                    },
                    "purposeId": {
                      "type": "string",
                      "description": "The unique identifier of the purpose that the consent had been provided for."
                    },
                    "purposeVersion": {
                      "type": "integer",
                      "description": "The version of the purpose that the consent had been provided for."
                    },
                    "isExternalSubject": {
                      "type": "boolean",
                      "description": "Indicates if the subjectId is a Cloud Directory user."
                    },
                    "isGlobal": {
                      "type": "boolean",
                      "description": "Indicates if the consent applies across all applications."
                    },
                    "attributeId": {
                      "type": "string",
                      "description": "The unique identifier of an attribute that the consent had been provided for."
                    },
                    "attributeValue": {
                      "type": "string",
                      "description": "The value corresponding to the attributeId that the consent had been provided for.",
                      "example": "john.doe@mail.com"
                    },
                    "accessTypeId": {
                      "type": "string",
                      "description": "The unique identifier of the AccessType that the consent had been provided for. It is either for the purpose or the attribute."
                    },
                    "geoIP": {
                      "type": "string",
                      "description": "The IP address where the consent was provided."
                    },
                    "state": {
                      "type": "integer",
                      "description": "The type of consent that the user provided: \n* 1 - Consent allow,\n* 2 - Consent deny,\n* 3 - Opt in,\n* 4 - Opt out,\n* 5 - Transparency"
                    },
                    "createdTime": {
                      "type": "integer",
                      "description": "The epoch timestamp when the consent was created.",
                      "example": 1589178082
                    },
                    "lastModifiedTime": {
                      "type": "integer",
                      "description": "The epoch timestamp when the consent was last modified."
                    },
                    "startTime": {
                      "type": "integer",
                      "description": "The epoch timestamp when the consent validity starts.",
                      "example": 1589178082
                    },
                    "endTime": {
                      "type": "integer",
                      "description": "The epoch timestamp when the consent validity ends.",
                      "example": 1590178082
                    },
                    "customAttributes": {
                      "type": "array",
                      "description": "",
                      "items": {
                        "title": "Custom Attribute",
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "description": "Name of the custom attribute of the consent."
                          },
                          "value": {
                            "type": "string",
                            "description": "Value of the custom attribute of the consent."
                          }
                        }
                      }
                    },
                    "applicationId": {
                      "type": "string",
                      "description": "The unique identifier of the application that the consent had been provided for."
                    },
                    "applicationName": {
                      "type": "string",
                      "description": "The name of the application corresponding to the applicationId."
                    },
                    "purposeName": {
                      "type": "string",
                      "description": "The name of the purpose corresponding to the purposeId."
                    },
                    "accessTypeName": {
                      "type": "string",
                      "description": "The name of the AccessType."
                    },
                    "attributeName": {
                      "type": "string",
                      "description": "The name of the attribute corresponding to the attributeId."
                    },
                    "actorId": {
                      "type": "string",
                      "description": "The unique identifier of the actor that recorded the consent."
                    },
                    "actorType": {
                      "type": "string",
                      "description": "The type of actor that recorded the consent."
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Insufficient privileges to perform the request.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Error403"
                }
              }
            }
          },
          "404": {
            "description": "The requested resource does not exist.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Error404"
                }
              }
            }
          },
          "500": {
            "description": "An internal server error occured.",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/Error500"
                }
              }
            }
          }
        },
        "x-category": "Data privacy & consent",
        "x-publicAPI": "true"
      }
    }
  },
  "components": {
    "schemas": {
      "Error403": {
        "required": [
          "messageDescription",
          "messageId"
        ],
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string",
            "description": "The message key identifier",
            "example": "CSIBTXXXXE"
          },
          "messageDescription": {
            "type": "string",
            "description": "A requestor locale specific descriptive message",
            "example": "String message"
          }
        }
      },
      "Error404": {
        "required": [
          "messageDescription",
          "messageId"
        ],
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string",
            "description": "The message key identifier",
            "example": "CSIBTXXXXE"
          },
          "messageDescription": {
            "type": "string",
            "description": "A requestor locale specific descriptive message",
            "example": "String message"
          }
        }
      },
      "Error500": {
        "required": [
          "messageDescription",
          "messageId"
        ],
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string",
            "description": "The message key identifier",
            "example": "CSIBTXXXXE"
          },
          "messageDescription": {
            "type": "string",
            "description": "A requestor locale specific descriptive message",
            "example": "String message"
          }
        }
      }
    }
  },
  "x-original-swagger-version": "2.0",
  "x-explorer-enabled": false
}
```