Skip to content

Log a privacy request

POST
/api/v1/privacy/requests
curl --request POST \
--url https://digize.com/api/v1/privacy/requests \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "kind": "export", "source": "email", "contactId": "example", "name": "example", "email": "", "phone": "example", "detail": "example", "receivedAt": "2026-04-15T12:00:00Z" }'

Logs a contact’s request for a copy of their data (export) or for it to be deleted (delete), as it reached the workspace. It’s due 30 days after it came in.

Needs the settings:write permission.

Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
kind
required
string
Allowed values: export delete
source
required
string
Allowed values: email phone form in_person mail api other
contactId
string
name
string
<= 200 characters
email
Any of:
string format: email
/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
phone
string
<= 40 characters
detail
string
<= 2000 characters
receivedAt
string format: date-time

Done

Media typeapplication/json
object
id
required
string
kind
required
string
Allowed values: export delete
status
required
string
Allowed values: received working done declined
contactId
required
string | null
name
required
string
email
required
string | null
phone
required
string | null
source
required
string
Allowed values: email phone form in_person mail api other
detail
required
string | null
receivedAt
required
string format: date-time
dueAt
required
string format: date-time
startedAt
required
Any of:
string format: date-time
completedAt
required
Any of:
string format: date-time
confirmedAt
required
Any of:
string format: date-time
confirmedVia
required
Any of:
string
Allowed values: email other
confirmNote
required
string | null
exportReady
required
boolean
exportBytes
required
number | null
erased
required
Any of:
object
key
additional properties
number
declineReason
required
string | null
createdByName
required
string
canEmail
required
boolean

Example

{
"kind": "export",
"status": "received",
"source": "email",
"confirmedVia": "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"
}
}

A request with the same Idempotency-Key is still running (conflict).

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 Idempotency-Key was used with a different request.

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"
}
}