Releasesv0.1.0
Api referenceEndpointsConsent

Every consent change of the user, newest first

GET
/v1/users/{id}/consents/history

One event per category granted or revoked, with the credential that made the change and the evidence it gave. Kept while the user exists; erased with the user.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

id*string
Formatuuid

Query Parameters

cursor?string

The next_cursor of the previous page.

limit?integer
Range1 <= value <= 1000
Default100

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

One page of events.

application/json
  1. response
data*array<>
next_cursor*|

Null on the last page.

curl -X GET 'http://localhost:8080/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/consents/history' \  -H 'Authorization: Bearer ohs_sk_...'
{  "next_cursor": "string",  "data": [    {      "id": 0,      "at": "2019-08-24T14:15:22Z",      "provider": "string",      "category": "activity",      "action": "granted",      "actor_id": "string",      "evidence": "string"    }  ]}
Edit on GitHub