PostProcessReview

Post Process Review: triggers AI Process Review when research status is Reach SL.

APIDescription
GET api/postprocessreview/result?requestId={requestId}

Gets full details of AgentPromptOptimization records for the given RequestID where IsResult = 1.

GET api/postprocessreview/optimization?requestId={requestId}

Gets AgentPromptOptimization records for the given RequestID.

GET api/postprocessreview?researchId={researchId}&symbol={symbol}

Executes Post Process Review for the given Research ID. Validates that research status is "Reach SL", then calls AI Process Review URL with Symbol and RequestID.

AgentPrompt

APIs for agent prompts. Get, Add, Update via SPs GetAgentPrompts, AddAgentPrompt, UpdateAgentPrompt.

APIDescription
GET api/agent-prompt?promptId={promptId}

Gets agent prompts from SP GetAgentPrompts. Optional promptID to filter by specific prompt.

GET api/agent-prompt/{promptId}

Gets a single agent prompt by ID. GET api/agent-prompt/20

POST api/agent-prompt

Creates a new agent prompt via SP AddAgentPrompt.

PUT api/agent-prompt/{id}

Updates an agent prompt via SP UpdateAgentPrompt.

N8n

API controller for n8n Workflow and Execution integration. Proxies requests to n8n API with X-N8N-API-KEY authentication. See: https://docs.n8n.io/api/api-reference/

APIDescription
GET api/n8n/workflows?cursor={cursor}&limit={limit}&active={active}&name={name}&tags={tags}&projectId={projectId}&excludePinData={excludePinData}

GET api/n8n/workflows - List workflows with optional filters.

GET api/n8n/workflows/{id}?excludePinData={excludePinData}

GET api/n8n/workflows/{id} - Get workflow by ID.

POST api/n8n/workflows/{id}/run

POST api/n8n/workflows/{id}/run - Execute a workflow.

GET api/n8n/executions?cursor={cursor}&limit={limit}&status={status}&includeData={includeData}&workflowId={workflowId}&projectId={projectId}&after={after}

GET api/n8n/executions - List executions with optional filters.

GET api/n8n/executions/{id}?includeData={includeData}

GET api/n8n/executions/{id} - Get execution by ID.

POST api/n8n/executions/{id}/stop

POST api/n8n/executions/{id}/stop - Stop a running execution.

POST api/n8n/executions/{id}/retry

POST api/n8n/executions/{id}/retry - Retry a failed execution.

POST api/n8n/executions/delete

POST api/n8n/executions/delete - Delete executions by IDs.

Agent

APIs for agent orchestration, workflows, and strategy management. Create, update, and activate agents.

APIDescription
GET api/agent

Returns all active agents.

GET api/agent/workflows

Returns all supported agent workflows from AgentsWorkflow table.

GET api/agent/strategies

Returns all strategies.

GET api/agent/progress?requestId={requestId}&agentId={agentId}

Returns execution progress per agent from AgentPromptAudit. Requires RequestId and AgentID. Returns percentage based on completed vs total expected for that agent.

GET api/agent/summary/{requestId}?agentId={agentId}

Returns agent analysis summary for the given request ID. Optional agentId filter.

POST api/agent/add

Creates a new agent using SP AddAgent. POST with body: AgentName, Description, AI_Model_Provider, AI_Model_Name, IsActive, WorkflowID, AgentUrl.

PUT api/agent/update/{id}

Updates an existing agent using SP UpdateAgent. PUT with route id and body: AgentName, Description, AI_Model_Provider, AI_Model_Name, IsActive, WorkflowID, AgentUrl.

PUT api/agent/activate

Turn On/Off a specific agent. PUT with body: AgentID, WorkFlowID (optional scope), IsActive.

PerformanceAuditorAnalyst

No description available.

APIDescription
GET api/prompt/performance-auditor?version={version}&workflowTypeId={workflowTypeId}

No description available.

Research

APIs for research creation, retrieval, status updates, strategy execution, price candles chart data, and review executions.

APIDescription
GET api/research/get?requestId={requestId}

Gets research by request ID.

GET api/research/update?requestId={requestId}&statusId={statusId}

Updates research status by request ID and status ID.

POST api/research/create?investorId={investorId}&requestID={requestID}&ticker={ticker}&workFlowID={workFlowID}&statusID={statusID}

Creates new research. POST with query params: investorId, requestID, ticker, workFlowID, statusID.

GET api/research/review-executions?investorId={investorId}&isArchive={isArchive}

Returns passed research executions for review. GET with investorId. Uses SP GetPassedResearchExecutions.

GET api/research/recovery?requestId={requestId}&ticker={ticker}

No description available.

GET api/research/price-candles?ticker={ticker}&interval={interval}&range={range}

