Track Consent Lifecycle API

Introduction

The Track Consent Lifecycle API, also referred to as the Get Consent Details API, allows clients to retrieve the latest status, metadata, lifecycle events, validity information, and operational details associated with a registered consent on the Attestr Platform. Read about Register Consent API for more details.

This API enables clients to monitor and audit the complete lifecycle of a consent, including its registration, activation, usage, expiry, revocation, and associated processing activities. Using the unique consent id, clients can fetch detailed consent information required for compliance monitoring, workflow orchestration, audit logging, customer support, and regulatory reporting.

API Details

Request

TypeURLVersion
GEThttps://api.attestr.com/api/{version/public/consent/{consentId}Use "v3" for DPDA compliant version

Request URL Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
StringconsentIdConsent ID as generated by the Attestr platform during register consent stepRequiredv3

Sample Request URL

URL
Copy

Request Header Parameters

TypeNameValue / DescriptionOptionalMin VersionMax Version
StringContent-Typeapplication/jsonRequiredv3
StringAuthorizationBasic {authToken}Requiredv3

If you do not have the authentication token, please refer to Register App to generate one.

Response

Http Status 200

TypeKeyDescriptionMin VersionMax Version
String_idUnique consent Id as assigned by Attestr Platformv3
StringnumberUnique human readable consent number for reference as assigned by Attestr platformv3
StringrequestIdUnique internal request Id assigned by Attestr for debugging and logging purposes.v3
StringstatusStatus of the consent. Refer to Consent Status to read more about status values.v3
ObjectdataConsent data object details as provided while registering the consentv3
ObjectmetadataUsed to record browser metadata, IP address etc of the Data Principal. Populated only for hosted pages feature ie. when consent is collected on Attestr provided UI.v3
Array<Object>lifecycleSequence of lifecycle updates recorded on the consent Refer to Consent Lifecycle Eventsv3
NumbercreatedUnix timestamp when the consent was registeredv3
StringclientIf consent is registered using API, then this field is populated with the APP Id (ie. API client Id)v3
StringcreatedByMember Id of the org member who registered the consent on the platformv3
StringcreatedByOrgClient Account ID / Organization ID in which the said consent is registeredv3
NumberupdatedUnix timestamp when the consent was last modifiedv3
StringupdatedByMember Id of the org member who performed the last update on the consent object.v3

Sample Response

Sample response for valid input

JSON
Copy

Error Response

ParameterTypeDescription
codeNumberUnique error codes for different errors. Always available.
httpStatusCodeStringStandard HTTP status code for the error
messageStringError message describing the error. Always Available.
detailsStringDetail error message. Available only for certain types of errors.

Error Codes

HTTP StatusError CodeError Message
4004001Malformed data or missing required parameter values
4004005Operation could not be performed due to low credits balance
4014016Invalid client authorization
4034031Unauthorized access
4034035Requested service is not provisioned for your account
4034039Client's IP address is not whitelisted
4034035Requested service is not provisioned for your account
4294291Maximum account rate limit exceeded
4294292Maximum API rate limit exceeded
4294293Maximum account daily limit exceeded
4294294Maximum API daily limit exceeded
5005001Request could not be processed

Sample Error Response

JSON
Copy

Get Free Trial

Create a free account Or “Talk to Us” for price information and other queries.

VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches