On this page

Network diagnostics (host, mesh, WebSockets, agents)

GET/network

Operation getNetworkDiagnosticsAuthBearer token

Responses

StatusDescriptionBody
200DiagnosticsNetworkDiagnostics
hostrequiredobject
2 fields of host · LanAddressInfo
hostnamerequiredstring
addressesrequiredarray<object>
4 fields of addresses
ifacerequiredstring
addressrequiredstring
familyrequiredstring

One of IPv4, IPv6

macrequiredstring
meshrequiredobject
4 fields of mesh
enabledSettingrequiredboolean
lanrequiredboolean
portrequiredinteger
statusrequiredMeshStatus | null
5 fields of status
meshEnabledrequiredboolean
meshServerRunningrequiredboolean
meshServerrequiredobject
3 fields of meshServer · MeshServerStatus
runningrequiredboolean
portrequiredinteger
hostrequiredstring
agentsrequiredarray<MeshAgentStatus>
8 fields of agents
filePathrequiredstring
handlerequiredstring
didstring
agentIdstring
iconstring
staterequiredstring

Display (fleet-map) state of an agent

One of active, idle, hibernate, suspended, off

statusstring
modelstring
debugrequiredobject

Mesh manager internals (unstable)

websocketrequiredobject
3 fields of websocket
activeConnectionsrequiredinteger
inboundConnectionsrequiredinteger
outboundConnectionsrequiredinteger
agentsrequiredarray<object>
10 fields of agents
agentIdrequiredstring
handlestring
namerequiredstring
filePathrequiredstring | null
receiverequiredboolean
sendModerequiredstring | null
networkrequiredstring | null
wsConnectionsConfiguredrequiredinteger
servingRoutesrequiredinteger
publicServingEnabledrequiredboolean
Errors 401 · 403
401Missing or wrong bearer token (unauthorized)
403The 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

Request
curl "http://127.0.0.1:7385/network" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Network diagnostics (same as GET /network)

GET/runtime/network

Operation getRuntimeNetworkAuthBearer token

Responses

StatusDescriptionBody
200DiagnosticsNetworkDiagnostics

Fields as in NetworkDiagnostics above.

Errors 401 · 403
401Missing or wrong bearer token (unauthorized)
403The 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

Request
curl "http://127.0.0.1:7385/runtime/network" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Live mesh status

GET/network/mesh

Operation getMeshStatusAuthBearer token

Responses

StatusDescriptionBody
200Mesh statusMeshStatus
meshEnabledrequiredboolean
meshServerRunningrequiredboolean
meshServerrequiredobject
3 fields of meshServer · MeshServerStatus
runningrequiredboolean
portrequiredinteger
hostrequiredstring
agentsrequiredarray<MeshAgentStatus>
8 fields of agents
filePathrequiredstring
handlerequiredstring
didstring
agentIdstring
iconstring
staterequiredstring

Display (fleet-map) state of an agent

One of active, idle, hibernate, suspended, off

statusstring
modelstring
debugrequiredobject

Mesh manager internals (unstable)

Errors 401 · 403 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl "http://127.0.0.1:7385/network/mesh" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Enable mesh registration (persisted)

POST/network/mesh/enable

Operation enableMeshAuthBearer token

Persists meshEnabled: true and re-registers the loaded agents. No body.

Responses

StatusDescriptionBody
200EnabledMeshToggleResponse
successrequiredboolean
meshEnabledrequiredboolean
agentsrequiredarray<MeshAgentStatus>
8 fields of agents
filePathrequiredstring
handlerequiredstring
didstring
agentIdstring
iconstring
staterequiredstring

Display (fleet-map) state of an agent

One of active, idle, hibernate, suspended, off

statusstring
modelstring
Errors 401 · 403 · 405 · 500 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
500Unexpected runtime failure
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl -X POST "http://127.0.0.1:7385/network/mesh/enable" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Disable mesh registration (persisted)

POST/network/mesh/disable

Operation disableMeshAuthBearer token

Persists meshEnabled: false and unregisters mesh agents without unloading them. No body.

