Mutation
addMentionSources
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.
Arguments
Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.
- handles [String!]! required
- 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! required
- Platform of the handles: INSTAGRAM or TIKTOK. Any other value is a userError.
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
Returns
- results [AddMentionSourceResult!]!
- One result per handle, in the order sent. Empty when userErrors is non-empty.
- handle String!
- The handle exactly as it was sent.
- refusal AddMentionSourceRefusal
- Why the handle was not added; null when added.
- ACCOUNT_TOO_LARGE
- The Instagram account is tagged more often per day than the workspace may track without connecting it.
- CHECK_UNAVAILABLE
- Archive could not check the account right now; retry later.
- CONFLICT
- The account is being connected in this workspace right now; retry.
- HAS_INTEGRATION
- The account has a connection in this workspace, connected or disconnected; it is managed in the Archive app.
- INVALID_HANDLE
- Not a valid handle or profile URL for the platform.
- NOT_FOUND
- No account with this handle exists on the platform.
- PRIVATE_ACCOUNT
- The account is private.
- source Source
- The tracked mention source, newly added or switched back on; null when refused.
- createdAt DateTime!
- When the workspace started tracking this source.
- detection Boolean!
- True while posts Archive collects are matched to this source.
- id ID!
- Unique identifier of the source; pass it to
ItemFilterInput.sourcesIds, or a hashtag's or unconnected mention's toremoveTrackedSource. - name String!
- The tracked hashtag (without
#), handle (without@) or keyword phrase. - provider Provider!
- Platform the source collects from.
- Instagram platform integration, including posts, reels, stories, and profile data.
- INTERNAL
- Internal Archive-managed source used for synthetic or system-generated content.
- TIKTOK
- TikTok platform integration, including videos and creator profile data.
- YOUTUBE
- YouTube platform integration, including Shorts, videos, thumbnails, and profile data.
- pulling Boolean!
- True while Archive actively fetches new posts for this source from the platform.
- type SourceType!
- What the source tracks: a hashtag, an @-mention or a keyword.
- HASHTAG
- A hashtag: posts that carry it are collected.
- KEYWORD
- A keyword phrase searched for on the platform (currently YouTube).
- MENTION
- An @-handle: posts that mention or tag it are collected.
- userErrors [UserError!]!
- 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. - field [String!]
- Path to the input field that caused the error.
- message String!
- The error message.