Skip to content

Consents

Endpoint that lists all available consents for a client.

Depending on your configuration, the API may take or return additional fields in the extendedProperties object.

To get an example of your specific integration, please contact our support team.

Operations

List Consents

Request

Returns a list of all available consents

Security
api_key
curl -i -X GET \
  https://api.oculos.no/v4/consents \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
Array [
namestring

Display name of consent

Example:"Medlemsvilkår"
idstring

Id of consent, use this id when setting consents to true/false

Example:"acceptsTerms"
metaDataobject
]
Response
[ { "name": "Medlemsvilkår", "id": "acceptsTerms", "metaData": {} } ]