List this tenant's consent records
GET
/v1/consents
const url = 'https://api.vocapable.com/v1/consents?limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vocapable.com/v1/consents?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
Limit
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CursorPage[ConsentRecordSummary]
object
data
required
Data
Array<object>
ConsentRecordSummaryobject
id
required
Id
string
contact_id
required
Contact Id
string
consent_class
required
ConsentBasis
CANON fact 18 - the four consent classes (docs/07-compliance.md §consent).
string
scope
Scope
object
key
additional properties
any
source
required
Source
string
proof
Proof
object
key
additional properties
any
captured_at
required
Captured At
string format: date-time
status
required
Status
string
created_at
required
Created At
string format: date-time
has_more
Has More
boolean
Example
{ "data": [ { "consent_class": "pewc", "source": "web_form", "status": "active" } ], "has_more": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}