Name | Description | type |
---|---|---|
access_token | JSON Web Token retrieved from the Sessions endpoint (you can also pass this into the Authorization header) | |
data | primary JSON API payload | |
data[attributes][token] | Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM, the device token equivalent is called the registration ID. | String |
data[attributes][platform] | The platform of the device indicates which notification service should be used. Accepted values are APNS_SANDBOX and GCM | String |
Version: HTTP/1.0 Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo3MywiZXhwIjoxNzA0NDczMjI1LCJpYXQiOjE3MDQ0NzMwNDV9.HT629jBbGJkW7rDDUWP0d1K2jQKcg-5W6Rs1KpI_oMg Host: example.org Cookie:
POST /apis/v4/push_notification_device_tokens
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Content-Type: application/vnd.api+json Vary: Accept X-MH-Session: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo3MywiZXhwIjoxNzA0NjQ1ODQ1LCJpYXQiOjE3MDQ0NzMwNDV9.Y3TG-rrnjMBlZBb-oGx4xUub6N2tt_4qkq-S4kOEQjU Access-Control-Expose-Headers: X-MH-Session ETag: W/"1f682a4e38d51cb7dd4e2fd8777b9d23" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: e62068bd-571d-4240-b1fe-e2f0d1030fbc X-Runtime: 0.050905 Content-Length: 682
200