LIST - List all consent records

GET {{baseUrl}}/service/individual/record/data-agreement/:dataAgreementId/all?offset=<integer>&limit=10

This endpoint is used to list all consent records existing for a data agreement for an organisation defined in the consent building block. The response is paginated.

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

HEADERS

KeyDatatypeRequiredDescription
X-ConsentBB-IndividualIdstring(Required) Individual Id
Acceptstring

RESPONSES

status: OK

{&quot;consentRecords&quot;:[{&quot;dataAgreementId&quot;:&quot;\u003cstring\u003e&quot;,&quot;dataAgreementRevisionId&quot;:&quot;\u003cstring\u003e&quot;,&quot;individualId&quot;:&quot;\u003cstring\u003e&quot;,&quot;signatureId&quot;:&quot;\u003cstring\u003e&quot;},{&quot;dataAgreementId&quot;:&quot;\u003cstring\u003e&quot;,&quot;dataAgreementRevisionId&quot;:&quot;\u003cstring\u003e&quot;,&quot;individualId&quot;:&quot;\u003cstring\u003e&quot;,&quot;signatureId&quot;:&quot;\u003cstring\u003e&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;}}