# scheduling.schedulable_members

Listar quem pode ser escolhido numa agenda. Atendentes da conta que podem ter agenda: os papéis de `scheduling.settings_get` (`schedulableRoles`; `seatRole` = `owner` para quem criou a conta, `admin` ou `member`), por nome. `attendantId`, `personId` e `memberId` são o mesmo id (o usuário). `hasAvailability` = tem faixas semanais em `attendants.availability_set`.

- Endpoint: `POST https://app.atomiks.com.br/api/v1/scheduling.schedulable_members` (corpo JSON)
- Quem pode chamar: membro da conta
- Escopo da chave: `crm:read`
- Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP: `scheduling_schedulable_members`
- Ficha em JSON: `https://app.atomiks.com.br/api/v1/openapi.json` (operationId `scheduling.schedulable_members`)

## Entrada

Sem campos: envie `{}`.

<details><summary>JSON Schema</summary>

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {}
}
```

</details>

## Exemplo

```bash
curl -X POST https://app.atomiks.com.br/api/v1/scheduling.schedulable_members \
  -H "Authorization: Bearer $ATOMIKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

CLI:

```bash
node cli/atomiks.mjs scheduling.schedulable_members --json '{}'
```

MCP: ferramenta `scheduling_schedulable_members` com a mesma entrada.

## Saída

Sucesso: `{"data": ...}` com o formato abaixo.

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attendantId": {
            "type": "string"
          },
          "personId": {
            "type": "string"
          },
          "memberId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "initials": {
            "type": "string"
          },
          "imageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "seatRole": {
            "type": "string",
            "enum": [
              "owner",
              "admin",
              "member"
            ]
          },
          "hasAvailability": {
            "type": "boolean"
          }
        },
        "required": [
          "attendantId",
          "personId",
          "memberId",
          "name",
          "initials",
          "imageUrl",
          "seatRole",
          "hasAvailability"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "items"
  ],
  "additionalProperties": false
}
```

## Erros

`{"error": {"code", "message", "requestId"}}`. Códigos: `invalid_input` (400), `unauthorized` (401), `forbidden` / `account_pending` / `scope_missing` (403), `not_found` (404), `limit_reached` (409), `internal` (500).
