# Account

> List the members, teams, categories and Slack integrations that the other endpoints take ids of.

These endpoints need `account:read`. They return the whole list, by name, so you can find the ids to [assign](https://pulso.run/docs/api/signals.md#assign-and-unassign) or filter by.

- `GET /v1/members`: the active members, with their role and teams
- `GET /v1/teams`
- `GET /v1/categories`: the monitors' categories
- `GET /v1/slack_integrations`: the Slack workspaces, as `{ "id", "name", "workspace_id" }`
- `GET /v1/slack_integrations/:id/destinations`: a workspace's channels and users, asked of Slack each time. `?query=` keeps those whose name contains it.

```bash
curl https://api.pulso.run/v1/members \
  -H "Authorization: Bearer ak_..."
```

```json
{
  "members": [
    {
      "id": "01M7ZJ3A…",
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "role": "operator",
      "teams": [ { "id": "01M7ZJ3B…", "name": "Payments Ops" } ]
    }
  ]
}
```

Teams and categories come as `{ "teams": [ { "id", "name" } ] }` and `{ "categories": [ { "id", "name" } ] }`.

A [playbook](https://pulso.run/docs/api/playbooks.md)'s `slackNotification` step takes an integration's `id` as its `slack_integration_id`, and a channel's or user's `id` as its destination:

```json
{
  "channels": [ { "id": "C04H…", "name": "payments-alerts" } ],
  "users": [ { "id": "U02K…", "name": "ada", "real_name": "Ada Lovelace" } ]
}
```

If Slack refuses, for instance because the app was removed from the workspace, the answer is a `409` with Slack's error.
