v1
latestOpenAPI 3.1.02026-07-13570316.1 KBAuthentication
Initiate Auth
Start any authentication flow in one unified endpoint. This endpoint supports all authentication methods including SMS, email, OAuth, passkey, and SIWE (Sign-In with Ethereum).
Supported Methods:
- SMS - Send verification code to phone number
- Email - Send verification code to email address
- Passkey - Generate WebAuthn challenge for biometric authentication
- SIWE - Generate Sign-In with Ethereum payload
Flow:
- Choose your authentication method
- Provide method-specific parameters
- Receive challenge data to complete authentication
- Use the /complete endpoint to finish the process
OAuth:
The OAuth method uses a dedicated /auth/social endpoint instead of this one:
GET /auth/social?provider=google&redirectUrl=...
Custom (JWT, auth-payload) and Guest:
For custom authentication (JWT, auth-payload) and for guest authentication, you can skip this step and use the /auth/complete endpoint directly.
Authentication: Requires x-client-id header for frontend usage or x-secret-key for backend usage.
post/v1/auth/initiate
Request body
Example request
{
"chainId": 1
}Response
Authentication initiated successfully. Use the returned challenge data to complete authentication.