# Linksii

> Track how ChatGPT, Claude, Gemini and Perplexity talk about your brand, manage the prompts and competitors you track, and run audits and reports.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/linksii

## Actions

### Add competitor

Add a competitor whose AI visibility Linksii compares with yours.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace to add the competitor to.
- Name (`name`, text, required): The competitor's brand name.
- Domain (`domain`, text): The competitor's domain, such as salesforce.com.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "2024-01-22T11:00:00Z",
      "domain": "salesforce.com",
      "id": "9b2d4f6a-8c0e-4a1b-9c3d-5e7f9a1b3c5d",
      "logo_url": "https://www.linksii.com/logos/salesforce.png",
      "name": "Salesforce",
      "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}
```

### Analyze page or image

Have Linksii's AI review a web page or image for how it presents a brand, using a template.

**Inputs**

- Page (`url`, text): A web page to screenshot and analyse. Give a page or an image, not both.
- Image (`image_url`, text): A link straight to an image to analyse. Give a page or an image, not both.
- Template (`template`, text): Which analysis to run. Leave empty for General.
- Extra context (`context`, text): Anything else the analysis should know.
- Workspace (`workspace_id`, text): Link the result to this workspace.
- Start and check later (`async`, true/false): Turn on to get an analysis ID at once and fetch the result later with Get analysis. Linksii does this by itself for the AI readiness template.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "analysis_id": "8f0a2c4e-6b8d-4f1a-9c3e-5b7d9f1a3c5e",
    "meta": {
      "created_at": "2026-06-17T10:00:00Z",
      "daily_quota": {
        "limit": 500,
        "remaining": 488,
        "used": 12
      },
      "image_source": "https://yourcompany.com/pricing",
      "processing_time_ms": 8500
    },
    "model": "claude-sonnet-5-5",
    "result": {
      "overall_score": 72,
      "verdict": "Clear pricing with strong trust signals."
    },
    "status": "completed",
    "success": true,
    "template": "general"
  }
}
```

### Create analysis template

Save your own instructions for page and image analysis.

**Inputs**

- Name (`name`, text, required): The template's name.
- Short name (`slug`, text, required): A lowercase name with letters, digits and underscores, used to pick the template.
- Instructions (`system_prompt`, text, required): What the analysis should look at and report.
- Workspace (`workspace_id`, text): Only offer the template in this workspace. Leave empty for all of yours.

**Outputs**

- `data` (object): What Linksii sends back about the new template.

**Example output**

```json
{
  "data": {}
}
```

### Create PDF report

Ask the AI assistants one question about your brand and get a branded PDF report of how they answered.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace whose brand to report on.
- Prompt (`prompt_text`, text, required): The question to ask the AI assistants, up to 1,000 characters.
- AI assistants (`platforms`, list): Which AI assistants to ask. Leave empty for all four. One or more of: `chatgpt`, `claude`, `gemini`, `perplexity`.
- Country (`country`, text): The two-letter country code to ask from. Leave empty for US.
- Language (`language`, text): The language code to ask in, such as en. Leave empty for English.
- Brand name (`brand_name`, text): The brand to look for. Leave empty for the workspace's brand.
- Your company (`company_name`, text): The company name shown on the PDF.
- Accent colour (`brand_color`, text): The PDF's accent colour as a hex code, such as #2563eb.
- Logo (`logo_url`, text): A link to the logo to show on the PDF.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "analysis_id": "2b4d6f8a-0c2e-4a6b-8d0f-3a5c7e9b1d3f",
    "pdf": {
      "base64": "JVBERi0xLjQK",
      "content_type": "application/pdf",
      "filename": "linksii-analysis-2b4d6f8a.pdf",
      "generated_at": "2024-03-12T14:01:30Z",
      "url": "https://storage.linksii.com/reports/2b4d6f8a.pdf"
    },
    "results": [
      {
        "ai_platform": "chatgpt",
        "brand_mentioned": true
      }
    ],
    "success": true,
    "summary": {
      "avg_sentiment": 71.2,
      "avg_visibility_pct": 78.5,
      "brand_mentioned_count": 2,
      "brand_name": "Acme Corp",
      "brand_score": 74,
      "mention_rate_pct": 100,
      "platforms_analyzed": [
        "claude",
        "chatgpt"
      ],
      "total_results": 2
    }
  }
}
```

### Create prompt

Add a question for Linksii to ask the AI assistants about your category.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace to add the prompt to.
- Prompt (`prompt_text`, text, required): The question a buyer might ask an AI assistant, up to 1,000 characters.
- Buying stage (`category`, text): Where the question sits in the buying journey. Leave empty for General. One of: `awareness`, `consideration`, `decision`, `general`.
- Tags (`tags`, list): Tags to organise the prompt.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": {
      "category": "consideration",
      "created_at": "2024-01-20T09:00:00Z",
      "id": "3a9e1b2c-4d5f-4678-9a0b-1c2d3e4f5a6b",
      "is_active": true,
      "prompt_text": "What is the best CRM for small businesses?",
      "tags": [
        "crm",
        "smb"
      ],
      "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}
```

