# listTeams

The organization's teams (groups of teammates a contact or form can be given to), newest first, with their members; `search` narrows by name.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listTeams", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `search`: `String`

## Response (data, an example)

```json
{
  "userGroupQuery": {
    "list": [
      {
        "id": "<ID>",
        "name": "…",
        "description": "…",
        "memberCount": 0,
        "members": [
          {
            "id": "<ID>",
            "firstName": "…",
            "lastName": "…",
            "email": "…"
          }
        ]
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listTeams",
    "variables": {}
  }'
```
