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/{companyId}/apidetailsstep

Save company API specifications

Saves API endpoint definitions for a company so they can be used to generate MCP tools. Include each endpoint's name, endpoint, and method; method must be one of the supported HTTP methods. A 200 response returns the company record with its saved API specifications.

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

1 parameter ยท 2 body fields
companyIdstringrequired

The unique identifier of the company whose API specifications you are saving.

Company API specifications to register. The apis array is required.

apisarray<object>required

API definitions to register. Each entry must include name, endpoint, and method; optional fields include authType, description, headers, and params.

onboardingStepnumberoptional

The onboarding step number to save.

1 status code
200Returns a success indicator, message, and company object with its saved API specifications and onboarding details.
companyobjectoptional
messagestringoptional
successbooleanoptional

Error handling

The companyId path parameter must identify an existing company. The apis array is required, and each entry must include name, endpoint, and method; method must be GET, POST, PUT, PATCH, or DELETE.

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.saveCompanyApiDetails({
  companyId: "9b2f1c10-7a3e-4d54-8c2a-1f6b9e0d4a21",
  apis: [],
});
Response
{
  "company": {
    "apis": [
      {
        "authType": "Bearer Token",
        "description": "Searches customers by name or query",
        "endpoint": "https://api.crm.quantum.com/v1/customers",
        "method": "GET",
        "name": "Search Customers",
        "params": [
          {
            "description": "Search keyword",
            "name": "query",
            "required": true,
            "type": "string"
          }
        ]
      }
    ],
    "companyName": "Example Name",
    "email": "[email protected]",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "industry": "example_value",
    "mcpSlug": "my-example-resource",
    "onboardingStep": 1,
    "plan": "example_value",
    "status": "active"
  },
  "message": "APIs saved successfully",
  "success": true
}
PreviousUpdate API UI settingsNextAnalyze a company API definition