### Create webhook

Have Linksii send a web address an event each time a tracking run finishes.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace whose runs to report.
- Address (`url`, text, required): The https address to send events to.
- Events (`events`, list): Which events to send. Leave empty for tracking runs finishing. One or more of: `tracking.completed` (Tracking run finished).

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "2024-03-01T10:00:00Z",
      "enabled": true,
      "events": [
        "tracking.completed"
      ],
      "id": "4e6a8c0b-2d4f-4a6b-8c0d-1e3f5a7b9c0d",
      "secret": "a1b2c3d4e5f60718293a4b5c6d7e8f90",
      "url": "https://your-server.com/webhooks/linksii"
    }
  }
}
```

### Create workspace

Start tracking a new brand in its own workspace, such as for a prospect audit.

**Inputs**

- Brand name (`brand_name`, text, required): The brand to track.
- Domain (`domain`, text): The brand's domain, such as example.com.
- Description (`description`, text): A short description of the brand, used to suggest prompts and competitors.
- Location (`location`, text): Where the brand is, such as Belfast, UK.
- Country (`country`, text): The brand's two-letter country code, such as GB.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": {
      "brand_name": "Acme Corp",
      "country": "GB",
      "created_at": "2024-01-15T10:00:00Z",
      "description": "B2B SaaS for project management",
      "domain": "acme.com",
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "location": "Belfast, UK",
      "updated_at": "2024-03-01T08:30:00Z"
    }
  }
}
```

### Delete analysis template

Delete one of your own analysis templates.

**Inputs**

- Template (`id`, text, required): The template to delete. Pick one, or use an ID from List analysis templates.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete webhook

Stop sending a workspace's events to a web address.

**Inputs**

- Webhook (`id`, text, required): The webhook's ID, from List webhooks.
- Workspace (`workspace_id`, text, required): The workspace the webhook belongs to.

**Outputs**

- `data` (object): What Linksii sends back.

**Example output**

```json
{
  "data": {}
}
```

### Delete workspace

Delete a workspace you own, such as one made for a prospect audit.

**Inputs**

- Workspace (`id`, text, required): The workspace to delete. Pick one, or use an ID from List workspaces.

**Outputs**

- `data` (object): Linksii sends nothing back when it is deleted.

**Example output**

```json
{
  "data": {}
}
```

### Email PDF report

