Reference: login
Example request and response for POST /v1/auth/login.
Endpoint
POST /v1/auth/login
Use this endpoint to create an authenticated session.
Request body
-
emailstring(required) — User email address. -
passwordstring(required) — User password. -
telemetry_idstring— Optional device fingerprint telemetry ID.
Request example:
curl -X POST "https://api.wazapin.com/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "user@example.com",
"password": "password123",
"telemetry_id": "tel_abc123"
}'
Response example:
{
"data": {
"id": "a6c8ca86-2f29-4fe6-a077-1e56cb4ec2f2",
"name": "Demo User",
"email": "user@example.com",
"email_verified": true,
"timezone": "Asia/Jakarta",
"week_start": "monday",
"created_at": "2026-03-04T06:10:14Z"
}
}
{
"title": "Unauthorized",
"status": 401,
"detail": "invalid email or password"
}
Notes
- Successful login also sets
Set-Cookiesession token. - For public API calls after login, use
X-Api-Keyas the primary auth header.