# Manage Tags

Add or remove tags from your chatlogs to improve organization, searchability, and filtering capabilities.

## Add Tags to Chatlog

Add custom tags to a specific chatlog for better categorization and filtering.

### Endpoint

```
POST https://app.wonderchat.io/api/v1/add-tags-to-chatlog
```

### Request Parameters

| Parameter   | Type   | Required | Description                          |
| ----------- | ------ | -------- | ------------------------------------ |
| `apiKey`    | string | ✅ Yes    | Your API key                         |
| `chatlogId` | string | ✅ Yes    | The ID of the chatlog to add tags to |
| `tags`      | array  | ✅ Yes    | Array of tag strings to add          |

### Example Request

```bash
curl --location --request POST 'https://app.wonderchat.io/api/v1/add-tags-to-chatlog' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiKey": "YOUR_API_KEY",
  "chatlogId": "YOUR_CHATLOG_ID",
  "tags": ["Support", "Billing", "Priority"]
}'
```

## Delete Tags from Chatlog

Remove specific tags from a chatlog.

### Endpoint

```
POST https://app.wonderchat.io/api/v1/delete-tags-from-chatlog
```

### Request Parameters

| Parameter   | Type   | Required | Description                               |
| ----------- | ------ | -------- | ----------------------------------------- |
| `apiKey`    | string | ✅ Yes    | Your API key                              |
| `chatlogId` | string | ✅ Yes    | The ID of the chatlog to remove tags from |
| `tags`      | array  | ✅ Yes    | Array of tag strings to remove            |

### Example Request

```bash
curl --location --request POST 'https://app.wonderchat.io/api/v1/delete-tags-from-chatlog' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiKey": "YOUR_API_KEY",
  "chatlogId": "YOUR_CHATLOG_ID",
  "tags": ["Resolved", "Outdated"]
}'
```

## Tag Best Practices

### Recommended Tag Categories

* **Department**: `Sales`, `Support`, `Billing`, `Technical`
* **Priority**: `High`, `Medium`, `Low`, `Urgent`
* **Status**: `Open`, `Resolved`, `Pending`, `Escalated`
* **Topic**: `Product Info`, `Pricing`, `Integration`, `Bug Report`
* **Customer Type**: `New`, `Existing`, `Enterprise`, `Trial`
