string
required
Account email address
string
required
Account password
What this does
- Verifies email and password against the credential account
- Finds all companies the user has access to
- Selects the first company (user can switch with
select-company) - Finds or creates an API agent for that company
- Issues a fresh API key
Notes
- No authentication required (public endpoint)
- Each login creates a new API key (old keys remain valid)
- If the user has multiple companies, the response includes the full list
- Works with the same credentials used on the Naive dashboard
- Returns
401for invalid email/password combinations - Social-login accounts (no password) should use
naive auth email <email>ornaive auth google - CLI:
naive login --email owner@example.com --password mypassword