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/companies/registerstep

Register a company account

Creates a company account and provisions its company identifier and credentials. Supply companyName, email, and password; password must be at least 8 characters, while industry and phone are optional. A 201 response includes the new companyId and an authentication token.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

5 body fields

Company account details and credentials. companyName, email, and password are required.

companyNamestringrequired

The name of the company to register.

emailstringrequired

The company account's email address in email format.

industrystringoptional

The company's industry.

passwordstringrequired

The password for the company account. Must be at least 8 characters.

phonestringoptional

The company's phone number.

2 status codes
201Returns a success indicator, a registration message, the new company identifier, and an authentication token.
companyIdstringoptional
messagestringoptional
successbooleanoptional
tokenstringoptional
409Returned when the email address is already registered.

Error handling

The companyName, email, and password fields are required; email must use email format and password must be at least 8 characters. A 409 is returned when the email is already registered.

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.companyOnboarding.registerCompanyStep1({
  companyName: "Quantum Leap Technologies",
  email: "[email protected]",
  password: "SuperSecret123!",
});
Response
{
  "companyId": "6704b123456789abcdef0123",
  "message": "Company registered successfully",
  "success": true,
  "token": "tok_example_abc123"
}
PreviousSave UI preferences and complete…NextRequest a password reset OTP