Apis::V4::PushNotification::DeviceToken API

get user's push notification device token

Parameters

Name Description
access_token JSON Web Token retrieved from the Sessions endpoint (you can also pass this into the Authorization header)
include comma delimited relationships you want included in the response in snake_case format

Response Fields

Name Description type
data primary JSON API payload
included related models (controlled by the include param)
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

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo2NSwiZXhwIjoxNzA0NDczMjI1LCJpYXQiOjE3MDQ0NzMwNDV9.Nx-AIGBIwMGpNEF1j6Sa2vWMK1eyX2Lf5pQMqnlg8ug
Host: example.org
Cookie: 

Route

GET /apis/v4/push_notification_device_tokens/1?include=*

Query Parameters

include=*

Response

Headers

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.eyJ1c2VyX2lkIjo2NSwiZXhwIjoxNzA0NjQ1ODQ1LCJpYXQiOjE3MDQ0NzMwNDV9.kKYBS4TDDiBvox9_kYnxw-1JMCeUpd9109XZoxY-MBI
Access-Control-Expose-Headers: X-MH-Session
ETag: W/"52aa577d1ec16f3c08b84ac0ae53c9dc"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: fbe0bca9-a669-4096-931d-d6c67cbf9d2f
X-Runtime: 0.031876
Content-Length: 706

Status

200

Body