Skip to main content
POST
/
agents
/
get_connection
Get agent connection state
curl --request POST \
  --url https://api.svantic.com/agents/get_connection \
  --header 'Content-Type: application/json' \
  --data '
{
  "instance_id": "inst-orchestrator-7f3d"
}
'
{
  "ok": true,
  "connection": {
    "instance_id": "inst-orchestrator-7f3d",
    "agent_type": "orchestrator",
    "tenant_id": "tenant-acme",
    "deployment_mode": "hosted",
    "transport": "callback",
    "connection_status": "healthy",
    "owner_pod": null,
    "connected_since": null,
    "last_dispatch_at": "2026-04-17T12:00:05.000Z",
    "dispatches_succeeded": 142,
    "dispatches_failed": 3,
    "last_dispatch_error": null,
    "status": "available",
    "last_seen": "2026-04-17T12:00:05.000Z",
    "ws_mesh_pod_id": null,
    "ws_last_seen": null
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.svantic.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
instance_id
string
required

Agent instance identifier.

tenant_id
string

Super-admin-only override. Ignored for non-super callers, whose tenant is always read from the auth context. When a super-admin omits this, the lookup is global by instance_id.

Response

Connection state for the instance.

ok
boolean
required
connection
object
required

Unified connection-state envelope for a single agent instance. Shape is identical regardless of deployment_mode: hosted agents report transport=callback, connected agents report transport=ws. The dashboard renders the same card for either, switching only on the transport and connection_status fields. Maintained by the mesh write path (/internal/agents/record_*) against the agent_instances row. The gateway row is the single source of truth — clients should not cross-reference the mesh /metrics endpoint except for aggregate fleet-wide telemetry.