Skip to content

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

Type
API Key (header: X-Bridge-Secret)

Parameters

Query Parameters

session_id

Session ID as query parameter (alternative to body)

Type
string

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",
  
  
"two_factor_verified": 1
  
},
  
"expires_at": "string",
  
"cached": true,
  
"cacheSource": "ultra",
  
"timestamp": "string"
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI