Skip to content

Current auth capabilities and user

GET
/api/v1/auth/session

Responses

OK

application/json
JSON
{
  
"$schema": "https://bpincentives.com/schemas/SessionBody.json",
  
"authLevel": "string",
  
"authenticated": true,
  
"csrfToken": "string",
  
"enableApiKeys": true,
  
"mfa": {
  
  
"enroll": true,
  
  
"methods": [
  
  
],
  
  
"required": true
  
},
  
"needsMfaPolicy": true,
  
"needsSetup": true,
  
"requireAuth": true,
  
"user": {
  
  
"createdAt": 0,
  
  
"email": "string",
  
  
"enabled": true,
  
  
"hasPasskey": true,
  
  
"hasPassword": true,
  
  
"id": 0,
  
  
"lastLoginAt": 0,
  
  
"name": "string",
  
  
"role": "string",
  
  
"totpEnabled": true,
  
  
"username": "string"
  
}
}

Playground

Samples

Powered by VitePress OpenAPI