Make the same branded PDF report and email it to someone.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace whose brand to report on.
- Prompt (`prompt_text`, text, required): The question to ask the AI assistants, up to 1,000 characters.
- AI assistants (`platforms`, list): Which AI assistants to ask. Leave empty for all four. One or more of: `chatgpt`, `claude`, `gemini`, `perplexity`.
- Country (`country`, text): The two-letter country code to ask from. Leave empty for US.
- Language (`language`, text): The language code to ask in, such as en. Leave empty for English.
- Brand name (`brand_name`, text): The brand to look for. Leave empty for the workspace's brand.
- Your company (`company_name`, text): The company name shown on the PDF.
- Accent colour (`brand_color`, text): The PDF's accent colour as a hex code, such as #2563eb.
- Logo (`logo_url`, text): A link to the logo to show on the PDF.
- Send to (`recipient_email`, text, required): The email address to send the report to.
- Their name (`recipient_name`, text): The name to greet them by. Leave empty for there.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "analysis_id": "2b4d6f8a-0c2e-4a6b-8d0f-3a5c7e9b1d3f",
    "delivery": {
      "delivered_at": "2024-03-12T14:01:45Z",
      "email_sent": true,
      "pdf_url": "https://storage.linksii.com/reports/2b4d6f8a.pdf",
      "recipient_email": "client@example.com"
    },
    "results": [
      {
        "ai_platform": "chatgpt",
        "brand_mentioned": true
      }
    ],
    "success": true,
    "summary": {
      "avg_sentiment": 71.2,
      "avg_visibility_pct": 78.5,
      "brand_mentioned_count": 2,
      "brand_name": "Acme Corp",
      "brand_score": 74,
      "mention_rate_pct": 100,
      "platforms_analyzed": [
        "claude",
        "chatgpt"
      ],
      "total_results": 2
    }
  }
}
```

### Get analysis

Get an analysis's result, such as one you started to check later.

**Inputs**

- Analysis (`id`, text, required): The analysis ID from Analyze page or image.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "analysis_id": "8f0a2c4e-6b8d-4f1a-9c3e-5b7d9f1a3c5e",
    "meta": {
      "created_at": "2026-06-17T10:00:00Z",
      "daily_quota": {
        "limit": 500,
        "remaining": 488,
        "used": 12
      },
      "image_source": "https://yourcompany.com/pricing",
      "processing_time_ms": 8500
    },
    "model": "claude-sonnet-5-5",
    "result": {
      "overall_score": 72,
      "verdict": "Clear pricing with strong trust signals."
    },
    "status": "completed",
    "success": true,
    "template": "general"
  }
}
```

### Get audit

Get an earlier audit's findings again, with its PDF if you want it.

**Inputs**

- Audit (`id`, text, required): The audit ID from Run audit.
- Include PDF (`include_pdf`, true/false): Turn on to get the PDF report too.
- Include answers (`include_raw`, true/false): Turn on to get each prompt's raw results too.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "audit_id": "5c7e9a1b-3d5f-4b7c-9e1a-2c4e6a8b0d2f",
    "discovered_competitors": [
      {
        "domain": "cathedraldermatology.com",
        "mention_count": 7,
        "name": "Cathedral Dermatology",
        "rationale": "Directly listed as a Belfast dermatology competitor in 7 AI responses"
      }
    ],
    "findings": [
      {
        "headline": "Invisible in 78% of buyer queries",
        "id": "invisibility_gap",
        "narrative": "Across 15 prompts and 4 platforms...",
        "recommendations": [
          {
            "action": "Publish problem-framed content...",
            "effort": "medium",
            "expected_impact": "high",
            "priority": 1,
            "rationale": "AI platforms favour content that..."
          }
        ],
        "severity": "high"
      }
    ],
    "meta": {
      "completed_at": "2026-04-21T14:01:30Z",
      "duration_seconds": 90,
      "started_at": "2026-04-21T14:00:00Z"
    },
    "pdf": {
      "base64": "JVBERi0xLjQK",
      "content_type": "application/pdf",
      "filename": "audit-example-aesthetics-5c7e9a1b.pdf",
      "generated_at": "2026-04-21T14:01:30Z",
      "url": "https://storage.linksii.com/audits/5c7e9a1b.pdf"
    },
    "success": true,
    "summary": {
      "avg_brand_position": 4.7,
      "avg_sentiment": 65.4,
      "brand_mention_rate_pct": 22.0,
      "brand_name": "Example Aesthetics",
      "brand_score": 28,
      "brand_visibility_pct": 18.3,
      "competitors": [
        {
          "mention_rate_pct": 80.0,
          "name": "Competitor A",
          "visibility_pct": 64.2
        }
      ],
      "platforms_analyzed": [
        "claude",
        "chatgpt",
        "gemini",
        "perplexity"
      ],
      "prompts_analyzed": 15,
      "top_sources_cited": [
        {
          "citation_count": 24,
          "domain": "reddit.com",
          "pct_of_total": 18.2
        }
      ],
      "total_runs": 60
    },
    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

