Skip to content

Validate Token (POST)

POST
/auth/token/validate

Validate a verification token and create a session. Token can be provided in JSON body or query parameter. Requires X-Bridge-Secret header.

Authorizations

BridgeSecret

Bridge secret for backend integration

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

Parameters

Query Parameters

token

Token as query parameter (alternative to body)

Type
string

Request Body

application/json
JSON
{
  
"token": "tok_abc123def456"
}

Responses

Token validated successfully - Returns user and session

application/json
JSON
{
  
"success": true,
  
"message": "Token validated successfully",
  
"user": {
  
  
"id": "usr_123abc",
  
  
"email": "user@example.com",
  
  
"name": "John",
  
  
"lastName": "Doe",
  
  
"userName": "johndoe",
  
  
"userType": "customer",
  
  
"isVerified": true
  
},
  
"sessionId": "ses_xyz789",
  
"expiresAt": "string"
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI