# testproj > testproj API documentation ## Api - [PATCH /api/admin/companies/{id}/role](https://softtech-ai-enterprise-a-docs.octri.dev/patch-api-admin-companies-id-role): Updates an account's authorization role between admin, company, and user. - [GET /api/admin/dashboard/{companyId}](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-companyid): Retrieves detailed administration data for a tenant, including its registered API count and company configuration. - [GET /api/admin/dashboard/all-companies](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-all-companies): Returns complete directory of companies with plans, API counts, and onboarding state. - [GET /api/admin/dashboard/charts](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-charts): Returns annual revenue and tenant growth breakdown. - [GET /api/admin/dashboard/stats](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-stats): Returns total tenant counts, status breakdown, revenue totals, and onboarding funnel. - [GET /api/admin/dashboard/summary](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-summary): Retrieves an executive summary of company metrics for the admin dashboard. - [GET /api/admin/dashboard/top-companies](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-dashboard-top-companies): Retrieves top enterprise tenants sorted by traffic or spend. - [GET /api/admin/health](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-health): Returns server uptime, Node memory usage (RSS, heap), MongoDB connection state, and total request counts. - [GET /api/admin/logs](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-logs): Returns recent HTTP traffic, client IP, route methods, status codes, and execution duration. - [GET /api/admin/me](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-admin-me): Verifies that the authenticated user has admin privileges and retrieves the associated admin identity. - [GET /api/companies/{companyId}](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-companies-companyid): Retrieves complete onboarding progress, API tools, and UI configuration. - [POST /api/companies/{companyId}/api-ui-settings](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-companies-companyid-api-ui-settings): Updates how the company's API tools are visually rendered in chat and the dashboard. - [POST /api/companies/{companyId}/apidetailsstep](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-companies-companyid-apidetailsstep): Saves API endpoint definitions for a company so they can be used to generate MCP tools. - [POST /api/companies/{companyId}/apis/{apiIndex}/analyze](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-companies-companyid-apis-apiindex-analyze): Analyzes one of a company's API definitions and infers MCP parameters, descriptions, and validations. - [POST /api/companies/{companyId}/uiselectionstep](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-companies-companyid-uiselectionstep): Saves the visual design preferences for a company's MCP widgets and completes the UI selection onboarding step. - [POST /api/companies/registerstep](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-companies-registerstep): Creates a company account and provisions its company identifier and credentials. - [POST /api/company/forgot-password](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-company-forgot-password): Requests a one-time password for resetting a company user's password. - [POST /api/company/forgot-password/reset](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-company-forgot-password-reset): Resets a company user's password using the account email and a new password. - [POST /api/company/forgot-password/verify](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-company-forgot-password-verify): Verifies a password reset OTP sent to a company user's email address. - [GET /api/company/login](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-company-login): Checks JWT token in Authorization header or cookie and returns user profile. - [POST /api/company/login](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-company-login): Authenticates a company user with an email address and password. - [POST /api/company/logout](https://softtech-ai-enterprise-a-docs.octri.dev/post-api-company-logout): Ends the company user's session by clearing session cookies and invalidating the JWT token. - [GET /api/company/verify-session](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-company-verify-session): Alternative endpoint to check authentication status. - [GET /api/images/proxy](https://softtech-ai-enterprise-a-docs.octri.dev/get-api-images-proxy): Safely proxies external image URLs for tenant logos and widget media. ## Health - [GET /health](https://softtech-ai-enterprise-a-docs.octri.dev/get-health): Returns uptime, server timestamp, and environment status. ## Mcp - [GET /mcp/{mcpSlug}](https://softtech-ai-enterprise-a-docs.octri.dev/get-mcp-mcpslug): Server-Sent Events connection for ChatGPT and Claude Model Context Protocol agents. - [POST /mcp/{mcpSlug}](https://softtech-ai-enterprise-a-docs.octri.dev/post-mcp-mcpslug): Executes a tool registered for the tenant organization identified by mcpSlug using an MCP JSON-RPC request. - [GET /mcp/{mcpSlug}/.well-known/oauth-protected-resource](https://softtech-ai-enterprise-a-docs.octri.dev/get-mcp-mcpslug-.well-known-oauth-protected-resource): Retrieves OAuth protected-resource metadata for the MCP gateway identified by mcpSlug. ## Optional - [Changelog](https://softtech-ai-enterprise-a-docs.octri.dev/changelog): API version history and breaking changes