Returns price candle chart data for a ticker. GET with ticker, optional interval (default 4h), range (default 1). Fetches from marketdata API.

GET api/research/archive?requestId={requestId}&isArchive={isArchive}

No description available.

GET api/research/strategy-execution?requestId={requestId}&workflowTypeID={workflowTypeID}

Returns strategy execution (Direction, Entry, TP, SL) for a request from EquitySelection agent. GET with requestId.

Workflow

APIs for workflow CRUD operations on AgentsWorkflow table. Get all workflows, get by ID, create new, or update WorkflowName, Description, IsActive.

APIDescription
GET api/workflow

Returns all workflows from AgentsWorkflow table.

GET api/workflow/{id}

Returns a single workflow by ID.

PUT api/workflow/{id}

Updates workflow WorkflowName, Description, IsActive. PUT with route id and body.

POST api/workflow

Creates a new workflow. POST with body: WorkflowName, Description, IsActive.

WorkflowAIAgent

APIs for workflow AI agents. Returns agents per workflow from SP GetWorkflowAIAgents.

APIDescription
GET api/workflow-ai-agents?workflowId={workflowId}

Returns only SP fields: AgentID, WorkflowID, WorkflowName, AgentName, Description, AI_Model_Provider, IsActive, MaxRetries, PromptID, ExecutionOrder, SystemPrompt, UserPromptTemplate, VersionNumber, AgentUrl, CreatedDate

CheckSupportedStocks

APIs for checking and listing supported stock tickers from the TaapiStocks database.

APIDescription
GET api/CheckSupportedStocks?ticker={ticker}

Checks whether a given ticker exists in TaapiStocks. Returns true if supported, false otherwise.

GET api/CheckSupportedStocks/list

Returns all supported stocks from TaapiStocks as a list of Id and StockTicker.

MultiAgentStateMachine

No description available.

APIDescription
GET api/multiagentstatemachine

Gets all records from [dbo].[MultiAgentStateMachine].

GET api/multiagentstatemachine/workflowtype/{workflowTypeId}

Gets MultiAgentStateMachine records filtered by WorkflowTypeID.

POST api/multiagentstatemachine/addpoint

AddPoint: Adds a workflow multi-agent state machine by calling [dbo].[AddMultiAgentStateMachine].

PUT api/multiagentstatemachine/{id}

Updates [dbo].[MultiAgentStateMachine] by ID. Does not modify ID or WorkFlowTypeID.

PUT api/multiagentstatemachine/updateagentexecutionstate

Updates agent execution state details by calling [dbo].[UpdateMultiAgentStateMachineExecutionDetails]. Matches rows by AgentID and WorkflowTypeID.

MacroAnalyst

Returns Macro Analyst agent prompts by version.

APIDescription
GET api/MacroAnalyst?version={version}&workflowTypeId={workflowTypeId}

Returns Macro Analyst agent prompt by version.

SummaryAnalystData

Returns Summary Analyst agent prompts by version.

APIDescription
GET api/SummaryAnalystData?version={version}&workflowTypeId={workflowTypeId}

Returns Summary Analyst agent prompt by version.

EquitySelection

Returns Equity Selection agent prompts by version.

APIDescription
GET api/EquitySelection?version={version}&workflowTypeId={workflowTypeId}

Returns Equity Selection agent prompt by version.

SentimentalAnalyst

Returns Sentiment Analyst agent prompts by version.

APIDescription
GET api/SentimentalAnalyst?version={version}&workflowTypeId={workflowTypeId}

Returns Sentiment Analyst agent prompt by version.

TechnicalAnalyst

Returns Technical Analyst agent prompts by version.

APIDescription
GET api/TechnicalAnalyst?version={version}&workflowTypeId={workflowTypeId}

Returns Technical Analyst agent prompt by version.

FudamentalAnalyst

Returns Fundamental Analyst agent prompts by version.

APIDescription
GET api/FudamentalAnalyst?version={version}&workflowTypeId={workflowTypeId}

Returns Fundamental Analyst agent prompt by version.

ResearchDebateManager

Returns Research Debate Manager agent prompts by version.

APIDescription
GET api/ResearchDebateManager?version={version}&workflowTypeId={workflowTypeId}

Returns Research Debate Manager agent prompt by version.

RiskManager

Returns Risk Manager agent prompts by version.

APIDescription
GET api/RiskManager?version={version}&workflowTypeId={workflowTypeId}

Returns Risk Manager agent prompt by version.

TradingPortfolioManager

Returns Trading Portfolio Manager agent prompts by version.

APIDescription
GET api/TradingPortfolioManager?version={version}&workflowTypeId={workflowTypeId}

Returns Trading Portfolio Manager agent prompt by version.