post https://a.klaviyo.com/api/push-tokens/
Responses
202Success
202Success
xxxxxxxxxx
24curl --request POST \
--url https://a.klaviyo.com/api/push-tokens/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2024-07-15' \
--data '
{
"data": {
"type": "push-token",
"attributes": {
"platform": "android",
"enablement_status": "AUTHORIZED",
"vendor": "apns",
"background": "AVAILABLE",
"profile": {
"data": {
"type": "profile"
}
}
}
}
}
'
xxxxxxxxxx
14{
"errors": [
{
"id": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}