# List Agency Team Beta

> List the agency team with the client workspaces each person can open.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`GET` https://api.foxreach.io/api/v1/agency/team

> **Note:** **Beta.** Agency team endpoints are new and may change.

Requires an API key with the `read` scope.

Only API keys of an Agency workspace can call this endpoint (`403 agency_required` otherwise). The call always runs in the key's own workspace; `X-Workspace-Id` is ignored. Any key of the agency workspace can read the team.

The team is the people the agency owner added in Agency Admin, Team or through this API. Oldest first. The list is not paginated.

## Response

- `data` array

  Team member:

  - `id` string: Team member id. Pass it to update or remove them.
  - `userId` string: The person's FoxReach user id.
  - `email` string: Their email.
  - `name` string: Their name, or `null`.
  - `role` string: Agency role: `manager` or `member`.
  - `workspaceRole` string: The role the agency role gives in client workspaces: `admin` for a manager, `member` for a member.
  - `workspaceIds` string[]: Every client workspace of the agency they can open, including access a client gave them in its own Settings, Team.
  - `joinedAt` string: ISO 8601 timestamp.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/agency/team" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK (beta)
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
team = client.agency.list_team()
```

```typescript TypeScript SDK (beta)
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
const team = await client.agency.listTeam();
```

**Response example**

```json
{
  "data": [
    {
      "id": "am_abc123",
      "userId": "usr_def456",
      "email": "sam@agency.com",
      "name": "Sam Lee",
      "role": "manager",
      "workspaceRole": "admin",
      "workspaceIds": ["ws_abc123", "ws_ghi789"],
      "joinedAt": "2026-11-20T10:00:00"
    }
  ]
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `403` | `agency_required`: the key's workspace does not hold an Agency plan |

## Rate Limit

- **300 requests per minute, shared by every `read` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`read`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
