Skip to main content
string
required
Account email address
string
required
Account password

What this does

  1. Verifies email and password against the credential account
  2. Finds all companies the user has access to
  3. Selects the first company (user can switch with select-company)
  4. Finds or creates an API agent for that company
  5. 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 401 for invalid email/password combinations
  • Social-login accounts (no password) should use naive auth email <email> or naive auth google
  • CLI: naive login --email owner@example.com --password mypassword

Error responses