Skip to main content

Fetch all consent records

GET 

/audit/consent-records

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

Request

Query Parameters

    offset integerrequired

    Number of records to skip for pagination.

    limit integerrequired

    Default value: 10

    Maximum number of records to return per page.

    lawfulBasis string

    Possible values: [consent, legal_obligation, contract, vital_interest, public_task, legitimate_interest]

    Unique ID of an object

    id string

    ID contains individual ID, data agreement ID or consent record ID

    sector string

    sector of the object

Responses

Consent records for data agreements (based on ISO 27560) listed successfully

Response Headers
    Schema
      consentRecords object[]
      pagination object
      currentPage integer

      Current page number

      totalItems integer

      Total number of items available

      totalPages integer

      Total number of pages based on limit

      limit integer

      Number of items per page

      hasPrevious boolean

      Indicates if there's a previous page

      hasNext boolean

      Indicates if there's a next page

    Loading...