myPushTokens
Requires a customer (portal or buyer app) session.
Lists Expo push tokens registered for the authenticated buyer (newest first).
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query MyPushTokens {
myPushTokens {
appVersion
deviceId
platform
registeredAt
token
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MyPushTokens {\n myPushTokens {\n appVersion\n deviceId\n platform\n registeredAt\n token\n }\n}"
}
EOF
Response:
{
"data": {
"myPushTokens": [
{
"appVersion": "string",
"deviceId": "id",
"platform": "ANDROID",
"registeredAt": "2025-01-15T00:00:00Z",
"token": "string"
}
]
}
}
myPushTokens: [MobilePushToken!]!
Type
MobilePushToken object
A device registered for push messages.