Skip to main content
Source: equa-server/modules/agent/src/endpoints/agent-endpoints.ts

Agent Endpoints

These endpoints are only available when the Equanaut AI assistant is enabled. Requires the AGENT_* environment variables to be configured. Source: endpoints.ts line 124 — if (isAgentEnabled(process.env))
Endpoints for the Equanaut AI assistant — the intelligent agent that helps users manage their organizations through natural language. Includes chat, tool access, action confirmation, and an AI-powered onboarding flow. The agent is enabled when ANTHROPIC_API_KEY is set (and AGENT_ENABLED is not false).

Agent Chat and Tools

Agent Status

Check whether the agent is enabled. Response:

Chat with Agent

Send a message to the Equanaut agent and receive a response. Supports conversation history for multi-turn interactions. Request:
Response:

Confirm Agent Action

Confirm or reject a pending write operation initiated by the agent. Write operations require user confirmation by default (AGENT_CONFIRM_WRITE_OPERATIONS). Request:

Get Organization Context

Get the agent’s context for an organization (available data, capabilities, etc.).

Get Available Tools

List the tools available to the agent for this organization.

Onboarding (Authenticated)

These endpoints require an active user session.
Link the authenticated user to a pre-existing onboarding context (created during sign-up). Request:

Run Onboarding Setup

Execute the onboarding setup — the agent creates the organization, cap table structure, members, and other entities based on the onboarding context. Request:

Get First Login Context

Check if this is the user’s first login and retrieve onboarding context including a welcome message. Response:

Complete Onboarding

Mark the onboarding as complete.

Analyze Onboarding

Trigger AI analysis of the onboarding context to extract entities, structure, and generate clarifying questions.

Build Organization

Build the organization structure based on analyzed onboarding data.

Submit Clarification

Submit an answer to a clarifying question generated during onboarding analysis. Request:

Submit Correction

Submit a correction to an item in the onboarding showcase. Request:

Onboarding (Public)

These endpoints do not require authentication and are used during the sign-up flow before the user has an account.

Create Onboarding Context

Create a new onboarding context with the user’s email and initial prompt describing their company. Request:

Get Onboarding Context

Retrieve an onboarding context by ID.

Get Analysis Status

Check the status of onboarding analysis. Response:

Get Clarifying Questions

Get the list of clarifying questions generated by the AI analysis.

Get Showcase Data

Get the showcase data — a preview of the organization structure that will be built from the onboarding context.