> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hybridbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Почтовые ящики

> Управлять SMTP-почтовыми ящиками, учетными данными и доменами ящиков.

# Почтовые ящики

Управлять SMTP-почтовыми ящиками, учетными данными и доменами ящиков.

<script src="/locale-bridge.js" />

В примерах используется режим кода A2A. MCP предоставляет тот же режим кода через инструмент `execute`.

## Функции

### `mailboxes.add`

```text theme={null}
mailboxes.add(account_id: str, domain: str, first_name: str, last_name: str, local_part: str) -> Mailbox
```

Почтовые ящики: `mailboxes.add`.

| Свойство              | Значение                                          | Свойство                 | Значение         |
| --------------------- | ------------------------------------------------- | ------------------------ | ---------------- |
| Требуемое разрешение  | `mailbox.create`                                  | Требуется аутентификация | `да`             |
| Режим выполнения      | `sync`                                            | Возможность              | `mailbox.create` |
| Тип ресурса           | `account`                                         | Поле ID ресурса          | `account_id`     |
| Публичный маршрут API | `POST /v1/public/accounts/{account_id}/mailboxes` |                          |                  |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип   | Обязательный |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | да           |
    | `domain`     | `str` | да           |
    | `first_name` | `str` | да           |
    | `last_name`  | `str` | да           |
    | `local_part` | `str` | да           |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле             | Тип                                       | Обязательный |
    | ---------------- | ----------------------------------------- | ------------ |
    | `created_at`     | `str`                                     | да           |
    | `domain_id`      | `str`                                     | да           |
    | `domain_name`    | `str`                                     | да           |
    | `first_name`     | `str`                                     | да           |
    | `id`             | `str`                                     | да           |
    | `last_name`      | `str`                                     | да           |
    | `local_part`     | `str`                                     | да           |
    | `primary_email`  | `str`                                     | да           |
    | `quota`          | `{"allowed": int, "used": int}`           | да           |
    | `status`         | `str`                                     | да           |
    | `updated_at`     | `str`                                     | да           |
    | `aliases`        | `[{"alias": str, "is_catch_all"?: bool}]` | нет          |
    | `workspace_id`   | `str \| null`                             | нет          |
    | `workspace_name` | `str \| null`                             | нет          |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", first_name=\"<string>\", last_name=\"<string>\", local_part=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.add",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", first_name=\"<string>\", last_name=\"<string>\", local_part=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.add\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.aliases.create`

```text theme={null}
mailboxes.aliases.create(account_id: str, mailbox: str, alias: str, is_catch_all?: bool) -> Mailbox
```

Почтовые ящики: `mailboxes.aliases.create`.

