me
query · in the family Your own session
What it does
Who am I — the signed-in session’s own identity. Reads nothing but your session.
The current authenticated principal, or null when the call is unauthenticated.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- Cashier
- An API key whose scope allows
api:me
Returns
Principal — A resolved session principal — what an authenticated call acts as.
Example request
graphql
query ExampleMe {
me {
sessionId
kind
userId
accountId
apiKeyId
deviceId
deviceType
registerId
logicalFacilityId
orgId
rootId
capability
groupCaption
roleCaptions
orgCreatedAt
}
}Example response
json
{
"data": {
"me": {
"sessionId": "01900000-0000-7000-8000-2048cc970000",
"kind": "<kind>",
"userId": "01900000-0000-7000-8000-e0a63e120000",
"accountId": "01900000-0000-7000-8000-59f8a2fc0000",
"apiKeyId": "01900000-0000-7000-8000-9e3a95fe0000",
"deviceId": "01900000-0000-7000-8000-bdcbb4130000",
"deviceType": "<device type>",
"registerId": "01900000-0000-7000-8000-2739c9e00000",
"logicalFacilityId": "01900000-0000-7000-8000-10c08c590000",
"orgId": "01900000-0000-7000-8000-1971e30a0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"capability": "<capability>",
"groupCaption": "Blue jeans",
"roleCaptions": [
"<role captions>"
],
"orgCreatedAt": "2027-01-31T00:00:00.000Z"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)