Multi-Domain Edge Authentication API
{
"message": "User created. Please check your email to verify your account.",
"user": {
"id": "uuid",
"email": "user@example.com",
"name": "John Doe"
}
}
{
"message": "Login successful",
"user": {
"id": "uuid",
"email": "user@example.com",
"name": "John Doe",
"role": "user"
}
}
{
"user": {
"id": "uuid",
"email": "user@example.com",
"name": "John Doe",
"role": "user",
"apps": ["app1"],
"env": ["prod"],
"userType": "b2c"
},
"organization": null,
"session": {
"id": "session-id",
"expiresAt": "2024-01-01T00:00:00Z",
"targetDomain": "app1.brand1.com",
"targetSubapp": "app1",
"targetEnv": "prod"
}
}
Cookie-based: Most endpoints use HTTP-only cookies for authentication. The cookie is set automatically on login and sent with subsequent requests.
API Key: For programmatic access, use API keys created via /keys endpoint. Include in Authorization header:
Authorization: Bearer YOUR_API_KEY
All endpoints are relative to:
https://auth.wizar.io