1300: Fetch consent stream data
Endpoint ID: | 1300 | ||
Method | POST | ||
URLs: | /insights/consent | ||
entity-id | Rubiq entity ID specifying the Rubiq Profile for which to fetch consent stream data | ||
ext-key | External key, uniquely identifying the Rubiq Profile for which to fetch consent stream data | ||
ext-type | Type of external key | ||
Request body: | OPTIONAL: JSON body containing filtering options for the request { "afterID": 100, "beforeID": 103, "since": "2025-03-01T12:55:02" }
| ||
Response body: | The response is a JSON object containing an The
The Event The Event { "events": [ { "event": "accept | renew | upgrade | withdraw | expire", "eventID": 1234, "entityID": 9876, "data": {}, "timestamp": "2012-04-23T18:25:43.000Z", "object": { "id": "509b9d1e-46f9-4d6f-a34f-9c6678c95bdf", "type": "terms | consent", "name": "Name of object", "version": "null | x.x", "prevVersion": "null | x.x" }, "source": { "id": "8d68a9f6-fd00-4003-b77a-068c0267b066", "name": "Name of source" }, "contextData": {} } ], "paging": { "fromID": 1234, "toID": 4567, "pageSize": 2, "more": true } } Optionally, the Event may be configured in Rubiq Cloud to include a | ||
Status codes: | HttpStatusCode | ApiStatusSubCode | Description |
200 | Consent stream data successfully returned | ||
404 | 404.1 |
| |
404 | 404.2 | External relation key not recognized |