# addMentionSources

Mutation

Start tracking Instagram or TikTok @-mentions for up to 50 handles with no connected account, each with its own outcome; idempotent on a handle already tracked. A mention of a connected account is managed in the Archive app by connecting or disconnecting the account. Priced per handle.

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

## Arguments

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `handles` | `[String!]!` | Yes | — | Handles, with or without the leading `@`, or profile URLs; at least 1 and at most 50. Each is added independently of the others. An empty list or more than that refuses the whole request. |
| `provider` | [`Provider!`](/api/v2/docs/types/provider) | Yes | — | Platform of the handles: INSTAGRAM or TIKTOK. Any other value is a userError. |

## Returns

| Name | Type | Description |
| --- | --- | --- |
| `results` | [`[AddMentionSourceResult!]!`](/api/v2/docs/types/add-mention-source-result) | One result per handle, in the order sent. Empty when userErrors is non-empty. |
| `userErrors` | [`[UserError!]!`](/api/v2/docs/types/user-error) | Errors that refused the whole request: an unsupported provider, an empty or oversized list, or a call costing more than the workspace's rate-limit capacity. Empty when the request was accepted; per-handle refusals are reported in `results`. |

## Examples

### Track mentions

Track Instagram accounts that are not connected to the workspace; each handle reports its own outcome.

```graphql
mutation AddMentionSourcesDefault($provider: Provider!, $handles: [String!]!) {
  addMentionSources(provider: $provider, handles: $handles) {
    results {
      handle
      refusal
      source {
        id
        type
        provider
        name
        pulling
        detection
      }
    }
    userErrors {
      field
      message
    }
  }
}
```

Variables:

```json
{
  "provider": "INSTAGRAM",
  "handles": [
    "@northwindbotanicals",
    "northwind botanicals"
  ]
}
```

Response — HTTP 200:

```json
{
  "data": {
    "addMentionSources": {
      "results": [
        {
          "handle": "@northwindbotanicals",
          "refusal": null,
          "source": {
            "id": "990200002",
            "type": "MENTION",
            "provider": "INSTAGRAM",
            "name": "northwindbotanicals",
            "pulling": true,
            "detection": true
          }
        },
        {
          "handle": "northwind botanicals",
          "refusal": "INVALID_HANDLE",
          "source": null
        }
      ],
      "userErrors": []
    }
  }
}
```