### List analysis templates

List Linksii's built-in analysis templates and your own.

**Inputs**

- Workspace (`workspace_id`, text): Also list the templates kept in this workspace.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "templates": [
      {
        "created_at": "2024-01-01T00:00:00Z",
        "id": "1c3e5a7b-9d0f-4b2c-8e4a-6f8b0d2e4a6c",
        "is_builtin": true,
        "name": "General Brand Analysis",
        "slug": "general",
        "system_prompt": "Analyse the brand presence in this image...",
        "updated_at": "2024-01-01T00:00:00Z",
        "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
      }
    ]
  }
}
```

### List competitors

List the competitors a workspace compares itself with.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace (brand) to use. Pick one, or use an ID from List workspaces.
- Page size (`limit`, number): How many competitors a page holds, up to 100. Linksii sends 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read later pages. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "2024-01-22T11:00:00Z",
        "domain": "salesforce.com",
        "id": "9b2d4f6a-8c0e-4a1b-9c3d-5e7f9a1b3c5d",
        "logo_url": "https://www.linksii.com/logos/salesforce.png",
        "name": "Salesforce",
        "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
      }
    ],
    "meta": {
      "limit": 20,
      "offset": 0,
      "total": 3
    }
  }
}
```

### List prompts

List the questions a workspace tracks across the AI assistants.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace (brand) to use. Pick one, or use an ID from List workspaces.
- Page size (`limit`, number): How many prompts a page holds, up to 100. Linksii sends 20 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read later pages. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "category": "consideration",
        "created_at": "2024-01-20T09:00:00Z",
        "id": "3a9e1b2c-4d5f-4678-9a0b-1c2d3e4f5a6b",
        "is_active": true,
        "prompt_text": "What is the best CRM for small businesses?",
        "tags": [
          "crm",
          "smb"
        ],
        "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
      }
    ],
    "meta": {
      "limit": 20,
      "offset": 0,
      "total": 3
    }
  }
}
```

### List tracking results

List how each AI assistant answered your tracked prompts over the last few days.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace (brand) to use. Pick one, or use an ID from List workspaces.
- AI assistant (`platform`, text): Only results from this AI assistant. Leave empty for all four. One of: `chatgpt`, `claude`, `gemini`, `perplexity`.
- Days back (`days`, number): How many days back to read, from 1 to 365. Linksii reads 7 when empty. From 1 to 365.
- Page size (`limit`, number): How many results a page holds, up to 100. Linksii sends 20 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read later pages. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "ai_platform": "chatgpt",
        "brand_appearance_count": 3,
        "brand_mentioned": true,
        "brand_ordinal_position": 2,
        "brand_position": 2,
        "brand_relative_position": 0.18,
        "brand_visibility_pct": 85.5,
        "competitor_mentions": [
          "Salesforce",
          "HubSpot"
        ],
        "country": "US",
        "id": "7d1f6c2a-9b3e-4a51-8c0d-2e4f6a8b0c1d",
        "mention_type": "direct",
        "prompt_id": "3a9e1b2c-4d5f-4678-9a0b-1c2d3e4f5a6b",
        "sentiment_label": "positive",
        "sentiment_score": 0.72,
        "sources_cited": [
          "https://techcrunch.com/2024/03/01/acme-raises/"
        ],
        "tracked_at": "2024-03-10T06:00:00Z",
        "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
      }
    ],
    "meta": {
      "days": 7,
      "limit": 20,
      "offset": 0,
      "total": 3
    }
  }
}
```

### List tracking results by date

