cURL
curl --request POST \ --url https://api.wazapin.id/v1/auth/login \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "email": "<string>", "password": "<string>", "telemetry_id": "<string>" } '
Create a user session with email and password.
POST /v1/auth/login
curl -X POST "https://api.wazapin.id/v1/auth/login" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "password": "password123", "telemetry_id": "tel_abc123" }'
{ "data": { "id": "a6c8ca86-2f29-4fe6-a077-1e56cb4ec2f2", "name": "Demo User", "email": "user@example.com" } }
{ "title": "Unauthorized", "status": 401, "detail": "invalid email or password" }