post https://a.klaviyo.com/client/push-tokens/
Responses
202Success
202Success
xxxxxxxxxx
68"image": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
curl --request POST \
--url 'https://a.klaviyo.com/client/push-tokens/?company_id=PUBLIC_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2024-02-15' \
--data '
{
"data": {
"type": "push-token",
"attributes": {
"token": "1234567890",
"platform": "android",
"enablement_status": "AUTHORIZED",
"vendor": "APNs",
"background": "AVAILABLE",
"device_metadata": {
"device_id": "1234567890",
"klaviyo_sdk": "swift",
"sdk_version": "1.0.0",
"device_model": "iPhone12,1",
"os_name": "ios",
"os_version": "14.0",
"manufacturer": "Apple",
"app_name": "Klaviyo",
xxxxxxxxxx
14{
"errors": [
{
"id": "string",
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}