API DocumentationAPI Reference

API Reference

Index of every endpoint in the AIclicks API v1.

All endpoints are under /api/v1/. They return the standard envelope. Click an endpoint to see its parameters, response and examples.

GET endpoints read data. POST endpoints change your account. Each POST endpoint needs a team member on a Pro+ plan.

Account

EndpointPurpose
GET /validateChecks that a key works. Shows its scope: teams, allowed domains and rate limit.
GET /team-usageShows the plan of a team and its usage: prompt credits, domains, models and competitor slots.

Domains

EndpointPurpose
POST /domainsMakes a new brand with its prompts. The analysis starts immediately.
GET /domainsLists the domains that the key can access. Returns the domain_id values for the other endpoints.
GET /domain-statusShows the analysis progress of a domain. Use it to know when a new domain has data.

Prompts

EndpointPurpose
POST /promptsAdds one prompt.
POST /prompts/bulkAdds up to 100 prompts. Topics and tags are given by name.
POST /prompts/updateChanges the text, topics or tags of a prompt.
POST /prompts/archiveStops tracking up to 100 prompts. Each archived prompt gives back one credit.
GET /promptsLists the tracked prompts of a domain.
GET /topicsLists the topics of a domain.
POST /topicsMakes a topic.
POST /prompts/topicsReplaces the topics of one prompt.
GET /tagsLists the tags of a domain.
POST /tagsMakes a tag.
POST /prompts/tagsAdds or removes tags on up to 100 prompts.

Prompt Analytics

EndpointPurpose
GET /answersThe AI answers for one prompt, with the answer text, brand position, competitors and cited URLs.
GET /prompt-metricsEach prompt with its metrics for the period. You can sort, filter and paginate it.
GET /prompt-statistics-time-seriesTop prompts with a daily series of mentions, responses, citations and position.
GET /prompt-brandsEach tracked brand for one prompt. Shows which brand wins the prompt.
GET /topic-metricsOne scorecard for each topic.
GET /tag-metricsOne scorecard for each tag.
GET /fanout-queriesThe search queries that the AI engines ran to answer each prompt.

Competitor

EndpointValuePurpose
GET /brand-rankingslistShare-of-voice ranking of the brand and its tracked competitors.
GET /competitor-time-serieslistDaily visibility, share of voice and position for each competitor and the brand.
GET /competitorslistThe competitors of a domain.
POST /competitorsobjectStarts to track one competitor.
POST /competitors/bulkobjectTracks up to 50 competitors from a list or from discovery.
POST /competitors/updateobjectRenames, pauses, resumes or moves a competitor.
GET /competitor-discoverylistBrands in your answers that you do not track yet.

Brand Analytics

EndpointValuePurpose
GET /mentions-time-seriesintDaily number of brand mentions.
GET /visibility-time-series%Daily share of AI answers that mention the brand.
GET /model-leaderboardlistVisibility and average position for each AI channel.

Citations

EndpointValuePurpose
GET /citations-time-seriesintDaily number of citations to the brand domain.
GET /citability-time-series%Daily share of all citations that go to the brand domain.
GET /citationslistEach cited URL, with frequency, mentions, prompts and models.
GET /citation-domainslistEach cited host, with its owner: own, competitor or third party.
GET /competitor-citationslistCitations and citation share for the brand and each tracked competitor.
GET /citation-sharelistCitation share of each brand inside each topic or tag.

Sentiment Analysis

These endpoints show how AI answers describe the brand. All accept an optional model filter.

EndpointValuePurpose
GET /sentiment/overview%Positive and negative split for the period, and total mentions.
GET /sentiment/themeslistThe themes in AI answers, each positive or negative.
GET /sentiment/time-series%Daily positive percentage.
GET /sentiment/theme-sourceslistThe URLs that AI answers cite for these themes.
GET /sentiment/answerslistThe AI answers behind one theme, with the quoted text and cited URLs.

Engage

EndpointValuePurpose
GET /engage-recommendationslistCommunity threads and posts that AI answers cite. You can reply to them.

AI Traffic (GA4)

These endpoints show the site traffic that AI assistants send. The data comes from the GA4 property of the domain. All accept an optional llm_source filter. If the domain has no GA4 connection, they return empty data, not an error.

EndpointValuePurpose
GET /ga4/summaryobjectTotal sessions, users and pageviews from AI, and the previous period.
GET /ga4/timelinelistDaily sessions from AI, divided by LLM source.
GET /ga4/by-llmobjectThe totals for each LLM source, and the previous period.
GET /ga4/key-eventsobjectConversions from AI traffic: total, for each LLM, and top events.
GET /ga4/key-events-timelinelistDaily conversions from AI traffic, divided by event and LLM source.
GET /ga4/top-pageslistPages sorted by sessions from AI.
GET /ga4/top-locationslistSessions from AI for each country.
GET /ga4/deviceslistSessions from AI for each device category.
GET /ga4/top-browserslistSessions from AI for each browser (top 10).

ChatGPT Ads

EndpointValuePurpose
GET /ads/kpisobjectMain ad metrics, with the change against the previous period.
GET /ads/leaderboardlistBrands that advertise on ChatGPT for your prompts.
GET /ads/timelinelistDaily ad activity.
GET /ads/promptslistTracked prompts that show ads.
GET /ads/cardslistEach ad card, with its creative and advertiser.

Required parameters

Most endpoints need ?domain_id=<uuid> as a query parameter. If you do not have a domain ID, call GET /domains first.

/validate has no query parameters. /team-usage needs team_id.

Common response shape

All endpoints use the same envelope (data, generated_at, and the request parameters). They also use the same rate-limit and cache headers. See Overview and Rate Limits.