On this page6 sections
POST/api/auth/get-current-userAuthentication
Get Current Actor Profile
Returns the authenticated actor's resolved identity, active tenant ID, role, outlet scope settings, and effective RBAC permissions from PostgreSQL.
Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).
Request
Provide the following fields in the request payload.
No request body parameters are required for this endpoint.
Responses
Select a status code to inspect schema.
Authenticated actor details.application/json
successenum('true')
success field.
messagestring
message field.
dataobject
data field.
data.idstring
id field.
data.databaseIdstring (uuid)
databaseId field.
data.emailstring (email)
email field.
data.usernamestring | null
username field.
data.namestring | null
name field.
data.rolestring | null
role field.
data.tenantIdstring (uuid)
tenantId field.
data.canViewAllboolean
canViewAll field.
data.scopedModulesarray<string>
scopedModules field.
data.accessibleOutletsarray<string>
accessibleOutlets field.
data.permissionsarray<string>
permissions field.
POST/api/auth/get-current-user
curl -X POST "https://api.invoger.com/api/auth/get-current-user" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{}'Interactive playground
Response
application/json
{
"success": true,
"message": "Success",
"data": {
"id": "sb-auth-uuid",
"databaseId": "e4f8b910-1234-4567-89ab-cdef01234567",
"email": "owner@company.com",
"username": "owner",
"role": "System Owner",
"tenantId": "t1a2b3c4-0000-4000-8000-000000000001",
"canViewAll": true,
"scopedModules": [],
"accessibleOutlets": [],
"permissions": [
"*"
]
}
}