# List the team

Who in the organization can own a row (`owner` on POST /tables/* and PATCH): with several SDRs, each with their own agent or key, give every row its owner, so each sees their own rows (`?owner=me` on GET /tables/*) and their own agenda (GET /agenda?owner=me). `me` is the user behind the key. The user sees the Owner column on Leads and Companies.

## Authentication

Send `Authorization: Bearer gtk_…`. Create the key under **Connect assistant → API keys**. Every `gtk_` key can call these routes, also while the Signals API is closed. A missing, invalid or revoked key is **401**.

## Response

- **`object`** `string` · **required** — Always `list`. One of: `list`.
- **`data`** `object[]` · **required** — `id`, `name`, `email`, `role`, and `me` (true for the user behind the key).
- **`dashboard_url`** `string` · **required** — Leads in mySDR.

## Credits

Free. This call never uses credits.

## Errors

- **401** `authentication_error` — The Authorization header is missing, or the key is unknown or revoked.
- **403** `permission_error` — API access is not part of your plan, or your account is suspended.
- **429** `rate_limit_error` — More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header.
- **503** `service_unavailable` — The API is temporarily unavailable. Retry later.
- **500** `internal_error` — Something went wrong on our side.

## Example

### cURL

```bash
curl "https://mysdr.app/api/v1/team" \
  -H "Authorization: Bearer $MYSDR_API_KEY"
```

### JavaScript

```javascript
const response = await fetch('https://mysdr.app/api/v1/team', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.MYSDR_API_KEY}`
  }
});
const body = await response.json();
```

### Python

```python
import json
import os
import urllib.request

request = urllib.request.Request(
    "https://mysdr.app/api/v1/team",
    headers={
    "Authorization": f"Bearer {os.environ['MYSDR_API_KEY']}"
    },
    method="GET",
)
with urllib.request.urlopen(request) as response:
    body = json.load(response)
```

### Example response

```json
{
  "object": "list",
  "data": [
    {
      "id": "0c2a…",
      "name": "Jane Example",
      "email": "jane@acme.example",
      "role": "owner",
      "me": true
    },
    {
      "id": "7f1e…",
      "name": "Tom Sample",
      "email": "tom@acme.example",
      "role": "member",
      "me": false
    }
  ],
  "dashboard_url": "https://mysdr.app/en/gtm/leads"
}
```
