Everything you need to integrate Auth1 into your application.
https://auth-api.z101.ai
All API requests require an API key passed via the x-api-key header. You can find your API key in the dashboard.
Interactive API Docs: Explore the full API with Swagger UI at auth-api.z101.ai/api/docs
Send an SMS OTP to a phone number:
curl -X POST https://auth-api.z101.ai/api/auth/sms/request \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"phone": "+15551234567"
}'
Verify the OTP code:
curl -X POST https://auth-api.z101.ai/api/auth/sms/verify \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"phone": "+15551234567",
"code": "123456"
}'
Hooks and components for React apps
npm install @auth1/react
Framework-agnostic JS client
npm install @auth1/js
All API requests must include your API key in the x-api-key header:
x-api-key: auth1_pk_your_api_key_here
Your API key is scoped to your tenant. All data is isolated per tenant. Never expose your API key in client-side code — use a server-side proxy or the SDKs.
Need help? Check the full documentation or email support@auth1.ai.