> ## 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.

# 태그

> 리소스 태그와 태그 할당을 관리합니다.

# 태그

리소스 태그와 태그 할당을 관리합니다.

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

예시는 A2A 코드 모드를 사용합니다. MCP는 `execute` 도구를 통해 동일한 코드 모드를 노출합니다.

## 함수

### `tags.add`

```text theme={null}
tags.add(account_id: str, tag_name: str, color_hex?: str, description?: str | null) -> Tag
```

태그: `tags.add`.

| 속성        | 값                                            | 속성        | 값            |
| --------- | -------------------------------------------- | --------- | ------------ |
| 필요 권한     | `tag.manage`                                 | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                       | 기능 권한     | `tag.manage` |
| 리소스 유형    | `account`                                    | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `POST /v1/public/accounts/{account_id}/tags` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름            | 유형            | 필수  |
    | ------------- | ------------- | --- |
    | `account_id`  | `str`         | 예   |
    | `tag_name`    | `str`         | 예   |
    | `color_hex`   | `str`         | 아니요 |
    | `description` | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="반환값">
    | 필드            | 유형            | 필수  |
    | ------------- | ------------- | --- |
    | `color_hex`   | `str`         | 예   |
    | `id`          | `str`         | 예   |
    | `name`        | `str`         | 예   |
    | `created_at`  | `str \| null` | 아니요 |
    | `description` | `str \| null` | 아니요 |
    | `updated_at`  | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

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

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.add",
          "status": "completed",
          "result": "<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": "tags.add(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_name=\"<string>\", color_hex=\"<string>\", description=\"<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\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"tags.add\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `tags.delete`

```text theme={null}
tags.delete(account_id: str, tag_id: str) -> {}
```

태그: `tags.delete`.

| 속성        | 값                                                       | 속성        | 값            |
| --------- | ------------------------------------------------------- | --------- | ------------ |
| 필요 권한     | `tag.manage`                                            | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                                  | 기능 권한     | `tag.manage` |
| 리소스 유형    | `account`                                               | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `DELETE /v1/public/accounts/{account_id}/tags/{tag_id}` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형    | 필수 |
    | ------------ | ----- | -- |
    | `account_id` | `str` | 예  |
    | `tag_id`     | `str` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드       | 유형   | 필수 |
    | -------- | ---- | -- |
    | `result` | `{}` | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "tags.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.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": "tags.delete(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_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\": {}\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"tags.delete\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `tags.domains.assign`

```text theme={null}
tags.domains.assign(account_id: str, tag_id: str, domain_ids: [str]) -> Tag
```

태그: `tags.domains.assign`.

| 속성        | 값                                                                    | 속성        | 값            |
| --------- | -------------------------------------------------------------------- | --------- | ------------ |
| 필요 권한     | `tag.manage`                                                         | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                                               | 기능 권한     | `tag.manage` |
| 리소스 유형    | `account`                                                            | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `POST /v1/public/accounts/{account_id}/tags/{tag_id}/domains/assign` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형      | 필수 |
    | ------------ | ------- | -- |
    | `account_id` | `str`   | 예  |
    | `tag_id`     | `str`   | 예  |
    | `domain_ids` | `[str]` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드           | 유형      | 필수 |
    | ------------ | ------- | -- |
    | `domain_ids` | `[str]` | 예  |
    | `tag_id`     | `str`   | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "tags.domains.assign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {
          "domain_ids": [
            "<string>"
          ],
          "tag_id": "<string>"
        }
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.domains.assign",
          "status": "completed",
          "result": {
            "domain_ids": [
              "<string>"
            ],
            "tag_id": "<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": "tags.domains.assign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
        }
      }
    }
    ```

    응답:

    ```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      \"domain_ids\": [\n        \"<string>\"\n      ],\n      \"tag_id\": \"<string>\"\n    }\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"tags.domains.assign\",\n      \"status\": \"completed\",\n      \"result\": {\n        \"domain_ids\": [\n          \"<string>\"\n        ],\n        \"tag_id\": \"<string>\"\n      }\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `tags.domains.unassign`

```text theme={null}
tags.domains.unassign(account_id: str, tag_id: str, domain_ids: [str]) -> {}
```

태그: `tags.domains.unassign`.

