Api referenceEndpointsConsent
The user's consent per source and data category
GET
Every source the user has recorded consent for, with the state of each data
category, and the list of categories. A source with no consent recorded stores
everything, unless the instance sets OHS_CONSENT_REQUIRED=true, where it stores
nothing.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
id*stringFormat
uuidConsent per source.
application/json- response
data*array<>categories*array<>curl -X GET 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/consents' \ -H 'Authorization: Bearer ohs_sk_...'{ "data": [ { "provider": "string", "categories": [ { "category": "activity", "granted": true, "granted_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z" } ], "updated_at": "2019-08-24T14:15:22Z" } ], "categories": [ "activity" ]}