Consent Audit Trail Export API

AI Tools

The Export Consent Audit Archive API allows customers to retrieve a comprehensive archive of a consent record, including consent metadata, approved operations, associated data categories and data types, lifecycle events, modification history, revocation records, and related audit information. The exported archive serves as a complete audit trail of the consent throughout its lifecycle and can be used for regulatory compliance, internal governance, dispute resolution, audit reviews, and record-keeping purposes. This API helps organisations demonstrate transparency and accountability by providing a verifiable record of consent-related activities and decisions associated with a Data Principal's consent.

API Definition

Request

TypeURLVersion
POSThttps://api.attestr.com/api/{version/public/consent/<_id>/exportUse "v3" for DPDA compliant version

Request Url Parameters

TypeNameDescriptionOptional (default)Min VersionMax Version
String_idConsent ID as generated in Register Consent APIRequiredv3

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.

Sample Request

CURL
Copy

Response

Http Status 200

TypeKeyDescriptionMin VersionMax Version
String_idUnique AsyncRequest Id as assigned by Attestr Platformv3
StringnumberUnique human readable number for reference as assigned by Attestr platformv3

Upon successful submission of an export request, Attestr runs an automated job, which fetches all the associated consent metadata and prepares an excel document containing the relevant audit trail information. Once completed, the job status is appropriately updated with the media ID of the excel file.

Sample Response

JSON
Copy

Get Export Result API

TypeURL
GEThttps://api.attestr.com/api/v3/public/common/async/<asyncId>

Request URL Parameters

NameDescriptionMin VersionMax Version
asyncIdReplace <asyncId> in the URL with the _id received in the export API response abovev3

Request Header Parameters

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

Response

Http Status 200

KeyDescriptionTypeMin VersionMax Version
_idRequest Id as queried in the URLStringv3
numberRequest number as generated in the export API responseStringv3
requestIdUnique ID used by Attestr for request tracing purposesStringv3
statusStatus of the request. Possible values are - COMPLETED, INITIATED, ERROREDStringv3
inputThe input details used for exportStringv3
output

Output object if the export is completed. It has the following structure. { "_id": "mediaId" }

This mediaId corresponds to the excel file which can be downloaded using Get Media Stream API.

Objectv3
errorError object if the operation ran into errors, null otherwise. Null if status is completed or initiated.Stringv3
createdUnix timestamp when the request was placed.Numberv3
updatedUnix timestamp when the request was last updated. Null if status is initiated.Numberv3
signatureSignature generated using the output and client secret. Used for validating the accuracy of data. Null if status is errored or initiated.Stringv3

Sample Output

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
  Last updated