Auth

CLI password login — returns bearer tokens in JSON body

Legacy CLI-targeted endpoint. Unlike /auth/sign-in, this does NOT set cookies — it returns access + refresh tokens in the JSON body for the CLI to persist at ~/.mnemom/auth.json. For users with a ready TOTP factor the password alone does not mint tokens: the response is 200 { mfa_required: true, factor_id } and no token pair is issued (aal2 step-up, #60). For an email whose domain belongs to an org that enforces SSO this returns 403 sso_required (use SSO, e.g. mnemom login); if that enforcement check cannot be completed it returns 503 sso_check_unavailable rather than proceed (fail-closed). Rate-limited.

post/auth/login

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/auth/login
  • Auth: none required

Request body

emailstring email required
passwordstring password required

Response

Tokens returned OR MFA step-up required.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.