# addTrackedHashtag

Mutation

Start tracking a hashtag in the current workspace; idempotent on a hashtag it already tracks. Hashtags only: add mentions with `addMentionSources`. Archive Radar is set up by Archive. Keywords are managed in the Archive app under Settings › Sources where available, otherwise by Archive. For either, contact your Archive account manager or support.

Available to agents as MCP tool `addTrackedHashtag` — see [Write tools](/api/v2/docs/mcp/write-tools#add-tracked-hashtag).

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `name` | `String!` | Yes | — | The hashtag, with or without the leading `#` (case-insensitive; stored lowercase). One hashtag per call: spaces, commas and link domains (`.`, `-`) are rejected. |
| `provider` | [`Provider!`](/api/v2/docs/types/provider) | Yes | — | Platform to track the hashtag on: INSTAGRAM or TIKTOK. Any other value is a userError. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `source` | [`Source`](/api/v2/docs/types/source) | The tracked hashtag source; null when userErrors is non-empty. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | Refusals: an unsupported provider, a malformed hashtag, or an Instagram hashtag over the post-count limit or unverifiable. Empty on success. |

## Examples

### Track a hashtag

Start collecting the posts that carry a TikTok hashtag in the current workspace.

```graphql
mutation AddTrackedHashtagDefault($name: String!, $provider: Provider!) {
  addTrackedHashtag(name: $name, provider: $provider) {
    source {
      id
      type
      provider
      name
      pulling
      detection
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "name": "#PlantCare",
  "provider": "TIKTOK"
}
```

Response — HTTP 200:

```json
{
  "data": {
    "addTrackedHashtag": {
      "source": {
        "id": "990200001",
        "type": "HASHTAG",
        "provider": "TIKTOK",
        "name": "plantcare",
        "pulling": true,
        "detection": true
      },
      "userErrors": []
    }
  }
}
```