| 속성        | 값                                                                      | 속성        | 값            |
| --------- | ---------------------------------------------------------------------- | --------- | ------------ |
| 필요 권한     | `tag.manage`                                                           | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                                                 | 기능 권한     | `tag.manage` |
| 리소스 유형    | `account`                                                              | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `POST /v1/public/accounts/{account_id}/tags/{tag_id}/domains/unassign` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형      | 필수 |
    | ------------ | ------- | -- |
    | `account_id` | `str`   | 예  |
    | `tag_id`     | `str`   | 예  |
    | `domain_ids` | `[str]` | 예  |
  </Accordion>

  <Accordion title="반환값">
    | 필드       | 유형   | 필수 |
    | -------- | ---- | -- |
    | `result` | `{}` | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "tags.domains.unassign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": {}
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.domains.unassign",
          "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": "tags.domains.unassign(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", domain_ids=\"example.com\")"
        }
      }
    }
    ```

    응답:

    ```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\": \"tags.domains.unassign\",\n      \"status\": \"completed\",\n      \"result\": {}\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `tags.list`

```text theme={null}
tags.list(account_id: str, page?: int, page_size?: int) -> Page[Tag]
```

태그: `tags.list`.

| 속성        | 값                                           | 속성        | 값            |
| --------- | ------------------------------------------- | --------- | ------------ |
| 필요 권한     | `tag.view`                                  | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                      | 기능 권한     | `tag.view`   |
| 리소스 유형    | `account`                                   | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `GET /v1/public/accounts/{account_id}/tags` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름           | 유형    | 필수  |
    | ------------ | ----- | --- |
    | `account_id` | `str` | 예   |
    | `page`       | `int` | 아니요 |
    | `page_size`  | `int` | 아니요 |
  </Accordion>

  <Accordion title="반환값">
    | 필드          | 유형                                                                                                                                  | 필수 |
    | ----------- | ----------------------------------------------------------------------------------------------------------------------------------- | -- |
    | `items`     | `[{"color_hex": str, "id": str, "name": str, "created_at"?: str \| null, "description"?: str \| null, "updated_at"?: str \| null}]` | 예  |
    | `page`      | `int`                                                                                                                               | 예  |
    | `page_size` | `int`                                                                                                                               | 예  |
    | `total`     | `int`                                                                                                                               | 예  |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "tags.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.list",
          "status": "completed",
          "result": "<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": "tags.list(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", page=123, page_size=123)"
        }
      }
    }
    ```

    응답:

    ```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\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"tags.list\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>

### `tags.update`

```text theme={null}
tags.update(account_id: str, tag_id: str, color_hex?: str | null, description?: str | null, tag_name?: str | null) -> Tag
```

태그: `tags.update`.

| 속성        | 값                                                      | 속성        | 값            |
| --------- | ------------------------------------------------------ | --------- | ------------ |
| 필요 권한     | `tag.manage`                                           | 인증 필요     | `예`          |
| 실행 모드     | `sync`                                                 | 기능 권한     | `tag.manage` |
| 리소스 유형    | `account`                                              | 리소스 ID 필드 | `account_id` |
| 공개 API 경로 | `PATCH /v1/public/accounts/{account_id}/tags/{tag_id}` |           |              |

<AccordionGroup>
  <Accordion title="인수">
    | 이름            | 유형            | 필수  |
    | ------------- | ------------- | --- |
    | `account_id`  | `str`         | 예   |
    | `tag_id`      | `str`         | 예   |
    | `color_hex`   | `str \| null` | 아니요 |
    | `description` | `str \| null` | 아니요 |
    | `tag_name`    | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="반환값">
    | 필드            | 유형            | 필수  |
    | ------------- | ------------- | --- |
    | `color_hex`   | `str`         | 예   |
    | `id`          | `str`         | 예   |
    | `name`        | `str`         | 예   |
    | `created_at`  | `str \| null` | 아니요 |
    | `description` | `str \| null` | 아니요 |
    | `updated_at`  | `str \| null` | 아니요 |
  </Accordion>

  <Accordion title="A2A 예시">
    요청:

    ```json theme={null}
    {
      "request_id": "example",
      "session_id": "session_123",
      "code": "tags.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", color_hex=\"<string>\", description=\"<string>\", tag_name=\"<string>\")"
    }
    ```

    응답:

    ```json theme={null}
    {
      "request_id": "example",
      "status": "completed",
      "result": {
        "last_value": "<string>"
      },
      "responses": [
        {
          "index": 0,
          "function": "tags.update",
          "status": "completed",
          "result": "<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": "tags.update(account_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", tag_id=\"3c90c3cc-0d44-4b50-8888-8dd25736052a\", color_hex=\"<string>\", description=\"<string>\", tag_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\": \"<string>\"\n  },\n  \"responses\": [\n    {\n      \"index\": 0,\n      \"function\": \"tags.update\",\n      \"status\": \"completed\",\n      \"result\": \"<string>\"\n    }\n  ],\n  \"complexity_score\": 1\n}"
          }
        ],
        "isError": false
      }
    }
    ```
  </Accordion>
</AccordionGroup>
