nexalwarenexalwaredocs
API ReferenceAuthentication

Get the logged-in user and account

GET
/api/v1/auth/me

Authorization

sessionAuth
AuthorizationBearer <token>

A session token for an existing account, obtained from POST /auth/login (see the Authentication endpoints) - not an API key. Endpoints marked with this scheme reject API key callers outright, regardless of what that key is granted. Outside the Authentication endpoints themselves, everything requiring this scheme manages dashboard resources (schedules, rules, grants, keys, device configuration) and mirrors what a human does in the Nexalware web app - it is not meant to be automated by a third-party integration the way the Device Control endpoints are.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/auth/me"
{  "userId": "string",  "email": "string",  "name": "string",  "emailVerified": true,  "accountId": "string",  "accountName": "string",  "plan": "string",  "role": "string",  "deviceCount": 0,  "hasPassword": true,  "hasGoogleAuth": true,  "hasGithubAuth": true}