List tracking results between two dates as flat rows with each prompt's text, ready for a spreadsheet.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace (brand) to use. Pick one, or use an ID from List workspaces.
- From (`start_date`, date): The first day to include. Leave empty to use Days back.
- To (`end_date`, date): The last day to include. Leave empty for today.
- Days back (`days`, number): How many days back to read when From is empty, from 1 to 365. Linksii reads 90 when empty. From 1 to 365.
- AI assistant (`platform`, text): Only results from this AI assistant. Leave empty for all four. One of: `chatgpt`, `claude`, `gemini`, `perplexity`.
- Page size (`limit`, number): How many rows a page holds, up to 500. Linksii sends 500 when empty. From 1 to 500.
- Skip (`offset`, number): How many to skip, to read later pages. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "ai_platform": "chatgpt",
        "brand_appearance_count": 3,
        "brand_mentioned": true,
        "brand_ordinal_position": 2,
        "brand_position": 2,
        "brand_relative_position": 0.18,
        "brand_visibility_pct": 85.5,
        "country": "US",
        "id": "7d1f6c2a-9b3e-4a51-8c0d-2e4f6a8b0c1d",
        "mention_type": "direct",
        "prompt_query": "What CRM do startups recommend?",
        "sentiment_label": "positive",
        "sentiment_score": 0.72,
        "tracked_at": "2024-03-10T06:00:00Z"
      }
    ],
    "meta": {
      "brand_name": "Acme Corp",
      "date_from": "2023-12-10T00:00:00Z",
      "date_to": "2024-03-10T00:00:00Z",
      "limit": 500,
      "offset": 0,
      "total": 1450,
      "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}
```

### List webhooks

List the web addresses a workspace sends events to.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace (brand) to use. Pick one, or use an ID from List workspaces.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "2024-03-01T10:00:00Z",
        "enabled": true,
        "events": [
          "tracking.completed"
        ],
        "id": "4e6a8c0b-2d4f-4a6b-8c0d-1e3f5a7b9c0d",
        "last_status_code": 200,
        "last_triggered_at": "2024-03-10T06:05:00Z",
        "url": "https://your-server.com/webhooks/linksii"
      }
    ]
  }
}
```

### List workspaces

List the workspaces (brands) your API key can see, with their IDs.

**Inputs**

- Page size (`limit`, number): How many workspaces a page holds, up to 100. Linksii sends 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read later pages. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "brand_name": "Acme Corp",
        "created_at": "2024-01-15T10:00:00Z",
        "description": "B2B SaaS for project management",
        "domain": "acme.com",
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "updated_at": "2024-03-01T08:30:00Z"
      }
    ],
    "meta": {
      "limit": 20,
      "offset": 0,
      "total": 3
    }
  }
}
```

### Run audit

Ask the AI assistants up to 20 prompts, compare your brand with competitors, and get findings with recommendations.

**Inputs**

- Workspace (`workspace_id`, text, required): The workspace to audit.
- Prompts (`prompts`, list, required): The questions to ask, up to 20.
- AI assistants (`platforms`, list): Which AI assistants to ask. Leave empty for all four. One or more of: `chatgpt`, `claude`, `gemini`, `perplexity`.
- Country (`country`, text): The two-letter country code to ask from. Leave empty for US.
- Language (`language`, text): The language code to ask in, such as en. Leave empty for English.
- Brand name (`brand_name`, text): The brand to look for. Leave empty for the workspace's brand.
- Suggest competitors (`auto_competitors`, true/false): Turn on to have Linksii pick five competitors for you first.
- Find competitors in answers (`auto_discover_competitors`, true/false): Turn on to list the brands the answers named most.
- Include PDF (`include_pdf`, true/false): Turn off to skip the PDF report. It is included when empty.
- Your company (`company_name`, text): The company name shown on the PDF.
- Accent colour (`brand_color`, text): The PDF's accent colour as a hex code, such as #2563eb.
- Logo (`logo_url`, text): A link to the logo to show on the PDF.
- Report title (`report_title`, text): The PDF's title.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "audit_id": "5c7e9a1b-3d5f-4b7c-9e1a-2c4e6a8b0d2f",
    "discovered_competitors": [
      {
        "domain": "cathedraldermatology.com",
        "mention_count": 7,
        "name": "Cathedral Dermatology",
        "rationale": "Directly listed as a Belfast dermatology competitor in 7 AI responses"
      }
    ],
    "findings": [
      {
        "headline": "Invisible in 78% of buyer queries",
        "id": "invisibility_gap",
        "narrative": "Across 15 prompts and 4 platforms...",
        "recommendations": [
          {
            "action": "Publish problem-framed content...",
            "effort": "medium",
            "expected_impact": "high",
            "priority": 1,
            "rationale": "AI platforms favour content that..."
          }
        ],
        "severity": "high"
      }
    ],
    "meta": {
      "completed_at": "2026-04-21T14:01:30Z",
      "duration_seconds": 90,
      "started_at": "2026-04-21T14:00:00Z"
    },
    "pdf": {
      "base64": "JVBERi0xLjQK",
      "content_type": "application/pdf",
      "filename": "audit-example-aesthetics-5c7e9a1b.pdf",
      "generated_at": "2026-04-21T14:01:30Z",
      "url": "https://storage.linksii.com/audits/5c7e9a1b.pdf"
    },
    "success": true,
    "summary": {
      "avg_brand_position": 4.7,
      "avg_sentiment": 65.4,
      "brand_mention_rate_pct": 22.0,
      "brand_name": "Example Aesthetics",
      "brand_score": 28,
      "brand_visibility_pct": 18.3,
      "competitors": [
        {
          "mention_rate_pct": 80.0,
          "name": "Competitor A",
          "visibility_pct": 64.2
        }
      ],
      "platforms_analyzed": [
        "claude",
        "chatgpt",
        "gemini",
        "perplexity"
      ],
      "prompts_analyzed": 15,
      "top_sources_cited": [
        {
          "citation_count": 24,
          "domain": "reddit.com",
          "pct_of_total": 18.2
        }
      ],
      "total_runs": 60
    },
    "workspace_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

### Suggest prompts and competitors

Get suggested prompts to track and likely competitors for a brand, from its website.

**Inputs**

- Domain (`domain`, text, required): The brand's domain, such as example.com.
- Brand name (`brand_name`, text): The brand's name. Leave empty to take it from its website.
- Country (`country`, text): The two-letter country code to suggest competitors for. Leave empty for US.
- Prompts (`prompt_count`, number): How many prompts to suggest, from 5 to 25. Linksii suggests 12 when empty. From 5 to 25.
- Competitors (`competitor_count`, number): How many competitors to suggest, from 1 to 10. Linksii suggests 5 when empty. From 1 to 10.

**Outputs**

- `data` (object): The response from Linksii.

**Example output**

```json
{
  "data": {
    "brand_name": "Example Aesthetics",
    "competitors": [
      {
        "domain": "competitorclinic.com",
        "name": "Competitor Clinic",
        "rationale": "Geographic and treatment-mix overlap"
      }
    ],
    "country": "GB",
    "description": "Premium aesthetic clinic in London...",
    "domain": "exampleclinic.com",
    "prompts": [
      {
        "category": "consideration",
        "prompt_text": "What are the best aesthetic clinics in London for lip filler?",
        "rationale": "High-intent treatment query in primary market",
        "tags": [
          "aesthetic",
          "filler",
          "london"
        ]
      }
    ],
    "success": true
  }
}
```

### Update analysis template

Change one of your own analysis templates.

**Inputs**

- Template (`id`, text, required): The template to change. Pick one, or use an ID from List analysis templates.
- Name (`name`, text): A new name. Leave empty to keep it.
- Short name (`slug`, text): A new short name, lowercase with letters, digits and underscores. Leave empty to keep it.
- Instructions (`system_prompt`, text): New instructions. Leave empty to keep them.

**Outputs**

- `data` (object): What Linksii sends back about the template.

**Example output**

```json
{
  "data": {}
}
```
