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.eyJ1c2VyX2lkIjo3NywiZXhwIjoxNzU0NTk2NDc5LCJpYXQiOjE3NTQ1OTYyOTl9.SHkjpD_Kr28nBhr1wsX8Z7nYxXZXjSF2O4jMQjnN0Gw 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.eyJ1c2VyX2lkIjo3NywiZXhwIjoxNzU0NzY5MDk5LCJpYXQiOjE3NTQ1OTYyOTl9.TYY2VLmToIJyOb-efsw_dRK-dTvyIrjuMKRx4QxC8tk Access-Control-Expose-Headers: X-MH-Session ETag: W/"e77a64a74264c10c1c9678b13ec84898" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 32660aab-5ff8-4741-affb-2721921ead3b X-Runtime: 0.045529 Content-Length: 681
200