Skip to content

List consent records

GET
/api/v1/privacy/consents
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.

contactId
string
channel
string
Allowed values: email sms tracking
cursor
string
<= 400 characters

Done

Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
contactId
required
string
contactName
required
string
channel
required
string
Allowed values: email sms tracking
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}