> ## Documentation Index
> Fetch the complete documentation index at: https://creatorinsights.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n & HTTP Integrations

# n8n & HTTP Integrations

Use an n8n HTTP Request node with Header Auth named `x-api-key`. Store the Creator Insights key in n8n credentials, not inside workflow JSON.

Every public tool is available at:

`POST https://api.creatorinsights.in/api/v1/tools/TOOL_NAME`

Send tool arguments directly as the JSON body, without a `tool` or `arguments` wrapper. JSON-tool responses include `status`, `tool`, `credits_deducted`, and `data`.

## Popular video workflow

Use `find_popular_videos` rather than raw platform search tools.

### Planned request

```json theme={null}
{
  "workspace": "WORKSPACE_ID",
  "requirement": "Founder-led B2B SaaS product demos",
  "platforms": ["instagram", "youtube"],
  "max_credits": 4
}
```

### Direct request

```json theme={null}
{
  "workspace": "WORKSPACE_ID",
  "direct_keyword": "b2b-saas",
  "platforms": ["instagram"]
}
```

Use direct mode only with one platform. For pagination, pass the returned `cursor` with the same workspace and compatible search context. Merge and deduplicate new results; do not replace results already returned for other platforms. Preserve `failedPlatforms`, recommendations, `filterSummary`, and actual credits charged.

## Competitor-tracking workflow

Use these tool endpoints in separate HTTP nodes:

* `get_tracked_competitors`
* `add_tracked_competitor`
* `update_competitor_tracking`
* `remove_tracked_competitor`
* `list_competitor_reports`
* `get_competitor_report`

Use one explicit workspace ID throughout the flow. Save the returned tracker `_id` and pass it as `tracking_id` for updates, removal, and report filters. Add supports intervals of 1, 3, 7, 15, 20, 25, or 30 days and tracking windows of 30, 60, or 90 days. Report list and report detail are separate calls.

## Billing and error branches

Check the selected workspace limit with `get_workspace_credit_usage` before paid requests. Set that limit in Dashboard → Plans → Usage; an unset workspace budget leaves only the organization balance as a ceiling. Successful non-empty Popular source calls cost one credit; empty and failed calls cost zero. `max_credits` is a strict per-call ceiling from 1 to 50, defaulting to 10 for planned searches. Instagram plus YouTube requires at least 4.

Use the HTTP node error branch for non-2xx responses. Do not assume every error is JSON. Preserve successful platform data during partial failures. Retry only transient reads with bounded backoff and never log API keys or private connection metadata.

## MCP versus HTTP

MCP clients call `tools/call` and parse JSON text inside `result.content`. n8n HTTP workflows should use the JSON-tool endpoint above unless the workflow includes a complete MCP client. Do not send REST envelopes to the MCP URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.