List consent records
GET
/api/v1/privacy/consents
const url = 'https://digize.com/api/v1/privacy/consents?channel=email';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
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://digize.com/api/v1/privacy/consents?channel=email' \ --header 'x-api-key: <x-api-key>'Consent records, newest first: what contacts agreed to or withdrew from (marketing email, texts, tracking), where, when and the words shown. Narrow by contact or channel; pass nextCursor back as cursor for the next page.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”contactId
string
channel
string
cursor
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
contactId
required
string
contactName
required
string
channel
required
string
granted
required
boolean
source
required
string
sourceLabel
required
string
detail
required
string | null
wording
required
string | null
address
required
string | null
at
required
string format: date-time
actorKind
required
string
actorName
required
string
nextCursor
required
string | null
Example
{ "rows": [ { "channel": "email" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}