| Свойство              | Значение                                                            | Свойство                 | Значение               |
| --------------------- | ------------------------------------------------------------------- | ------------------------ | ---------------------- |
| Требуемое разрешение  | `mailbox.alias.manage`                                              | Требуется аутентификация | `да`                   |
| Режим выполнения      | `sync`                                                              | Возможность              | `mailbox.alias.manage` |
| Тип ресурса           | `account`                                                           | Поле ID ресурса          | `account_id`           |
| Публичный маршрут API | `POST /v1/public/accounts/{account_id}/mailboxes/{mailbox}/aliases` |                          |                        |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя            | Тип    | Обязательный |
    | -------------- | ------ | ------------ |
    | `account_id`   | `str`  | да           |
    | `mailbox`      | `str`  | да           |
    | `alias`        | `str`  | да           |
    | `is_catch_all` | `bool` | нет          |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле           | Тип    | Обязательный |
    | -------------- | ------ | ------------ |
    | `alias`        | `str`  | да           |
    | `is_catch_all` | `bool` | нет          |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.aliases.create(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\", alias=\"<string>\", is_catch_all=true)"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": true
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.aliases.create",
          "status": "completed",
          "result": true
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.aliases.create(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\", alias=\"<string>\", is_catch_all=true)"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": true\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.aliases.create\",\n      \"status\": \"completed\",\n      \"result\": true\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.aliases.delete`

```text theme={null}
mailboxes.aliases.delete(account_id: str, alias: str, mailbox: str) -> {}
```

Почтовые ящики: `mailboxes.aliases.delete`.

| Свойство              | Значение                                                                      | Свойство                 | Значение               |
| --------------------- | ----------------------------------------------------------------------------- | ------------------------ | ---------------------- |
| Требуемое разрешение  | `mailbox.alias.manage`                                                        | Требуется аутентификация | `да`                   |
| Режим выполнения      | `sync`                                                                        | Возможность              | `mailbox.alias.manage` |
| Тип ресурса           | `account`                                                                     | Поле ID ресурса          | `account_id`           |
| Публичный маршрут API | `DELETE /v1/public/accounts/{account_id}/mailboxes/{mailbox}/aliases/{alias}` |                          |                        |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип   | Обязательный |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | да           |
    | `alias`      | `str` | да           |
    | `mailbox`    | `str` | да           |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле     | Тип  | Обязательный |
    | -------- | ---- | ------------ |
    | `result` | `{}` | да           |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.aliases.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", alias=\"<string>\", mailbox=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.aliases.delete",
          "status": "completed",
          "result": {}
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.aliases.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", alias=\"<string>\", mailbox=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.aliases.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.bulk_add`

```text theme={null}
mailboxes.bulk_add(account_id: str, domain: str, items: [{"first_name": str, "last_name": str, "local_part": str}]) -> Mailbox
```

Почтовые ящики: `mailboxes.bulk_add`.

| Свойство              | Значение                                               | Свойство                 | Значение         |
| --------------------- | ------------------------------------------------------ | ------------------------ | ---------------- |
| Требуемое разрешение  | `mailbox.create`                                       | Требуется аутентификация | `да`             |
| Режим выполнения      | `sync`                                                 | Возможность              | `mailbox.create` |
| Тип ресурса           | `account`                                              | Поле ID ресурса          | `account_id`     |
| Публичный маршрут API | `POST /v1/public/accounts/{account_id}/mailboxes/bulk` |                          |                  |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип                                                          | Обязательный |
    | ------------ | ------------------------------------------------------------ | ------------ |
    | `account_id` | `str`                                                        | да           |
    | `domain`     | `str`                                                        | да           |
    | `items`      | `[{"first_name": str, "last_name": str, "local_part": str}]` | да           |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле      | Тип                                                                                                                                                                                                                                                                                                                                                                            | Обязательный |
    | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------ |
    | `created` | `[{"index": int, "mailbox": {"created_at": str, "domain_id": str, "domain_name": str, "first_name": str, "id": str, "last_name": str, "local_part": str, "primary_email": str, "quota": {"allowed": int, "used": int}, "status": str, "updated_at": str, "aliases"?: [{"alias": str, "is_catch_all"?: bool}], "workspace_id"?: str \| null, "workspace_name"?: str \| null}}]` | да           |
    | `failed`  | `[{"code": str, "index": int, "message": str}]`                                                                                                                                                                                                                                                                                                                                | да           |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.bulk_add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", items=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.bulk_add",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.bulk_add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", items=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.bulk_add\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.get`

```text theme={null}
mailboxes.get(account_id: str, mailbox: str) -> Mailbox
```

Почтовые ящики: `mailboxes.get`.

| Свойство              | Значение                                                   | Свойство                 | Значение       |
| --------------------- | ---------------------------------------------------------- | ------------------------ | -------------- |
| Требуемое разрешение  | `mailbox.view`                                             | Требуется аутентификация | `да`           |
| Режим выполнения      | `sync`                                                     | Возможность              | `mailbox.view` |
| Тип ресурса           | `account`                                                  | Поле ID ресурса          | `account_id`   |
| Публичный маршрут API | `GET /v1/public/accounts/{account_id}/mailboxes/{mailbox}` |                          |                |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип   | Обязательный |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | да           |
    | `mailbox`    | `str` | да           |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле             | Тип                                       | Обязательный |
    | ---------------- | ----------------------------------------- | ------------ |
    | `created_at`     | `str`                                     | да           |
    | `domain_id`      | `str`                                     | да           |
    | `domain_name`    | `str`                                     | да           |
    | `first_name`     | `str`                                     | да           |
    | `id`             | `str`                                     | да           |
    | `last_name`      | `str`                                     | да           |
    | `local_part`     | `str`                                     | да           |
    | `primary_email`  | `str`                                     | да           |
    | `quota`          | `{"allowed": int, "used": int}`           | да           |
    | `status`         | `str`                                     | да           |
    | `updated_at`     | `str`                                     | да           |
    | `aliases`        | `[{"alias": str, "is_catch_all"?: bool}]` | нет          |
    | `workspace_id`   | `str \| null`                             | нет          |
    | `workspace_name` | `str \| null`                             | нет          |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.get",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.get(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.get\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.list`

```text theme={null}
mailboxes.list(account_id: str, domain?: str | null, page?: int, page_size?: int, search?: str | null, workspace_id?: str | null) -> Page[Mailbox]
```

Почтовые ящики: `mailboxes.list`.

| Свойство              | Значение                                         | Свойство                 | Значение       |
| --------------------- | ------------------------------------------------ | ------------------------ | -------------- |
| Требуемое разрешение  | `mailbox.view`                                   | Требуется аутентификация | `да`           |
| Режим выполнения      | `sync`                                           | Возможность              | `mailbox.view` |
| Тип ресурса           | `account`                                        | Поле ID ресурса          | `account_id`   |
| Публичный маршрут API | `GET /v1/public/accounts/{account_id}/mailboxes` |                          |                |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя            | Тип           | Обязательный |
    | -------------- | ------------- | ------------ |
    | `account_id`   | `str`         | да           |
    | `domain`       | `str \| null` | нет          |
    | `page`         | `int`         | нет          |
    | `page_size`    | `int`         | нет          |
    | `search`       | `str \| null` | нет          |
    | `workspace_id` | `str \| null` | нет          |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле        | Тип                                                                                                                                                                                                                                                                                                                                                 | Обязательный |
    | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
    | `items`     | `[{"created_at": str, "domain_id": str, "domain_name": str, "first_name": str, "id": str, "last_name": str, "local_part": str, "primary_email": str, "quota": {"allowed": int, "used": int}, "status": str, "updated_at": str, "aliases"?: [{"alias": str, "is_catch_all"?: bool}], "workspace_id"?: str \| null, "workspace_name"?: str \| null}]` | да           |
    | `page`      | `int`                                                                                                                                                                                                                                                                                                                                               | да           |
    | `page_size` | `int`                                                                                                                                                                                                                                                                                                                                               | да           |
    | `total`     | `int`                                                                                                                                                                                                                                                                                                                                               | да           |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", page=123, page_size=123, search=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.list",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain=\"example.com\", page=123, page_size=123, search=\"<string>\", workspace_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.list\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.reveal_credentials`

```text theme={null}
mailboxes.reveal_credentials(account_id: str, mailbox: str) -> Mailbox
```

Почтовые ящики: `mailboxes.reveal_credentials`.

| Свойство              | Значение                                                                       | Свойство                 | Значение                    |
| --------------------- | ------------------------------------------------------------------------------ | ------------------------ | --------------------------- |
| Требуемое разрешение  | `mailbox.credential.reveal`                                                    | Требуется аутентификация | `да`                        |
| Режим выполнения      | `sync`                                                                         | Возможность              | `mailbox.credential.reveal` |
| Тип ресурса           | `account`                                                                      | Поле ID ресурса          | `account_id`                |
| Публичный маршрут API | `POST /v1/public/accounts/{account_id}/mailboxes/{mailbox}/reveal-credentials` |                          |                             |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип   | Обязательный |
    | ------------ | ----- | ------------ |
    | `account_id` | `str` | да           |
    | `mailbox`    | `str` | да           |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле       | Тип   | Обязательный |
    | ---------- | ----- | ------------ |
    | `password` | `str` | да           |
    | `username` | `str` | да           |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.reveal_credentials(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {
          "password": "<string>",
          "username": "<string>"
        }
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.reveal_credentials",
          "status": "completed",
          "result": {
            "password": "<string>",
            "username": "<string>"
          }
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.reveal_credentials(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": {\n      \"password\": \"<string>\",\n      \"username\": \"<string>\"\n    }\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.reveal_credentials\",\n      \"status\": \"completed\",\n      \"result\": {\n        \"password\": \"<string>\",\n        \"username\": \"<string>\"\n      }\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `mailboxes.update`

```text theme={null}
mailboxes.update(account_id: str, mailbox: str, first_name?: str | null, last_name?: str | null) -> Mailbox
```

Почтовые ящики: `mailboxes.update`.

| Свойство              | Значение                                                     | Свойство                 | Значение         |
| --------------------- | ------------------------------------------------------------ | ------------------------ | ---------------- |
| Требуемое разрешение  | `mailbox.update`                                             | Требуется аутентификация | `да`             |
| Режим выполнения      | `sync`                                                       | Возможность              | `mailbox.update` |
| Тип ресурса           | `account`                                                    | Поле ID ресурса          | `account_id`     |
| Публичный маршрут API | `PATCH /v1/public/accounts/{account_id}/mailboxes/{mailbox}` |                          |                  |

<AccordionGroup>
  <Accordion title="Аргументы">
    | Имя          | Тип           | Обязательный |
    | ------------ | ------------- | ------------ |
    | `account_id` | `str`         | да           |
    | `mailbox`    | `str`         | да           |
    | `first_name` | `str \| null` | нет          |
    | `last_name`  | `str \| null` | нет          |
  </Accordion>

  <Accordion title="Возвращает">
    | Поле             | Тип                                       | Обязательный |
    | ---------------- | ----------------------------------------- | ------------ |
    | `created_at`     | `str`                                     | да           |
    | `domain_id`      | `str`                                     | да           |
    | `domain_name`    | `str`                                     | да           |
    | `first_name`     | `str`                                     | да           |
    | `id`             | `str`                                     | да           |
    | `last_name`      | `str`                                     | да           |
    | `local_part`     | `str`                                     | да           |
    | `primary_email`  | `str`                                     | да           |
    | `quota`          | `{"allowed": int, "used": int}`           | да           |
    | `status`         | `str`                                     | да           |
    | `updated_at`     | `str`                                     | да           |
    | `aliases`        | `[{"alias": str, "is_catch_all"?: bool}]` | нет          |
    | `workspace_id`   | `str \| null`                             | нет          |
    | `workspace_name` | `str \| null`                             | нет          |
  </Accordion>

  <Accordion title="Пример A2A">
    Запрос:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "mailboxes.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\", first_name=\"<string>\", last_name=\"<string>\")"
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": 123
      },
      "responses": [
        {
          "index": 0,
          "function": "mailboxes.update",
          "status": "completed",
          "result": 123
        }
      ],
      "complexity_score": 1
    }
    ```
  </Accordion>

  <Accordion title="Пример MCP">
    Запрос:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "method": "tools/call",
      "params": {
        "name": "hybridbox_execute",
        "arguments": {
          "code": "mailboxes.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", mailbox=\"<string>\", first_name=\"<string>\", last_name=\"<string>\")"
        }
      }
    }
    ```

    Ответ:

    ```json theme={null}
    {
      "jsonrpc": "2.0",
      "id": "example",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\n  \"request_id\": \"example\",\n  \"status\": \"completed\",\n  \"result\": {\n    \"last_value\": 123\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"mailboxes.update\",\n      \"status\": \"completed\",\n      \"result\": 123\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
