POST
/api/company/loginAuthenticate a company user
Authenticates a company user with an email address and password. Submit email in email format and password to establish a session; the response sets an HTTP-only JWT cookie and also returns the token. Use the returned company details to identify the authenticated company account.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Company user credentials for authentication.
emailstringrequired
The company user's email address in email format.
passwordstringrequired
The company user's password.
200Returns a success message, the JWT token, and a company object containing the company name, email, identifier, MCP slug, onboarding step, and role.
companyobjectoptional
messagestringoptional
successbooleanoptional
tokenstringoptional
400Returned when the email or password format is invalid.
401Returned when the email and password do not match valid credentials.
429Returned when login attempts exceed the allowed rate.
Error handling
The email and password fields are required, and email must use email format. A 400 is returned for invalid email or password formatting, a 401 for invalid credentials, and a 429 when login attempts are rate limited.