# List saved agents you can use, newest first.

`GET /o/{org}/agents`

Your own agents and agents shared with you in this org; 50 a page. Agents made from a template are left out unless `template` names one: then the list is that template's agents. `orphaned=true`, for an org admin, lists instead the org's agents whose creator left the org or had their account erased (never the owner's, never one made from a template), whether or not you can see them, as `OrphanedAgent`: its name, harness and how it is shared, nothing of its setup. That includes an agent that was never shared, and one whose creator's account was erased. Make one private with `PATCH {"visibility": "private"}`, or delete it with `DELETE` (`409 AGENT_IN_USE` while an automation runs it).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org` | path | string | yes | The org's slug or id. A caller with no role in the org gets `404`. |
| `orphaned` | query | string | no | `true` lists the orphaned agents. It takes only `cursor` beside it (anything else is `400 VALIDATION_ERROR`), and a caller who is not an org admin gets `403 FORBIDDEN`. |
| `template` | query | string | no | A template's id or name; lists the agents made from it. An unknown one, or an agent made from a template, is `404 NOT_FOUND`; a blank one is `400 VALIDATION_ERROR`. |
| `cursor` | query | string | no | The `next_cursor` of the previous page, URL-encoded (it can hold a `+`, which a URL reads as a space); anything else is `400 VALIDATION_ERROR`. |

## Example request

```bash
curl "https://api.phoenix.so/o/$RUSH_ORG/agents" \
  -H "Authorization: Bearer $RUSH_TOKEN"
```

```typescript
const org = process.env.RUSH_ORG;

const res = await fetch(`https://api.phoenix.so/o/${org}/agents`, {
  headers: {
    Authorization: `Bearer ${process.env.RUSH_TOKEN}`,
  },
});

console.log(res.status, await res.json());
```

```python
import os

import requests

org = os.environ["RUSH_ORG"]

res = requests.get(
    f"https://api.phoenix.so/o/{org}/agents",
    headers={"Authorization": f"Bearer {os.environ['RUSH_TOKEN']}"},
)

print(res.status_code, res.json())
```

## Responses

### 200

One page of saved agents.

- `agents` (array of SavedAgent | OrphanedAgent, optional)
  - `visibility` (string, required, one of `private`, `org`, `public`): Private by default; org makes the agent usable by current org members; public lists it in Community once Phoenix approves it.
  - `listing` (object, optional): What Community serves of the agent, present once Phoenix has approved a revision; your own org reads it.
    - `state` (string, required, one of `listed`, `withdrawn`, `removed`)
    - `category` (string, required, one of `Engineering`, `Business`, `Marketing`, `General`)
    - `subtitle` (string, required)
    - `listed_revision` (integer, required): The revision Community lists and its adders run.
    - `triggers` (array of string, optional): How the listed agent starts, by kind.
    - `note` (string, optional): Phoenix's note on a removal.
    - `logo_url` (string, optional): The listed square logo: a public image URL that never changes.
    - `cover_url` (string, optional): The listed wide cover image: a public image URL that never changes.
  - `review` (object, optional): A revision submitted to Community that Phoenix has not decided, or turned down.
    - `revision` (integer, required)
    - `category` (string, required, one of `Engineering`, `Business`, `Marketing`, `General`)
    - `subtitle` (string, required)
    - `triggers` (array of string, optional)
    - `state` (string, required, one of `in_review`, `rejected`)
    - `note` (string, optional): Why Phoenix turned it down.
    - `logo_url` (string, optional): The logo submitted with this revision.
    - `cover_url` (string, optional): The cover submitted with this revision.
  - `id` (string, required)
  - `template` (string, optional): Present on an agent made from a template; everything but its name and description is the template's.
  - `added` (boolean, optional, one of `true`): Present on an agent added from a Community listing; it runs the listed revision and never shows the maker's setup.
  - `user_id` (string, required): Its creator.
  - `org_id` (string, required)
  - `name` (string, required)
  - `handle` (string, required)
  - `description` (string, optional)
  - `harness` (string, required, one of `claude`, `codex`, `opencode`): Launch-boundary managed harnesses.
  - `revision` (integer, required): The revision read, the number its `ETag` carries and an edit's `If-Match` names.
  - `archived` (boolean, optional, one of `true`): Present on a deleted agent, which starts no run.
  - `source` (object, optional): What the agent was made from, when it was made from another agent or a catalog harness. Only its creator reads it.
  - `catalog_revision` (string, required): The catalog revision the agent was last saved against.
  - `runtime` (object, required): `{selection: "latest_verified"}` keeps the harness CLI current; `{selection: "pinned", id}` holds one release.
    - `selection` (string, required, one of `latest_verified`, `pinned`)
    - `id` (string, optional)
  - `model` (string, required)
  - `effort` (string, optional)
  - `speed` (string, required, one of `standard`, `fast`)
  - `instructions` (string, optional)
  - `skills` (array of object, optional)
    - `url` (string, required)
    - `name` (string, required)
  - `connections` (array of object, optional): The agent's connections from `GET /me/connections`, each with the name a run's `connections` takes. A deleted connection has no `name`. On an agent made from a template, one entry per connection the template names: `id` is the agent's own account of that app, absent until connected. Anyone but the agent's creator reads each by its app's `name` (and an MCP server's own `display_name`), never the creator's `id`.
    - `id` (string, optional)
    - `kind` (string, optional): The kind of connection, as `GET /me/connections` names it.
    - `name` (string, optional)
    - `display_name` (string, optional)
    - `access` (string, optional, one of `read`, `send`): `read`: read mail (and Outlook contacts). `send`: read and send. Absent: all of the app's access, which for Gmail also changes labels and for Outlook is the same as `send`.
  - `missing_connections` (array of object, optional): On an agent made from a template, each connection its template names that a run of it lacks; absent once there are none. Every run of this agent is `422 CONNECTION_NOT_READY` until each is connected. A read of an older revision (`?revision=`) reports what that revision's connections lack. It checks that an account exists, not its `access` level: an account connected below what the template now names (a raised level, or a dropped one, which asks for all of the app) is not listed. Until it is connected again, a run is accepted and then ends `failed` with `CONNECTION_UNAVAILABLE`, not the `422` above.
    - `name` (string, optional): The connection's name; absent when the template owner's connection was deleted.
    - `whose` (string, required, one of `agent`, `template`): Who connects it: `agent`, this agent's user, at `/o/{org}/agents/{agent}/connections` (an agent added from a Community listing, its person at `/me/connections`); `template`, the template's owner, whose own connection has lapsed or was deleted. A lapsed one clears when the owner signs in to the same account again at `/me/connections`; for a deleted one or another account, the owner connects it and then `PATCH`es the template's `connections` (keeping the `access` of any that has one), since the template names a connection by its id.
  - `connections_added` (array of string, optional): In a `PATCH` answer for a template that agents are made from, the connection names the edit added (a connection that replaces a deleted one counts as added). An agent made from it that has no account of one needs its user to connect it; `GET /o/{org}/agents?template=<id>` names each agent's `missing_connections`. Absent when the edit added none.
  - `capabilities` (object, optional): Present when browser or computer use is on.
    - `browser` (boolean, optional)
    - `computer` (boolean, optional)
  - `tools` (object, optional): Present when the agent allows only some tools: `{mode: "selected", ids}`, with `ids` left out when it allows none.
  - `network` (object, optional): Present when the agent reaches only some domains: `{mode: "allowlist", domains}`, with `domains` left out when it reaches none.
  - `plugins` (array of object, optional): The catalog plugins the agent installs, by `catalog_id`.
    - `catalog_id` (string, required)
  - `created_at` (string, required)
  - `updated_at` (string, required)
- `next_cursor` (string, optional): Present when there is another page.

### 400

Malformed request.

### 401

No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.

### 403

`FORBIDDEN`: `orphaned=true` from someone who is not an org admin.

### 404

No such resource for the caller, including one in an org the caller is not in or a Project that is private to someone else.

### 429

The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (`RATE_LIMITED`). The error names the limit. Wait `Retry-After` seconds.

## Example response (200)

```json
{
  "agents": [
    {
      "id": "3a9d5e21-7c4b-4f18-b6a0-2e8f1d9c7b54",
      "user_id": "3b8e1d4a-7c2f-4a90-b6e5-0d9f2c1a8e37",
      "org_id": "9a4c2e71-5b3d-4f86-a1c0-7e2d8b6f3a95",
      "name": "Outreach",
      "handle": "outreach-7d31b0c4",
      "description": "Emails suppliers for each of your users.",
      "visibility": "private",
      "harness": "codex",
      "revision": 1,
      "catalog_revision": "a1440865d9c3d950cc93bfa8768e1b485d0853343e60fec08352ada1cf2ee718",
      "runtime": {
        "selection": "latest_verified"
      },
      "model": "gpt-5.5",
      "effort": "medium",
      "speed": "standard",
      "instructions": "Email suppliers.",
      "connections": [
        {
          "id": "b2e7c4a9-5f1d-4e83-9a60-d8c3f1b7e025",
          "kind": "oauth",
          "name": "outlook"
        },
        {
          "id": "0c9f3d68-2a7e-4b51-8d4c-e6a1b9f2c370",
          "kind": "mcp",
          "name": "notion"
        }
      ],
      "created_at": "2026-10-08T13:22:41.000Z",
      "updated_at": "2026-10-08T13:22:41.000Z"
    },
    {
      "id": "6244972a-14cc-4592-a0e3-c7a0ab45b07b",
      "user_id": "3b8e1d4a-7c2f-4a90-b6e5-0d9f2c1a8e37",
      "org_id": "9a4c2e71-5b3d-4f86-a1c0-7e2d8b6f3a95",
      "name": "Plugin reviewer",
      "handle": "plugin-reviewer-5f2a9c1e",
      "visibility": "private",
      "harness": "claude",
      "revision": 1,
      "catalog_revision": "a1440865d9c3d950cc93bfa8768e1b485d0853343e60fec08352ada1cf2ee718",
      "runtime": {
        "selection": "latest_verified"
      },
      "model": "claude-opus-5-5",
      "effort": "high",
      "speed": "standard",
      "instructions": "Review each plugin.json and report every problem with its file and a fix.",
      "skills": [
        {
          "url": "https://github.com/anthropics/skills/tree/main/skills/frontend-design",
          "name": "frontend-design"
        }
      ],
      "connections": [
        {
          "id": "1f6a8d3e-9c2b-4e70-b5d1-7a4e0c3f8b96",
          "kind": "mcp",
          "name": "deepwiki"
        }
      ],
      "created_at": "2026-10-07T10:48:16.000Z",
      "updated_at": "2026-10-07T10:48:16.000Z"
    }
  ]
}
```
