myStaffPushTokens
Requires permission notifications:push-token:manage.
Lists the push-notification tokens registered for the signed-in staff user. Requires permission to manage push tokens.
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 MyStaffPushTokens {
myStaffPushTokens {
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 MyStaffPushTokens {\n myStaffPushTokens {\n appVersion\n deviceId\n platform\n registeredAt\n token\n }\n}"
}
EOF
Response:
{
"data": {
"myStaffPushTokens": [
{
"appVersion": "string",
"deviceId": "id",
"platform": "ANDROID",
"registeredAt": "2025-01-15T00:00:00Z",
"token": "string"
}
]
}
}
myStaffPushTokens: [MobilePushToken!]!
Type
MobilePushToken object
A device registered for push messages.