myTrustedDevices
Requires an authenticated session.
Lists the devices the signed-in user has trusted for sign-in, and marks the current one.
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 MyTrustedDevices {
myTrustedDevices {
id
deviceName
browser
deviceType
isCurrent
lastUsedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query MyTrustedDevices {\n myTrustedDevices {\n id\n deviceName\n browser\n deviceType\n isCurrent\n lastUsedAt\n }\n}"
}
EOF
Response:
{
"data": {
"myTrustedDevices": [
{
"id": "id",
"deviceName": "string",
"browser": "string",
"deviceType": "string",
"isCurrent": true,
"lastUsedAt": "2025-01-15T00:00:00Z"
}
]
}
}
myTrustedDevices: [DeviceInfo!]!
Type
DeviceInfo object
A device the user has signed in from.