# API reference

Base URL `https://app.vozradar.com/rest/v1`. Parameters, request bodies and response shapes are in the [OpenAPI 3.1 spec](https://app.vozradar.com/rest/v1/openapi.json); the conventions are in the [REST API guide](/en/developers/api).

## Account

- `GET /me`: Who is calling: the API key, its owner, workspace and plan
- `GET /usage`: Rate-limit window, answer credits and tracked questions

## Ads

- `GET /projects/{projectId}/ads`: ChatGPT sponsored ads seen in one market

## Answers

- `GET /projects/{projectId}/answers/{answerId}`: Get one answer with citations and brand mentions
- `GET /projects/{projectId}/answers`: List stored AI answers, newest first

## Citations

- `GET /projects/{projectId}/citations/community`: Reddit, YouTube and forum threads AI answers cite
- `GET /projects/{projectId}/citations/domains`: Cited domains with source and content types
- `GET /projects/{projectId}/citations/pages`: Cited pages with positions
- `GET /projects/{projectId}/citations/trends`: Citation lifecycle of every cited page
- `GET /projects/{projectId}/outreach`: Pages that name competitors but not you

## Competitors

- `DELETE /projects/{projectId}/competitors/{competitorId}/aliases/{aliasId}`: Remove an alias
- `GET /projects/{projectId}/competitors/{competitorId}/diagnosis`: Why a competitor is named more often than you
- `GET /projects/{projectId}/competitors`: List competitors with their aliases
- `PATCH /projects/{projectId}/competitors/{competitorId}`: Track or untrack a competitor, or set its domain
- `POST /projects/{projectId}/competitors/{competitorId}/aliases`: Add an alias to a competitor
- `POST /projects/{projectId}/competitors/{competitorId}/merge`: Merge a competitor into another (recounts answers)
- `POST /projects/{projectId}/competitors`: Add a competitor

## Drafts

- `GET /projects/{projectId}/drafts/allowance`: On-demand drafts used and left this month
- `GET /projects/{projectId}/drafts/week`: This week's batch of weekly drafts, and whether write-now is open
- `GET /projects/{projectId}/drafts/{draftId}`: Get one draft with its text
- `GET /projects/{projectId}/drafts`: List page drafts, optionally by status (PROPOSED waits for review) and origin
- `POST /projects/{projectId}/drafts/refresh`: Refresh an existing page of your site: reads it and proposes changes block by block (billed as one on-demand draft; 202 with the draft and the job to poll). Accepting changes and publishing stay in the app
- `POST /projects/{projectId}/drafts/write-now`: Write this week's drafts now, past a pause (billed like the weekly run)
- `POST /projects/{projectId}/drafts/{draftId}/approve`: Approve a weekly draft that waits for review
- `POST /projects/{projectId}/drafts/{draftId}/decline`: Decline a weekly draft that waits for review, with a reason
- `POST /projects/{projectId}/drafts/{draftId}/published`: Report a draft as published at a URL
- `POST /projects/{projectId}/drafts`: Write a new draft now from a topic or tracked questions (billed; 202 with the draft and the job to poll)

## Fixes, experiments, pages and watches

- `DELETE /projects/{projectId}/pages/{pageId}`: Stop tracking a page
- `DELETE /projects/{projectId}/watches/{watchId}`: Delete a watch
- `GET /projects/{projectId}/experiments/{experimentId}`: Get one experiment with its measured result
- `GET /projects/{projectId}/experiments`: The experiment ledger
- `GET /projects/{projectId}/fixes/{fixId}`: Get one fix with its evidence
- `GET /projects/{projectId}/fixes`: The fixes board
- `GET /projects/{projectId}/pages/{pageId}`: Proof for one tracked page
- `GET /projects/{projectId}/pages`: Tracked pages with citation trends
- `GET /projects/{projectId}/watches`: List watches
- `PATCH /projects/{projectId}/fixes/{fixId}`: Move a fix, assign it or dismiss it
- `POST /projects/{projectId}/experiments`: Log an experiment
- `POST /projects/{projectId}/pages`: Track a page
- `POST /projects/{projectId}/watches`: Create a watch (notifies only on a credible change)

## Insights

- `GET /projects/{projectId}/ai-referrals`: Visits from AI assistants (Google Analytics or PostHog)
- `GET /projects/{projectId}/ai-searches`: The searches AI assistants ran while answering
- `GET /projects/{projectId}/crawler-activity`: Stored AI crawler activity, fake hits excluded
- `GET /projects/{projectId}/explain`: Why did a rate or the AI visits change?
- `GET /projects/{projectId}/sentiment`: How answers describe your brand
- `GET /projects/{projectId}/timeline`: Events to explain changes: fixes, experiments, question changes
- `GET /projects/{projectId}/topics`: Visibility by topic

## Knowledge

- `DELETE /projects/{projectId}/knowledge/{id}`: Delete a knowledge item; approved facts from it stay and are marked source removed
- `GET /projects/{projectId}/knowledge`: List knowledge items (text, pages and files AI drafts can use)
- `POST /projects/{projectId}/knowledge`: Add a text or web page item (kind TEXT with title and body, or URL with url)

## Personas

- `GET /projects/{projectId}/personas`: List the personas of one market

## Projects and markets

- `GET /projects/{projectId}/markets`: List a project's markets
- `GET /projects/{projectId}`: Get one project
- `GET /projects`: List the projects this key can see
- `POST /projects/{projectId}/markets/{marketId}/pause`: Pause a market (stops tracking runs)
- `POST /projects/{projectId}/markets/{marketId}/resume`: Resume a paused market

## public-community-draft-controller

- `POST /projects/{projectId}/fixes/{fixId}/community-draft`: Draft a community reply or creator pitch (paid; confirm_cost required)

## Questions

- `GET /projects/{projectId}/questions/{questionId}`: Get one question
- `GET /projects/{projectId}/questions`: List questions in one market
- `PATCH /projects/{projectId}/questions/{questionId}`: Edit a question's text, topic, tags, type or buying stage
- `POST /projects/{projectId}/questions/bulk`: Add up to 100 questions
- `POST /projects/{projectId}/questions/{questionId}/track`: Track a question on every run
- `POST /projects/{projectId}/questions/{questionId}/untrack`: Stop tracking a question
- `POST /projects/{projectId}/questions`: Add a question

## Repeated questions

- `DELETE /projects/{projectId}/analyst-repeats/{repeatId}`: Delete a repeated question and keep its past conversations
- `GET /projects/{projectId}/analyst-repeats`: List repeated questions and their last ten runs
- `PATCH /projects/{projectId}/analyst-repeats/{repeatId}`: Replace the editable repeat configuration
- `POST /projects/{projectId}/analyst-repeats/{repeatId}/pause`: Pause a repeated question
- `POST /projects/{projectId}/analyst-repeats/{repeatId}/resume`: Resume a repeated question within the plan limit
- `POST /projects/{projectId}/analyst-repeats/{repeatId}/run`: Run a repeated question now
- `POST /projects/{projectId}/analyst-repeats/{repeatId}/take-over`: Take over a repeated question and its conversations
- `POST /projects/{projectId}/analyst-repeats`: Save a repeated analyst question

## Runs

- `GET /projects/{projectId}/runs/{runId}`: Get one run and its progress
- `GET /projects/{projectId}/runs`: List recent runs
- `POST /projects/{projectId}/runs`: Start a run (spends answer credits)

## Site

- `GET /projects/{projectId}/content-gaps`: List content gaps in one market
- `GET /projects/{projectId}/readiness`: AI readiness score for one market

## Visibility

- `GET /projects/{projectId}/brand-ranking`: Brand ranking with share of voice
- `GET /projects/{projectId}/heatmap`: Two-axis heatmap (brands, engines, topics, markets)
- `GET /projects/{projectId}/series`: Daily rates for one market grouped by engine, topic or question type
- `GET /projects/{projectId}/visibility/questions/{questionId}`: Visibility rates for one question
- `GET /projects/{projectId}/visibility/series`: Visibility over time, per day and engine
- `GET /projects/{projectId}/visibility`: Named, recommended, cited and named-first rates with 95% intervals

## Webhooks

- `DELETE /projects/{projectId}/webhooks/{webhookId}`: Delete a webhook
- `GET /projects/{projectId}/webhooks`: List webhooks
- `PATCH /projects/{projectId}/webhooks/{webhookId}`: Change a webhook's events or turn it on/off
- `POST /projects/{projectId}/webhooks/{webhookId}/rotate-secret`: Rotate a webhook's signing secret
- `POST /projects/{projectId}/webhooks/{webhookId}/test`: Send a test delivery
- `POST /projects/{projectId}/webhooks`: Create a signed webhook (returns its secret once)
