Skip to content

Agent proposals

What agents propose and what waits for a person: reply to a request or review, expense from a document, payment reminder, marketing ideas and texts. State (pending, approved, rejected, failed) and result can be read; the proposal content stays in the app. Approval belongs to a person (approve and reject actions, only with a user, not with a key).

Module: AI agents (agents).

  • GET /api/v1/agent_actions - List with filters, sorting and pagination (scope agents:read)
  • GET /api/v1/agent_actions/{id} - A record by id (scope agents:read)
  • POST /api/v1/agent_actions/{id}/approve - A person approves the proposal: the action runs (email, reply, expense, reminder), only if that person has the right on its module. The text can be corrected. (scope agents:write)
  • POST /api/v1/agent_actions/{id}/reject - A person rejects the proposal. (scope agents:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • agent_id (string, uuid; read)
  • run_id (string, uuid; read)
  • kind (string; read)
  • target_type (string; read)
  • target_id (string, uuid; read)
  • status (string; read)
  • tainted (boolean; read)
  • decided_by (string; read)
  • decided_at (string, date-time; read)
  • result (string; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).