Skip to content

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": {} } ]