testproj
Ttestproj
API Reference
GETSecure image proxy with caching/api/images/proxy
PATCHUpdate an account authorization role/api/admin/companies/{id}/role
GETGet detailed tenant information/api/admin/dashboard/{companyId}GETList all registered tenant organizations/api/admin/dashboard/all-companiesGETGet telemetry charts and growth timeseries/api/admin/dashboard/chartsGETGet overall platform analytics & metrics/api/admin/dashboard/statsGETGet the executive dashboard summary/api/admin/dashboard/summaryGETList top organizations by API volume / revenue/api/admin/dashboard/top-companies
GETReal-time system health and process telemetry/api/admin/healthGETGet HTTP audit & security logs/api/admin/logsGETVerify admin identity/api/admin/me
GETGet company tenant details/api/companies/{companyId}POSTRegister a company account/api/companies/registerstep
POSTUpdate API UI settings/api/companies/{companyId}/api-ui-settingsPOSTSave company API specifications/api/companies/{companyId}/apidetailsstepPOSTSave UI preferences and complete onboarding/api/companies/{companyId}/uiselectionstep
POSTAnalyze a company API definition/api/companies/{companyId}/apis/{apiIndex}/analyze
POSTRequest a password reset OTP/api/company/forgot-passwordGETVerify active company session/api/company/loginPOSTAuthenticate a company user/api/company/loginPOSTSign out a company user/api/company/logoutGETVerify session alias/api/company/verify-session
POSTReset a company user's password/api/company/forgot-password/resetPOSTVerify a password reset OTP/api/company/forgot-password/verify
GETCheck gateway health status/health
GETEstablish MCP SSE stream for AI agent/mcp/{mcpSlug}POSTExecute an MCP tool call/mcp/{mcpSlug}
GETGet MCP OAuth protected-resource metadata/mcp/{mcpSlug}/.well-known/oauth-protected-resource
llms.txtPowered by Octri
POST/api/company/login

Authenticate 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.

2 body fields

Company user credentials for authentication.

emailstringrequired

The company user's email address in email format.

passwordstringrequired

The company user's password.

4 status codes
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.

import { SoftTechAIEnterpriseAPIMCPGateway } from "testproj-sdk";

const client = new SoftTechAIEnterpriseAPIMCPGateway({
  baseUrl: "http://localhost:4000",
  auth: { apiKeyAuth: process.env.SOFT_TECH_API_KEY! },
});

const result = await client.auth.loginCompany({
  email: "[email protected]",
  password: "SuperSecret123!",
});
Response
{
  "company": {
    "companyName": "Quantum Leap Technologies",
    "email": "[email protected]",
    "id": "6704b123456789abcdef0123",
    "mcpSlug": "quantum",
    "onboardingStep": 3,
    "role": "company"
  },
  "message": "Login successful",
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
PreviousVerify active company sessionNextSign out a company user