Return the current user, session, roles, and membership grants.
GET
/v1/auth/me
const url = 'https://api.dev.iot-sens.schlossers.at/v1/auth/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.dev.iot-sens.schlossers.at/v1/auth/me \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Current authentication and authorization context.
Media typeapplication/json
object
userId
required
string format: uuid
username
required
string
email
required
string
displayName
required
string
sessionId
required
string format: uuid
authenticationMethod
required
string
platformRoles
required
Array<string>
memberships
required
Array<object>
object
membershipId
required
string format: uuid
tenantId
required
string format: uuid
organizationUnitId
string format: uuid
role
required
string
includeDescendants
required
boolean
passwordChangeRequired
required
boolean
analytics
Optional pseudonymous identity for explicitly consented product analytics. Present only when the server-side integration is enabled.
object
schemaVersion
required
integer
subjectId
required
string
tenantGroupIds
required
object
key
additional properties
string
Example
{ "authenticationMethod": "password", "platformRoles": [ "platform_admin" ], "memberships": [ { "role": "tenant_admin" } ], "analytics": { "schemaVersion": 1 }}Headers
Section titled “Headers”Cache-Control
string
Bearer authentication is missing, invalid, expired, or revoked.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
WWW-Authenticate
string
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string
A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string