{ "email": "user@example.com", "password": "your-password" }
{ "user": { "id": "550e8400-e29b-41d4-a716-446655440000", "aud": "authenticated", "role": "authenticated", "email": "user@example.com", "email_confirmed_at": "2023-01-01T12:00:00.000Z", "phone": "", "confirmed_at": "2023-01-01T12:00:00.000Z", "last_sign_in_at": "2023-05-01T12:34:56.789Z", "app_metadata": { "provider": "email", "providers": ["email"] }, "user_metadata": { "first_name": "John", "last_name": "Doe", "avatar_url": "https://example.com/avatar.jpg" }, "identities": [], "created_at": "2023-01-01T12:00:00.000Z", "updated_at": "2023-05-01T12:34:56.789Z" }, "session": { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "bearer", "expires_in": 3600, "refresh_token": "aBcDeFgHiJkLmNoPqRsTuVwXyZ..." } }
Authenticate users and obtain access tokens
curl -X POST https://api.productflo.io/auth/login \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "password": "your-password" }'
Show User properties
Show Session properties
curl -X POST https://api.productflo.io/auth/phone-login \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+12345678901", "password": "your-password" }'
curl -X POST https://api.productflo.io/auth/magic-link \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com" }'
{ "email": "user@example.com" }
{ "message": "Magic link sent to email" }
curl -X POST https://api.productflo.io/auth/phone-otp \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+12345678901" }'
{ "phone_number": "+12345678901" }
{ "message": "OTP sent to phone number" }
curl -X POST https://api.productflo.io/auth/verify-phone-otp \ -H "Content-Type: application/json" \ -d '{ "phone_number": "+12345678901", "token": "123456" }'