Skip to main content
Once you have obtained a session token, validate it to ensure authenticated access. Endpoint: POST /auth/validate Request
BodyDescription
token: stringUser’s session token acquired from authentication
cURL Example
curl -X POST "https://api.circuit.org/v1/auth/validate"    -H "Content-Type: application/json"    -d '{
    "token": "user_session_token"
  }'
Response
Valid Session
{
  token: string;
  isValid: boolean; // true
  hasWalletSession: boolean;
  type: string;
  credentialId: string;
  username: string;
  userId: number;
  expiresAt: number;
}
Invalid Session
{
  token: string;
  isValid: boolean; // false
}