Skip to main content
Workers

List Workers

List workers connected to the control plane in a namespace, optionally filtered by name or key. Results are paginated.

GET https://api.rivet.dev/envoys

Examples

Authentication

Send your namespace token as a bearer token in the Authorization header. Every control plane request also requires the namespace query parameter. See Authentication.

Query Parameters

NameTypeRequiredDescription
namespacestringYesName of the namespace to operate in.
namestringNoOnly return workers with this name.
envoy_keystring[]NoOnly return workers with these keys. Repeat the parameter for multiple keys.
limitintegerNoMaximum number of results to return.
cursorstringNoPagination cursor. Pass the pagination.cursor value from the previous response to fetch the next page.

Responses

200

Matching workers and a cursor for the next page.

FieldTypeDescription
envoysobject[]
envoys[].create_tsinteger
envoys[].datacenterstring
envoys[].envoy_keystring
envoys[].last_connected_tsinteger | null
envoys[].last_ping_tsinteger
envoys[].last_rttinteger
envoys[].metadataobject | null
envoys[].namespace_idstring
envoys[].pool_namestring
envoys[].slotsinteger
envoys[].stop_tsinteger | null
envoys[].versioninteger
paginationobject
pagination.cursorstring | nullCursor for the next page, or null when there are no more results.
{
  "envoys": [
    {
      "create_ts": 1700000000000,
      "datacenter": "us-east",
      "envoy_key": "<envoy_key>",
      "last_connected_ts": null,
      "last_ping_ts": 1700000000000,
      "last_rtt": 0,
      "metadata": null,
      "namespace_id": "00000000-0000-0000-0000-000000000000",
      "pool_name": "<pool_name>",
      "slots": 0,
      "stop_ts": null,
      "version": 0
    }
  ],
  "pagination": {
    "cursor": null
  }
}