Runtime
Runtime diagnostics, token usage and token counting, daemon-wide and per agent.
On this page
Daemon runtime overview
/runtimeProcess, settings, providers, auth, MCP, adapters, network, compute and every loaded agent in one read, secrets sanitized. daemon.version is ADF_VERSION, else the npm package version, else null.
Responses
| Status | Description | Body | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Overview | RuntimeOverview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
settingsrequiredobject | 7 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
configuredrequired | boolean | |||||||||||||
filePathrequired | string | null | |||||||||||||
trackedDirectoriesrequired | array<string> | |||||||||||||
maxDirectoryScanDepthrequired | integer | null | |||||||||||||
autoCompactThresholdrequired | integer | null | |||||||||||||
promptOverridesrequired | object | |||||||||||||
3 fields of | ||||||||||||||
globalSystemPromptrequired | boolean | |
compactionPromptrequired | boolean | |
toolPromptsrequired | integer |
packageCountsrequired4 fields of packageCounts
sandboxPackagesrequired | integer | |
mcpServersrequired | integer | |
adaptersrequired | integer | |
providersrequired | integer |
providersrequired2 fields of providers · ProviderDiagnostics
providersrequired | array<ProviderDiagnosticsEntry> | |||||||||||||||||||||||||||||||||||||||||||
11 fields of | ||||||||||||||||||||||||||||||||||||||||||||
idrequired | string | |||||||
typerequired | string | |||||||
namerequired | string | |||||||
baseUrlrequired | string | |||||||
defaultModel | string | |||||||
preset | string | |||||||
credentialStoragerequired | string |
| ||||||
apiKeyStorage | string | |||||||
hasApiKeyrequired | boolean | |||||||
requestDelayMsrequired | integer | |||||||
paramsrequired | array<object> | |||||||
2 fields of | ||||||||
keyrequired | string | |
hasValuerequired | boolean |
agentUsagerequired7 fields of agentUsage
agentIdrequired | string | |
handle | string | |
namerequired | string | |
providerIdrequired | string | |
modelIdrequired | string | |
sourcerequired | string | |
credentialStoragerequired | string | null |
authrequired3 fields of auth · AuthDiagnostics
chatgptrequired | object | ||||||||||||||||
5 fields of | |||||||||||||||||
authenticatedrequired | boolean | |
email | string | |
expiresAt | integer | Epoch ms |
flowPending | boolean | |
flowError | string |
grokrequired5 fields of grok · SubscriptionAuthStatus
authenticatedrequired | boolean | |
email | string | |
expiresAt | integer | Epoch ms |
flowPending | boolean | |
flowError | string |
providersrequired5 fields of providers
idrequired | string | |
typerequired | string | |
namerequired | string | |
credentialStoragerequired | string | |
hasApiKeyrequired | boolean |
mcprequired1 field of mcp · McpRegistrationsDiagnostics
serversrequired | array<object> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
16 fields of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idrequired | string | |||||||
namerequired | string | |||||||
typerequired | string | |||||||
npmPackage | string | |||||||
pypiPackage | string | |||||||
command | string | |||||||
args | array<string> | |||||||
url | string | |||||||
managedrequired | boolean | |||||||
version | string | |||||||
credentialStoragerequired | string | |||||||
envrequired | array<object> | |||||||
2 fields of | ||||||||
keyrequired | string | |
hasValuerequired | boolean |
headersrequired2 fields of headers
keyrequired | string | |
hasValuerequired | boolean |
headerEnvrequired2 fields of headerEnv
headerrequired | string | |
envrequired | string |
bearerTokenEnvVarrequiredtoolCallTimeoutrequiredadaptersrequired1 field of adapters · AdapterRegistrationsDiagnostics
adaptersrequired | array<object> | ||||||||||||||||
5 fields of | |||||||||||||||||
idrequired | string | |
typerequired | string | |
npmPackage | string | |
managedrequired | boolean | |
version | string |
networkrequired4 fields of network · NetworkDiagnostics
hostrequired | object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 fields of | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hostnamerequired | string | |||||||||||||
addressesrequired | array<object> | |||||||||||||
4 fields of | ||||||||||||||
ifacerequired | string | |
addressrequired | string | |
familyrequired | string | |
macrequired | string |
meshrequired4 fields of mesh
enabledSettingrequired | boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
lanrequired | boolean | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
portrequired | integer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
statusrequired | MeshStatus | null | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meshEnabledrequired | boolean | |||||||||||||||||||||||||
meshServerRunningrequired | boolean | |||||||||||||||||||||||||
meshServerrequired | object | |||||||||||||||||||||||||
3 fields of | ||||||||||||||||||||||||||
runningrequired | boolean | |
portrequired | integer | |
hostrequired | string |
agentsrequired8 fields of agents
filePathrequired | string | |
handlerequired | string | |
did | string | |
agentId | string | |
icon | string | |
staterequired | string | Display (fleet-map) state of an agent |
status | string | |
model | string |
debugrequiredMesh manager internals (unstable)
websocketrequired3 fields of websocket
activeConnectionsrequired | integer | |
inboundConnectionsrequired | integer | |
outboundConnectionsrequired | integer |
agentsrequired10 fields of agents
agentIdrequired | string | |
handle | string | |
namerequired | string | |
filePathrequired | string | null | |
receiverequired | boolean | |
sendModerequired | string | null | |
networkrequired | string | null | |
wsConnectionsConfiguredrequired | integer | |
servingRoutesrequired | integer | |
publicServingEnabledrequired | boolean |
computerequired4 fields of compute
statusrequired | string | |
containerNamerequired | string | |
activeAgentsrequired | array<string> | |
error | string |
agentsrequired5 fields of agents
idrequired | string | ||||||||||||||||||||||||||||
handle | string | ||||||||||||||||||||||||||||
namerequired | string | ||||||||||||||||||||||||||||
filePathrequired | string | null | ||||||||||||||||||||||||||||
status | object | ||||||||||||||||||||||||||||
9 fields of | |||||||||||||||||||||||||||||
idrequired | string | |
filePathrequired | string | null | |
namerequired | string | |
handle | string | |
autostartrequired | boolean | |
runtimeStaterequired | string | Executor state: idle, thinking, tool_use, awaiting_approval, awaiting_ask, suspended, error, stopped: or a display state (active, hibernate, off) |
targetStaterequired | string | null | |
loopCountrequired | integer | Persisted entries in main's loop stream |
degraded | string | Set when the agent loaded but cannot fully function (CREDENTIALS_LOCKED: its credentials envelope is locked); cleared once the owner identity unlocks it |
Errors 401 · 403
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/runtime" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"Legacy per-agent health summary
/diagnosticsResponses
| Status | Description | Body | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Diagnostics | DiagnosticsResponse | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
agentsrequiredarray<object> | 9 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idrequired | string | |||||||||||||
filePathrequired | string | null | |||||||||||||
namerequired | string | |||||||||||||
handle | string | |||||||||||||
autostartrequired | boolean | |||||||||||||
status | object | |||||||||||||
adaptersrequired | array<object> | |||||||||||||
3 fields of | ||||||||||||||
typerequired | string | |
statusrequired | string | |
error | string |
mcprequired4 fields of mcp
namerequired | string | |
statusrequired | string | |
error | string | |
toolCountrequired | integer |
wsrequired2 fields of ws
configuredrequired | integer | |
activerequired | integer |
Errors 401 · 403
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/diagnostics" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"Sanitized settings summary
/runtime/settingsResponses
| Status | Description | Body |
|---|---|---|
| 200 | Settings summary | RuntimeSettingsDiagnostics |
Fields as in RuntimeSettingsDiagnostics above. | ||
Errors 401 · 403
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/runtime/settings" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"Token usage totals by provider and model
/runtime/usageResponses
| Status | Description | Body | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Usage (not attributed per agent) | RuntimeUsageResponse | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
byProviderrequiredarray<object> | 4 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
providerrequired | string | |
inputrequired | integer | |
outputrequired | integer | |
totalrequired | integer |
byModelrequired6 fields of byModel
providerrequired | string | |
modelrequired | string | |
daysrequired | integer | Days with usage |
inputrequired | integer | |
outputrequired | integer | |
totalrequired | integer |
usagerequireddate → provider → model → { input, output }
2 fields of usage
inputrequired | integer | |
outputrequired | integer |
Errors 401 · 403
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/runtime/usage" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"Count tokens in one string
/runtime/token-countWith neither provider nor model, agentId picks the loaded agent's model; default provider anthropic.
Request bodyapplication/json · TokenCountBody · required
| Field | Type | Description |
|---|---|---|
textrequired | string | |
provider | string | |
model | string | |
agentId | string | Use this agent's provider/model |
Responses
| Status | Description | Body | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Count | TokenCountResponse | |||||||||
| |||||||||||
Errors 400 · 401 · 403
| 400 | Invalid request: missing or malformed field, query parameter or body. A body Fastify cannot parse gets Fastify's own shape (statusCode, code, error, message).bad_requestFST_ERR_CTP_EMPTY_JSON_BODY | |
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl -X POST "http://127.0.0.1:7385/runtime/token-count" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"text":"Hello, world","provider":"anthropic"}'{
"count": 4,
"provider": "anthropic",
"model": ""
}Count tokens in several strings
/runtime/token-count/batchRequest bodyapplication/json · TokenCountBatchBody · required
| Field | Type | Description |
|---|---|---|
textsrequired | array<string> | |
provider | string | |
model | string | |
agentId | string |
Responses
| Status | Description | Body | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Counts, in input order | TokenCountBatchResponse | |||||||||
| |||||||||||
Errors 400 · 401 · 403
| 400 | Invalid request: missing or malformed field, query parameter or body. A body Fastify cannot parse gets Fastify's own shape (statusCode, code, error, message).bad_requestFST_ERR_CTP_EMPTY_JSON_BODY | |
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin |
Error bodies use the error format.
Example
curl -X POST "http://127.0.0.1:7385/runtime/token-count/batch" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"texts":["one","two words"]}'One agent's runtime diagnostics
/agents/{id}/runtimeStatus, adapters, MCP, triggers and WebSocket connections in one read.
Path parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Loaded agent: its id, handle or name. |
Responses
| Status | Description | Body | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Diagnostics | AgentRuntimeDiagnostics | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
statesrequiredarray<AdapterState> | 6 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
typerequired | string | ||||||||||
statusrequired | string | ||||||||||
error | string | ||||||||||
connectedAt | integer | ||||||||||
restartCountrequired | integer | ||||||||||
logsrequired | array<object> | ||||||||||
3 fields of | |||||||||||
timestamprequired | integer | |
levelrequired | string | |
messagerequired | string |
mcprequired3 fields of mcp · AgentMcpDiagnostics
agentIdrequired | string | Agent id | |||||||||||||||||||||||||||||||||
configuredrequired | array<object> | ||||||||||||||||||||||||||||||||||
5 fields of | |||||||||||||||||||||||||||||||||||
namerequired | string | |
transport | string | |
command | string | |
args | array<string> | |
toolCountrequired | integer |
statesrequired7 fields of states
namerequired | string | ||||||||||
statusrequired | string | ||||||||||
error | string | ||||||||||
connectedAt | integer | ||||||||||
restartCountrequired | integer | ||||||||||
toolCountrequired | integer | ||||||||||
logsrequired | array<object> | ||||||||||
3 fields of | |||||||||||
timestamprequired | integer | |
streamrequired | string | |
messagerequired | string |
triggersrequired3 fields of triggers · AgentTriggersDiagnostics
agentIdrequired | string | Agent id | ||||||||||||||||||||||||||||||||||||||||||||||||
displayStaterequired | string | null | |||||||||||||||||||||||||||||||||||||||||||||||||
configuredrequired | array<object> | |||||||||||||||||||||||||||||||||||||||||||||||||
4 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||
typerequired | string | ||||||||||||||||||||||||||||||||||
enabledrequired | boolean | ||||||||||||||||||||||||||||||||||
targetCountrequired | integer | ||||||||||||||||||||||||||||||||||
targetsrequired | array<TriggerTarget> | ||||||||||||||||||||||||||||||||||
11 fields of | |||||||||||||||||||||||||||||||||||
scoperequired | string | |
lambda | string | System scope: |
command | string | System scope: shell command (alternative to lambda) |
warm | boolean | |
filter | object | |
debounce_ms | integer | |
interval_ms | integer | |
batch_ms | integer | |
batch_count | integer | |
locked | boolean | |
loop | string | Cognition loop this target wakes; absent = main |
wsrequired2 fields of ws
configuredrequired | array<object> | ||||||||||||||||
activerequired | array<WsConnectionInfo> | ||||||||||||||||
5 fields of | |||||||||||||||||
connection_idrequired | string | |
remote_didrequired | string | |
directionrequired | string | |
connected_atrequired | integer | |
last_message_atrequired | integer |
Errors 401 · 403 · 404
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin | |
| 404 | Unknown agent (or the named resource: loop, task, file, …) |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/agents/agent-1/runtime" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"One agent's trigger configuration
/agents/{id}/runtime/triggersPath parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Loaded agent: its id, handle or name. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Triggers | AgentTriggersDiagnostics |
Fields as in AgentTriggersDiagnostics above. | ||
Errors 401 · 403 · 404
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin | |
| 404 | Unknown agent (or the named resource: loop, task, file, …) |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/agents/agent-1/runtime/triggers" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"One agent's trigger configuration (same as …/runtime/triggers)
/agents/{id}/triggersPath parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Loaded agent: its id, handle or name. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Triggers | AgentTriggersDiagnostics |
Fields as in AgentTriggersDiagnostics above. | ||
Errors 401 · 403 · 404
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin | |
| 404 | Unknown agent (or the named resource: loop, task, file, …) |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/agents/agent-1/triggers" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"One agent's WebSocket connections
/agents/{id}/runtime/wsPath parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Loaded agent: its id, handle or name. |
Responses
| Status | Description | Body | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 200 | Connections | AgentWsDiagnostics | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
recentLogsrequiredarray<LogEntry> | Last 50 websocket-origin log rows 8 fields of | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
idrequired | integer | |
levelrequired | string | |
originrequired | string | null | |
eventrequired | string | null | |
targetrequired | string | null | |
messagerequired | string | |
datarequired | string | null | JSON text |
created_atrequired | integer | Epoch ms |
Errors 401 · 403 · 404
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin | |
| 404 | Unknown agent (or the named resource: loop, task, file, …) |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/agents/agent-1/runtime/ws" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"One agent's WebSocket connections (same as …/runtime/ws)
/agents/{id}/wsPath parameters
| Name | Type | Description |
|---|---|---|
idrequired | string | Loaded agent: its id, handle or name. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Connections | AgentWsDiagnostics |
Fields as in AgentWsDiagnostics above. | ||
Errors 401 · 403 · 404
| 401 | Missing or wrong bearer token (unauthorized) | |
| 403 | The request guard refused it: Host header not allowed (host_not_allowed, DNS-rebinding protection) or a browser cross-site request (cross_origin)host_not_allowedcross_origin | |
| 404 | Unknown agent (or the named resource: loop, task, file, …) |
Error bodies use the error format.
Example
curl "http://127.0.0.1:7385/agents/agent-1/ws" \
-H "Authorization: Bearer $ADF_DAEMON_TOKEN"