Behavior Notes
- Full session: success=true and includes user/session data.
- Pending 2FA session: success=false with requires_2fa=true, sessionId, available_methods, and user.
Validate Session
GET
/auth/validation
Validate the current session and return user information. Session can be provided via X-Session-ID header or session_id cookie. If session is pending 2FA, returns requires_2fa and available_methods.
Authorizations
SessionAuth
Session ID for authenticated requests
Type
API Key (header: X-Session-ID)
Responses
Session is valid or pending 2FA
application/json
JSON "success": true, "user": { "id": "usr_123abc", "email": "user@example.com", "name": "John", "last_name": "Doe", "user_name": "johndoe", "user_type": "customer", "is_verified": true, "two_factor": true }, "session": { "two_factor_verified": 1 }
{
}