Zum Inhalt springen

Get tracking consent for a recipient

GET
/recipients/tracking-consent
Code sample: Shell / cURL
curl --request GET \
--url 'https://rocketem.fotone.io/api/v2/recipients/tracking-consent?email=hello%40example.com' \
--header 'Authorization: Bearer <token>'

Required scope: tracking_consent:read

Consent to the analysis of opens and clicks for one email. Keyed by email, so it also works for recipients that only exist in a connected shop. tracking_allowed is what sending and tracking do right now: with the organisation switch off everyone without a revocation is tracked.

Requires tracking_consent:read scope.

email
required
string format: email

Current consent state

Media typeapplication/json
object
data
object
email_hash
string
status
string
nullable
Allowed values: granted revoked
granted_at
string format: date-time
nullable
revoked_at
string format: date-time
nullable
source

Signup, consent_page, preference_center, import, api, unsubscribe, shop_unsubscribe, blocked

string
nullable
tracking_allowed

Whether opens and clicks of this address are recorded right now

boolean

Example

{
"data": {
"status": "granted"
}
}

Invalid or missing API token

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Token lacks required scope

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}

Validation failed

Media typeapplication/json
object
error
object
code
string
message
string
status
integer
details
object
key
additional properties
Array<string>

Example

{
"error": {
"code": "validation_error",
"message": "The given data was invalid.",
"status": 422
}
}

Organisation not configured for API access

Media typeapplication/json
object
error
object
code
string
message
string
status
integer

Example generated

{
"error": {
"code": "example",
"message": "example",
"status": 1
}
}