Responses

StatusDescriptionBody
200DisabledMeshToggleResponse

Fields as in MeshToggleResponse above.

Errors 401 · 403 · 405 · 500 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
500Unexpected runtime failure
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl -X POST "http://127.0.0.1:7385/network/mesh/disable" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Recent tool calls per mesh agent

GET/network/mesh/recent-tools

Operation getRecentMeshToolsAuthBearer token

Query parameters

NameTypeDescription
limitinteger

Calls per agent (default 5)

Responses

StatusDescriptionBody
200Recent callsRecentMeshToolsResponse
toolsrequiredmap<string, array<object>>

By agent handle

4 fields of tools
namerequiredstring
argsstring
isErrorboolean
timestamprequiredinteger
Errors 400 · 401 · 403 · 405 · 503
400Invalid 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
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl "http://127.0.0.1:7385/network/mesh/recent-tools" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

This host's name and LAN addresses

GET/network/mesh/lan-addresses

Operation getLanAddressesAuthBearer token

Responses

StatusDescriptionBody
200AddressesLanAddressesResponse
addressesrequiredobject

Fields as in LanAddressInfo above.

Errors 401 · 403 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl "http://127.0.0.1:7385/network/mesh/lan-addresses" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Remote mesh runtimes discovered on the LAN

GET/network/mesh/discovered-runtimes

Operation getDiscoveredRuntimesAuthBearer token

Responses

StatusDescriptionBody
200Runtimes (the daemon does not discover yet: empty)DiscoveredRuntimesResponse
runtimesrequiredarray<object>
Errors 401 · 403 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl "http://127.0.0.1:7385/network/mesh/discovered-runtimes" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Mesh HTTP server status

GET/network/server

Operation getMeshServerStatusAuthBearer token

Responses

StatusDescriptionBody
200StatusMeshServerStatus
runningrequiredboolean
portrequiredinteger
hostrequiredstring
Errors 401 · 403 · 405 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl "http://127.0.0.1:7385/network/server" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"
Response 200
{
  "running": true,
  "port": 7295,
  "host": "127.0.0.1"
}

Start the mesh HTTP server (persisted)

POST/network/server/start

Operation startMeshServerAuthBearer token

The mesh server (port 7295 by default, separate from this API) serves agent cards, health, ALF inbox delivery and agent web/API routes under /agents/{handle}/*. It is on by default; this persists meshServerEnabled: true. No body.

Responses

StatusDescriptionBody
200StartedMeshServerActionResponse
successrequiredboolean
runningrequiredboolean
portrequiredinteger
hostrequiredstring
Errors 401 · 403 · 405 · 500 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
500Unexpected runtime failure
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl -X POST "http://127.0.0.1:7385/network/server/start" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Stop the mesh HTTP server (persisted)

POST/network/server/stop

Operation stopMeshServerAuthBearer token

Persists meshServerEnabled: false, so it stays off across restarts until started again. No body.

Responses

StatusDescriptionBody
200StoppedMeshServerActionResponse
successrequiredboolean
runningrequiredboolean
portrequiredinteger
hostrequiredstring
Errors 401 · 403 · 405 · 500 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
500Unexpected runtime failure
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl -X POST "http://127.0.0.1:7385/network/server/stop" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"

Restart the mesh HTTP server

POST/network/server/restart

Operation restartMeshServerAuthBearer token

No body.

Responses

StatusDescriptionBody
200RestartedMeshServerActionResponse
successrequiredboolean
runningrequiredboolean
portrequiredinteger
hostrequiredstring
Errors 401 · 403 · 405 · 500 · 503
401Missing or wrong bearer token (unauthorized)
403The 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
405Not available on this daemon (the subsystem is read-only or lacks this operation)
500Unexpected runtime failure
503The subsystem is not configured on this daemon

Error bodies use the error format.

Example

Request
curl -X POST "http://127.0.0.1:7385/network/server/restart" \
  -H "Authorization: Bearer $ADF_DAEMON_TOKEN"