Everything that can start this agent, in `sources[]`: its agent triggers (kind agent_trigger: a record entering a state, or a relation field linking to it, each with on/off and whether a person must start it), every automation rule with a run_agent action for it (kind automation: rule name, its trigger - record created, field change, link or schedule - on/off and its database; a caller who may not read that database's automations gets only the label "A rule in <database>" with id, name, enabled and trigger null), every button field with a run_agent action for it (kind button: the button's label and its database), and the built-in ways that apply to every agent (kind built_in, one per reason: mention, manual, approval_decided, must_comment, retry, catch_up), which come last. Readable by the agent's manager and by admins; anyone else gets the same 404 as an unknown agent. A trigger, rule or button on a database the caller cannot open is counted in `withheld_count`, never named; a system database is named but never described; a deleted field, option or database comes back with a null name. A re-run of a rule's run_agent action is the rule firing again, not a separate source.
GET
/api/v1/workspaces/{ws}/agents/{agent}/wake-sources
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”agent
required
string
The agent record’s uuid or public number
Responses
Section titled “Responses”Media typeapplication/json
object
agent_id
required
string format: uuid
sources
required
Array
One of:
object
kind
required
string
id
required
string format: uuid
binding
required
string
database
required
object
id
required
string format: uuid
name
required
string
exists
required
boolean
is_system
required
boolean
state_field
required
object
id
required
string
name
required
string
state_option
required
object
id
required
string
name
required
string
relation_field
required
object
id
required
string
name
required
string
human_gate
required
boolean
enabled
required
boolean
object
kind
required
string
id
required
string format: uuid
name
required
string
label
required
string
enabled
required
boolean
database
required
object
id
required
string format: uuid
name
required
string
exists
required
boolean
is_system
required
boolean
trigger
required
object
type
required
string
field
required
object
id
required
string
name
required
string
relation_field
required
object
id
required
string
name
required
string
direction
required
string
schedule
required
object
every
required
string
minutes
number
at
string
weekday
number
weekdays
Array<number>
between
object
from
required
string
to
required
string
timezone
string
object
kind
required
string
id
required
string format: uuid
name
required
string
database
required
object
id
required
string format: uuid
name
required
string
exists
required
boolean
is_system
required
boolean
object
kind
required
string
reason
required
string
title
required
string
description
required
string
withheld_count
required
integer
Example
{ "sources": [ { "kind": "agent_trigger", "binding": "state" } ]}