Agents API

7 endpoints in this group.

GET /api/agents

List Agents

List AI agents for the authenticated tenant.

Auth (, hardened post-pentest): tenant_id is derived from the JWT claim. Cross-tenant override now requires platform-admin, not the tenant-level role=admin.

Parameters

NameInTypeRequiredDescription
tenant_idquery—optional
active_onlyquerybooleanoptional

Responses

CodeDescription
200Successful Response
422Validation Error

POST /api/agents

Create Agent

Create a new AI agent.

Request body: application/json

Responses

CodeDescription
201Successful Response
422Validation Error

GET /api/agents/leaderboard

Agent Leaderboard

Compute per-agent signal volume and confidence stats.

Falls back to signal confidence distribution if trade linkage is absent.

Auth (, hardened post-pentest): cross-tenant override requires platform-admin.

Parameters

NameInTypeRequiredDescription
tenant_idquery—optional
period_daysqueryintegeroptional

Responses

CodeDescription
200Successful Response
422Validation Error

DELETE /api/agents/{agent_id}

Delete Agent

Soft-delete an agent by flagging is_active=false. A hard delete is avoided because agent_signals and strategies FK to ai_agents.id.

Parameters

NameInTypeRequiredDescription
agent_idpathintegerrequired
tenant_idquery—optional

Responses

CodeDescription
200Successful Response
422Validation Error

PATCH /api/agents/{agent_id}

Update Agent

Generic agent update. Only fields provided in the body are applied. Returns the full updated agent row. 404 if agent doesn't exist for tenant.

Parameters

NameInTypeRequiredDescription
agent_idpathintegerrequired

Request body: application/json

Responses

CodeDescription
200Successful Response
422Validation Error

PATCH /api/agents/{agent_id}/toggle

Toggle Agent

Toggle agent active/inactive.

Parameters

NameInTypeRequiredDescription
agent_idpathintegerrequired
tenant_idquery—optional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/agents/{agent_id}/track-record

Agent Track Record

Return signal history + outcome data for a specific agent.

Auth (, hardened post-pentest): cross-tenant override requires platform-admin.

Parameters

NameInTypeRequiredDescription
agent_idpathintegerrequired
tenant_idquery—optional
account_idquery—optional
limitqueryintegeroptional

Responses

CodeDescription
200Successful Response
422Validation Error

Occasional BlitzPulse product updates and offers, sent only if you tick the box and confirm your address.

How we handle your email

Footer Disclaimer BlitzPulse is educational decision support only. Not investment, tax, or legal advice. Not a broker. Trade at your own risk.