Create or Update Client Push Token
POST {{baseUrl}}/client/push-tokens/?company_id={{companyId}}
Create or update a push token.
This endpoint is designed to be called from our mobile SDKs (iOS and Android).
You must have push notifications enabled to use this endpoint.
Rate limits:
Burst: 3/s
Steady: 150/m
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
company_id | string | (Required) Your Public API Key / Site ID. See this article for more details. |
Request Body
{"data"=>{"type"=>"push-token", "attributes"=>{"token"=>"<string>", "platform"=>"ios", "vendor"=>"fcm", "profile"=>{"data"=>{"type"=>"profile", "attributes"=>{"phone_number"=>"<string>", "external_id"=>"<string>", "anonymous_id"=>"<string>", "_kx"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "organization"=>"<string>", "title"=>"<string>", "image"=>"<string>", "location"=>{"address1"=>"<string>", "address2"=>"<string>", "city"=>"<string>", "country"=>"<string>", "latitude"=>"<string>", "longitude"=>"<string>", "region"=>"<string>", "zip"=>"<string>", "timezone"=>"<string>", "ip"=>"<string>"}, "meta"=>{"patch_properties"=>{"unset"=>"<string>"}}, "email"=>"<string>"}, "id"=>"<string>"}}, "enablement_status"=>"AUTHORIZED", "background"=>"AVAILABLE", "device_metadata"=>{"device_id"=>"<string>", "klaviyo_sdk"=>"swift", "sdk_version"=>"<string>", "device_model"=>"<string>", "os_name"=>"ipados", "os_version"=>"<string>", "manufacturer"=>"<string>", "app_name"=>"<string>", "app_version"=>"<string>", "app_build"=>"<string>", "app_id"=>"<string>", "environment"=>"debug"}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
revision | string | (Required) API endpoint revision (format: YYYY-MM-DD[.suffix]) | |
Content-Type | string | ||
Accept | string |