Skip to content

Bridge API

Method and path Token Purpose
POST /v1/advertise agent Advertise: subject_id, services, metadata
GET /v1/advertised agent Advertised subjects, and whether they are published
DELETE /v1/advertised/{subject} agent Withdraw
POST /v1/resolve agent Look up a subject: subject_id. Returns local and ready
GET /v1/table agent Routes: subject, topic, key
GET /v1/status agent Cluster, key, topic, connected clusters, counters
GET /v1/config config Configuration: value, version
PUT /v1/config config Replace it: value, and version to detect concurrent changes
GET /healthz, GET /readyz none Liveness, and readiness of the leaf connection

Tokens are AGENT_TOKEN and CONFIG_TOKEN, as Authorization: Bearer.

Status Meaning
400 Malformed
401 Token is missing or wrong
403 Subject may not be advertised
404 Subject is not advertised
409 Configuration was changed
422 Configuration is invalid
503 Relays, or the leaf connection, are unavailable