goals to create, manage, and attach goal records to agents. Goals represent targets or outcomes that an agent should achieve, and can include lead-info field definitions.
Supported actions: list, get, create, update, delete, attach, detach, generate.
List goals
Retrieves all goals for the authenticated user with optional filtering.string
required
Must be
"goals".string
required
Must be
"list".object
Response
boolean
object
Get a goal
Retrieves a specific goal by ID.string
required
Must be
"goals".string
required
Must be
"get".string
required
The goal UUID.
object
Response
boolean
object
Create a goal
Creates a new goal associated with an agent.string
required
Must be
"goals".string
required
Must be
"create".object
required
Response (status 201)
boolean
object
Update a goal
Updates an existing goal. Supports partial updates.string
required
Must be
"goals".string
required
Must be
"update".string
required
The goal UUID.
object
required
Any combination of
name, description, status, priority, agent_id.Delete a goal
Permanently deletes a goal.string
required
Must be
"goals".string
required
Must be
"delete".string
required
The goal UUID.
Response
boolean
object
Attach goal to agent
Links a goal (lead-info preset) to an agent. Any existing attachment for that agent is replaced.string
required
Must be
"goals".string
required
Must be
"attach".object
required
Response
boolean
object
Verifies ownership of both the goal and the agent before attaching.
Detach goal from agent
Removes a goal attachment from an agent.string
required
Must be
"goals".string
required
Must be
"detach".object
required
Response
boolean
object
Generate goal
Uses AI to generate a goal configuration from a natural-language description. Returns suggested fields that can be reviewed before saving.string
required
Must be
"goals".string
required
Must be
"generate".object
required
Response
boolean
object
Generation uses AI (temperature 0.5). Results are suggestions — review before saving.
Goal object
string
string
string
string | null
string
number | null
string
string
object
Present only in admin mode.

