LIST - Fetch all consent records

GET {{baseUrl}}/audit/consent-records?offset=<integer>&limit=10&lawfulBasis=<string>&id=<string>

This endpoint is used to fetch all consent records with pagination for individuals in an organisation defined in the consent building block.

Request Params

KeyDatatypeRequiredDescription
offsetstringRequested index for start of resources to be provided in response requested by client
limitnumberNumber of items returned per page. Requested number of resources to be provided in response requested by client
lawfulBasisstringUnique ID of an object
idstringID contains indivitual id, data agreement id or consent record id

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;consentRecords&quot;:[{&quot;value&quot;:&quot;\u003cError: Could not resolve allOf schema&quot;},{&quot;value&quot;:&quot;\u003cError: Could not resolve allOf schema&quot;}],&quot;pagination&quot;:{&quot;currentPage&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalItems&quot;:&quot;\u003cinteger\u003e&quot;,&quot;totalPages&quot;:&quot;\u003cinteger\u003e&quot;,&quot;limit&quot;:&quot;\u003cinteger\u003e&quot;,&quot;hasPrevious&quot;:&quot;\u003cboolean\u003e&quot;,&quot;hasNext&quot;:&quot;\u003cboolean\u003e&quot;}}