AI agents
Company agents: template, name, state (on/off), schedule, department, reporting lines between agents and who created it. Rules and thresholds live in versions (agent_versions). Create and modify (rules, thresholds, schedule, switching on); run with the run action. No webhooks: configuration does not leave the company.
Module: AI agents (agents).
Endpoints
Section titled “Endpoints”GET /api/v1/agents- List with filters, sorting and pagination (scopeagents:read)GET /api/v1/agents/{id}- A record by id (scopeagents:read)POST /api/v1/agents- Create a record (scopeagents:write)PATCH /api/v1/agents/{id}- Modify the submitted fields (scopeagents:write)POST /api/v1/agents/{id}/run- Runs the agent now, as a dry run (sends and writes nothing) or for real. The result is shown only if you have read access to the modules touched; until then it stays in the log, inagent_runs. At most 20 per hour per company. (scopeagents:write)POST /api/v1/agents/{id}/restore_version- Reverts to an old version as an identical new version (history is kept); the agent requires a dry run again. (scopeagents:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).template_key(string; write)name(string; write)state(string; write)current_version_id(string, uuid; read)schedule(array; write)probed_version_id(string, uuid; read)last_run_at(string, date-time; read)next_run_at(string, date-time; read)stopped_reason(string; read)created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).department_id(string; write)reports_to(string; write)avatar(string; write)is_custom(boolean; read)role(string; write)steps(array; write)rules(string; write)params(array; write)comment(string; write)