OpenRCS API reference · v1 ← Back to console Swagger UI
Agents

List managed RCS agents

GET /agents x-api-key

Lists the managed RCS agents owned by the caller, optionally filtered by the `status` query parameter. Each row is the full stored agent row: it carries `google_agent_id` and the `additional_info` map (internal name `agent_name`, `agent_logo_url`, …) so callers can render a table without a per-row detail fan-out. Rows may be unpersisted drafts: `google_agent_id` is nullable (`null` until the Google create has run), with `persist_state` ("pending"/"persisted") and `persisted_at` (ISO8601 stamp of the successful Google create, `null` while pending) on every row. Secured by an x-api-key.

Parameters

NameInTypeRequiredDescription
x-api-key header string yes The relay API key (x-api-key header).
status query string no Filter agents by lifecycle status.

Responses

StatusDescription
200 List of managed agents.
401 Missing or invalid API key.

200 example

{
  "agents": [
    {
      "agent_id": "01H...",
      "google_agent_id": "brands/.../agents/...",
      "brand": "Acme",
      "name": "Acme Agent",
      "status": "draft",
      "persist_state": "persisted",
      "persisted_at": "2026-07-19T12:00:00Z",
      "additional_info": {
        "agent_name": "Acme Agent (internal)",
        "agent_logo_url": "https://cdn.example.com/agents/acme.png"
      }
    }
  ]
}