Validate Session (Bridge)​
POST
/auth/bridge/validate
Validate a session token for bridge integration. Requires X-Bridge-Secret header. Session ID can be provided in JSON body, query parameter, or X-Session-ID header.
Authorizations​
BridgeSecret
Bridge secret for backend integration
TypeAPI Key (header: X-Bridge-Secret)
Parameters​
Query Parameters
session_id
Session ID as query parameter (alternative to body)
Typestring
Request Body​
application/json
JSON
{
"session_id": "ses_xyz789abc123"
}
Responses​
Session is valid - Returns user and session information
application/json
JSON
{
"success": true,
"user": {
"id": "usr_123abc",
"email": "user@example.com",
"name": "John",
"last_name": "Doe",
"user_name": "johndoe",
"user_type": "customer",
"picture": "string",
"phone": "string",
"is_verified": true,
"two_factor": false
},
"session": {
"id": "ses_xyz789",
"userId": "usr_123abc",
"expiresAt": "string",
"ipAddress": "192.168.1.1",
"userAgent": "string",
"lastUsedAt": "string"
},
"expires_at": "string",
"timestamp": "string"
}