API Route Inventory
Every public REST endpoint, generated from the running route table and annotated with auth and scope.
Generated from createApp() — the same route table the API server runs. Internal platform/admin/webhook endpoints are excluded.
Base URL: https://app.aieo.ee/api · Auth: Authorization: Bearer aieo_... (API key) or the dashboard session cookie.
Mutating calls (POST/PATCH/DELETE) with an API key require the write scope; read-only keys get 403. API keys always act on their own organization; the x-org-id header is a session-auth feature for dashboard users with multiple memberships and does not switch an API key's org.
Hand-written request/response examples for core workflows will be added in the next documentation phase; this inventory is the complete, generated surface.
AI Visibility (GEO)
| Method | Path | Auth | Description |
|---|---|---|---|
DELETE | /api/projects/:projectId/geo/prompts/:promptId | session or API key | Delete a tracked prompt. |
GET | /api/projects/:projectId/geo/citations | session or API key | Which domains AI engines cite for the tracked prompts. Optional ?access=scraped|api limits the figures to one access group (the groups are never pooled); omitted means both. |
GET | /api/projects/:projectId/geo/engines | session or API key | Per-engine visibility breakdown (finished runs of the current method only; legacy sampled runs are excluded). |
GET | /api/projects/:projectId/geo/executions/active | session or API key | GEO runs still on their way: queued, waiting for the DeepSeek off-peak window, sending, collecting. |
GET | /api/projects/:projectId/geo/export.csv | session or API key | Finished GEO answers with their mentions as CSV (?days=, default 90, at most 5,000 rows, answers cut at 8,000 characters). Spreadsheet formulas in answers are neutralized. 6 an hour. |
GET | /api/projects/:projectId/geo/fact-checks | session or API key | Recent fact checks of the project and the corrections they show: for each prompt, engine and fact, the first answer that contradicted it and the first later answer that no longer did (an observed interval, not proof of cause). |
GET | /api/projects/:projectId/geo/prompts | session or API key | Tracked prompt list with per-prompt stats. |
GET | /api/projects/:projectId/geo/runs | session or API key | GEO run history (per prompt×engine×day). |
GET | /api/projects/:projectId/geo/runs/:runId | session or API key | One GEO run detail: raw answer, mentions, citations. |
GET | /api/projects/:projectId/geo/runs/:runId/fact-check | session or API key | The stored fact checks of one answer, newest first, and whether the confirmed facts changed since (current marks the check that matches them). |
GET | /api/projects/:projectId/geo/series | session or API key | Daily visibility time series for charts. Optional ?access=scraped|api limits the figures to one access group (the groups are never pooled); omitted means both. |
GET | /api/projects/:projectId/geo/sov | session or API key | Share of voice by brand across AI answers. Optional ?access=scraped|api limits the figures to one access group (the groups are never pooled); omitted means both. |
GET | /api/projects/:projectId/geo/summary | session or API key | AI visibility summary: mention rate, citation rate over a lookback window (?days). The headline comes from one access group (scoreAccess): mention and source rates average prompt and engine pairs, groups lists both with 95% ranges, insufficient is true under 30 pairs, brandedPrompts counts prompts that name the brand (shown, not counted). |
PATCH | /api/projects/:projectId/geo/prompts/:promptId | session or API key | Update a prompt (text, engines, active). A new text on a prompt with answers creates the next version (versioned: true, the response is that version) and retires this one; 409 prompt_retired for a retired prompt. |
POST | /api/projects/:projectId/geo/prompts | session or API key | Create a tracked prompt (text, category, engines). GEO runs only when started. Optional kind (tracked or control) and targetUrl (a page on the project's site). A prompt that names the brand is marked brandInText and left out of every rate. |
POST | /api/projects/:projectId/geo/prompts/:promptId/run | session or API key | Run one prompt on its engines as one run request. Requires idempotencyKey and the priceVersion from a preview. Accepts samples (1–10) like run-requests. |
POST | /api/projects/:projectId/geo/run-all | session or API key | Run every active prompt on its engines as one run request (at most 50 runs). Requires idempotencyKey and the priceVersion from the preview; optional DeepSeek policy. |
POST | /api/projects/:projectId/geo/run-all/preview | session or API key | About and at-most price of running every active prompt, with the priceVersion to confirm. |
POST | /api/projects/:projectId/geo/run-requests | session or API key | Create a GEO run request: items (≤ 50, each promptId, engine, optional policy) with an idempotencyKey. Accepted as a whole (every run's maximum held in one transaction) or rejected; same key + same items replays. A new request must send the priceVersion from its preview (400 when missing, 409 price_changed when stale). Each item may carry samples (1–10): that many separate paid runs of the prompt on the engine, each stored as its own sample. |
POST | /api/projects/:projectId/geo/run-requests/preview | session or API key | Price a selection before running it: typical and maximum usage units (1 unit = $0.0001) and engines without a verified price. No hold, no vendor call. samples multiplies runs and the typical cost. |
POST | /api/projects/:projectId/geo/runs/:runId/fact-check | session or API key | Paid (geo.fact_check): a model compares one finished answer with the confirmed brand facts; each finding quotes the answer. One check per answer and set of facts: the same pair replays with 200 and is never charged twice. 402 without subscription or balance, 409 no_facts or no_answer, 429 over the daily limit. |
SEO Intelligence
| Method | Path | Auth | Description |
|---|---|---|---|
DELETE | /api/projects/:projectId/seo/keywords/:keywordId | session or API key | Remove a tracked keyword. |
GET | /api/projects/:projectId/seo/backlink-gap | session or API key | Backlinks competitors have and the project lacks. |
GET | /api/projects/:projectId/seo/backlinks | session or API key | Backlink profile summary and top links. |
GET | /api/projects/:projectId/seo/competitor-discovery | session or API key | Discover competitors sharing SERPs from stored snapshots (overlap score). |
GET | /api/projects/:projectId/seo/competitor-discovery/:domain/keywords | session or API key | Co-occurrence keyword drill-down for one discovered competitor. |
GET | /api/projects/:projectId/seo/competitors | session or API key | Competitor matrix: overlap and position comparison. |
GET | /api/projects/:projectId/seo/competitors/missing | session or API key | Keywords competitors rank for and the project does not (?brandId). |
GET | /api/projects/:projectId/seo/distribution | session or API key | Cumulative position buckets (top3, top10, top20, top100). |
GET | /api/projects/:projectId/seo/domain-overview | session or API key | Aggregated view of the project's tracked keywords: rank summary, estimated traffic, top pages, SERP features, stored backlinks, competitor matrix. |
GET | /api/projects/:projectId/seo/intersection | session or API key | Keywords all selected competitors (2-4) hold top-20 for in the last 10 days, with each competitor's position. |
GET | /api/projects/:projectId/seo/keyword-gap | session or API key | Keyword gap vs selected competitors. |
GET | /api/projects/:projectId/seo/keywords | session or API key | Tracked keyword table with country, device, positions, volume, difficulty, intent. With include=gsc each row adds gsc: the word's site-wide GSC clicks, impressions, CTR and impression-weighted position over the last 28 covered days (null when GSC is not connected; compare only when gsc.state is ok; truncatedDays > 0 makes the numbers a lower bound). |
GET | /api/projects/:projectId/seo/serp | session or API key | Live SERP lookup for one keyword (calls the provider on demand). |
GET | /api/projects/:projectId/seo/serp-features | session or API key | SERP feature stats over the last 7 days (demo-mode heuristic flags only; real feature detection not wired in). |
GET | /api/projects/:projectId/seo/summary | session or API key | SEO headline metrics (avg position, tracked keywords, estimated traffic). |
POST | /api/projects/:projectId/competitors | session or API key | Add a competitor brand/domain to the project. |
POST | /api/projects/:projectId/seo/keywords | session or API key | Add tracked keywords (plan-limited). |
POST | /api/projects/:projectId/seo/refresh | session or API key | Queue a rank-check refresh for the project. |
POST | /api/projects/:projectId/seo/research | session or API key | Keyword research for a seed term (DataForSEO when configured). |
Search Console & Integrations
| Method | Path | Auth | Description |
|---|---|---|---|
DELETE | /api/projects/:projectId/integrations/bing | session, org owner/admin only | Disconnect Bing Webmaster. Synced Bing search data is deleted; AI Performance imports are kept. |
DELETE | /api/projects/:projectId/integrations/bing-ai/imports/:importId | session cookie | Delete one import (admin, or the member who uploaded it). |
DELETE | /api/projects/:projectId/integrations/gsc | session, org owner/admin only | Disconnect GSC. Stored data is kept; reconnecting the same site reuses it, a different site replaces it. |
GET | /api/projects/:projectId/integrations/bing | session or API key | Bing Webmaster connection status for the project: site, per-step sync state, pending site pick. |
GET | /api/projects/:projectId/integrations/bing-ai/compare | session or API key | Compare two imports a (before) and b (after) when canCompare allows. Overview: totals. Queries: aligned by query text with common/one-sided counts, paged; flagged when a period is estimated or the spans differ. Topics are never compared. |
GET | /api/projects/:projectId/integrations/bing-ai/imports | session or API key | List the project's AI Performance imports (no rows), the latest import per kind and the reminder switch. |
GET | /api/projects/:projectId/integrations/bing-ai/imports/:importId | session or API key | One import, by kind. Overview: daily citations and cited pages, totals, 28-day comparison, zero run, read-time differences. Queries: import-wide summary plus the first page of rows (search is refused here — use POST …/rows). Topics: all rows. |
GET | /api/projects/:projectId/integrations/bing-ai/imports/:importId/file | session or API key | The original export file of one import, as uploaded (attachment, never cached). Imports from before files were kept return 404. |
GET | /api/projects/:projectId/integrations/bing/crawl-stats | session or API key | Bing's daily crawl counters (pages crawled, in index, inbound links, status-code counts) for the newest days=7..180 it served. |
GET | /api/projects/:projectId/integrations/gsc | session or API key | GSC connection status for the project. |
GET | /api/projects/:projectId/search-analytics/insights | session or API key | GSC insights: type=striking|cannibalization|ctr|decay|brand, days=28|90. Returns a state; rows only when the period's imported data is complete. Read-only: state brand_recomputing asks the caller to POST insights/brand-recompute. Striking rows carry tracked: every tracked keyword the query matches with its latest position. |
GET | /api/projects/:projectId/search-analytics/rows | session or API key | GSC row detail by query or page dimension, aggregated over the window (impressions-weighted CTR/position); returns the period and any missing days. Query rows list every tracked keyword they match (tracked: country, device, latest position), matched on lower(trim()) only; trackedKeyword is deprecated (its bestPosition now holds the first match's latest position). |
GET | /api/projects/:projectId/search-analytics/summary | session or API key | Google Search Console summary (clicks, impressions, CTR, position) over a window that ends on the newest imported day; returns the period and any missing days. |
PATCH | /api/projects/:projectId/integrations/bing | session, org owner/admin only | Switch the connected Bing site among the account's verified sites; the previous site's synced data is removed. 409 if the connection changed meanwhile. |
PATCH | /api/projects/:projectId/integrations/bing-ai/settings | session cookie | Switch the stale-import reminder on or off (owner/admin). |
PATCH | /api/projects/:projectId/integrations/gsc | session, org owner/admin only | Switch the connected GSC site; the previous site's stored data is removed and a fresh 90-day history import starts. |
POST | /api/projects/:projectId/integrations/bing-ai/imports | session cookie | Upload Bing AI Performance CSV exports (multipart files[] + meta): the overview, grounding queries or topic portfolio. Queries and topics need the range chosen in Bing per file (meta.periods / meta.period). Per-file results, host check by file name with a signed confirmation, 30 files per project per UTC day. |
POST | /api/projects/:projectId/integrations/bing-ai/imports/:importId/rows | session or API key | One page of grounding queries for an import. The search term goes in the JSON body (search, limit ≤ 200, offset, sort) so it never lands in URL access logs; the import-wide summary is not affected by the search. |
POST | /api/projects/:projectId/integrations/bing/auth-url | session, org owner/admin only | Start Bing Webmaster OAuth (one-time state URL, webmaster.read). Refused for impersonated sessions. |
POST | /api/projects/:projectId/integrations/bing/confirm | session, org owner/admin only | Confirm the Bing site after OAuth when no verified site matched the project domain. |
POST | /api/projects/:projectId/integrations/bing/sync | session or API key | Trigger a Bing sync of everything Bing currently serves; returns mode=busy while a sync runs. |
POST | /api/projects/:projectId/integrations/gsc/auth-url | session, org owner/admin only | Start GSC OAuth (one-time state URL). |
POST | /api/projects/:projectId/integrations/gsc/backfill/retry | session, org owner/admin only | Restart a GSC history import that stopped after repeated failures. |
POST | /api/projects/:projectId/integrations/gsc/confirm | session, org owner/admin only | Confirm site selection after OAuth (pending_token flow). |
POST | /api/projects/:projectId/integrations/gsc/sync | session or API key | Trigger a GSC sync of the last 16 days (re-pulls the latest 4, fills missing days); returns mode=busy while an import runs. |
POST | /api/projects/:projectId/search-analytics/insights/brand-recompute | session or API key | Queue the brand-query cache recompute for the project (one job at a time). Needs write scope with an API key. |
Content Gaps & Briefs
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/projects/:projectId/content/briefs | session or API key | List generated content briefs. |
GET | /api/projects/:projectId/content/briefs/:briefId | session or API key | One content brief (outline, entities, FAQ). |
GET | /api/projects/:projectId/content/gaps | session or API key | Content gaps: keywords competitors rank top-10 for and the project does not. |
POST | /api/projects/:projectId/content/gaps/:gapId/brief | session or API key | Generate a content brief for a gap (metered: holds its maximum, settles at actual token cost). |
POST | /api/projects/:projectId/content/recompute-gaps | session or API key | Recompute content gaps from current rankings. |
Technical Audit
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/projects/:projectId/audit/latest | session or API key | Latest audit run with paged issues and pages (issuesLimit/issuesOffset, pagesLimit/pagesOffset up to 500, severity filter), whole-run issuesTotal, pagesTotal and severityCounts, the robots.txt view per crawler and the diff against the previous run. |
PATCH | /api/projects/:projectId/audit-settings | session, org owner/admin only | Site audit cadence of a project: auditCadence weekly (everyone, up to 30 pages) or daily (subscribed organizations, up to 200 pages). 402 subscription_required for daily without a subscription (org admins). |
POST | /api/projects/:projectId/audit | session or API key | Queue a technical SEO site audit (crawler, maxPages). |
Growth Agent & Recommendations
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/projects/:projectId/agent/conversations | session or API key | List Growth Agent conversations. |
GET | /api/projects/:projectId/agent/conversations/:conversationId/messages | session or API key | Messages of one conversation. |
GET | /api/projects/:projectId/recommendations | session or API key | Prioritized growth recommendations for the project. |
GET | /api/projects/:projectId/recommendations/:recId/controls | session or API key | A finished page task compared with similar unchanged pages: the treated page's GSC change minus the median change of matched controls, with a 90% permutation interval. Final answers are stored once and never recomputed. |
GET | /api/projects/:projectId/recommendations/:recId/review | session or API key | Before/after for a page task: the Google after-window and the audit recheck. |
PATCH | /api/projects/:projectId/recommendations/:recId | session or API key | Update recommendation status (done/dismissed). |
POST | /api/agent/:projectId/mcp | public | Read-only agent endpoint (closed beta), JSON-RPC 2.0 with a Bearer token created by the project owner: initialize, tools/list and tools/call for get_brand_facts and get_products (cursor paging, 50 per page, 100 KB per response). Limits: 30 calls a minute per token, 1,000 a day per organization, 1,000 a month per project. Only call metadata and a response hash are kept. |
POST | /api/projects/:projectId/agent/analyze | session or API key | Run the full diagnostic analysis (metered at actual token cost; requestKey makes a retry harmless). |
POST | /api/projects/:projectId/agent/chat | session or API key | Send a message to the Growth Agent (metered at actual token cost). |
POST | /api/projects/:projectId/agent/conversations | session or API key | Create a Growth Agent conversation. |
Organization, Keys & Billing
| Method | Path | Auth | Description |
|---|---|---|---|
DELETE | /api/org/keys/:keyId | session, org owner/admin only | Revoke an API key — owner/admin only. |
GET | /api/org | session or API key | Active organization profile: plan, eligibility, usage balance by source, usage packs, member count. |
GET | /api/org/billing/checkout-status | session, org owner/admin only | Return-page poll: whether a checkout slot's payment has landed in our records. |
GET | /api/org/billing/invoices | session, org owner/admin only | Payments with Dodo's invoice link, newest first. |
GET | /api/org/invitations | session, org owner/admin only | List pending member invitations — owner/admin only. |
GET | /api/org/keys | session or API key | List the org's API keys (masked). |
GET | /api/org/usage | session or API key | Activity counts of the last 30 days by kind (not money — see the balance on GET /api/org). |
PATCH | /api/org | session, org owner/admin only | Update organization settings (name etc.) — owner/admin sessions only. |
POST | /api/org/billing/cancel | session, org owner/admin only | Cancel the subscription at the end of the billing period (with a churn-reason survey). |
POST | /api/org/billing/checkout | session, org owner/admin only | Open a Dodo hosted checkout for the $10 monthly plan (tax extra); requires the start-immediately consent. |
POST | /api/org/billing/portal | session, org owner/admin only | Open the Dodo customer portal (payment method, invoices, tax details). |
POST | /api/org/billing/resume | session, org owner/admin only | Resume a pending cancellation. |
POST | /api/org/billing/topup | session, org owner/admin only | Usage-pack checkout: quantity 1–50 packs of $10 (tax extra), valid 365 days from payment (subscribers only); requires the start-immediately consent. |
POST | /api/org/keys | session, org owner/admin only | Create an API key (optional read+write scope) — owner/admin only. |
POST | /api/org/leave | session cookie | Leave the organization (refuses last owner). |
POST | /api/org/transfer-ownership | session, org owner/admin only | Transfer org ownership atomically (org lock + role swap). |
Projects & Overview
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/projects | session or API key | List projects (websites) in the active org. |
GET | /api/projects/:projectId/overview | session or API key | Dashboard overview: Growth Score inputs, trend highlights. |
GET | /api/projects/:projectId/overview/report | session or API key | White-label HTML growth report for the project. |
POST | /api/projects | session or API key | Create a project (domain, name) — plan-limited. |
Account & Notifications
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /api/account/export | session cookie | Export the account's personal data (GDPR-style JSON export). |
GET | /api/account/preferences | session cookie | Read the account preferences: locale and the weekly-digest opt-out. |
GET | /api/notifications | session only (no API keys) | List in-app notifications for the current user (API keys rejected). |
GET | /api/notifications/unread-count | session only (no API keys) | Unread notification count. |
PATCH | /api/account/preferences | session cookie | Update account preferences: locale ('en' | 'zh', drives UI and transactional mail language) and/or digestOptOut (weekly growth digest opt-out). |
POST | /api/account/delete | session cookie | Delete the account (cancels the Dodo subscription of sole-owned orgs first, cascades their data; 409 when blocked by shared orgs, 502 when Dodo cannot confirm the cancellation). |
POST | /api/notifications/mark-read | session only (no API keys) | Mark notifications read (by ids or all). |
Free Tools
| Method | Path | Auth | Description |
|---|---|---|---|
POST | /api/tools/robots | session or API key | Free tool: fetch and parse a site's robots.txt. |
POST | /api/tools/schema | session or API key | Free tool: extract structured data (schema.org) from a URL. |
POST | /api/tools/serp | session or API key | Free tool: live SERP check for a query (DataForSEO or mock pool). |
POST | /api/tools/sitemap | session or API key | Free tool: fetch and summarize a site's sitemap. |
Meta
| Method | Path | Auth | Description |
|---|---|---|---|
DELETE | /api/projects/:projectId/agent-mcp/token | session or API key | Turn the read-only agent endpoint off for the project (revokes its token). |
DELETE | /api/projects/:projectId/ai-traffic/data | session or API key | Erase every collected AI-referral visit of the project and replace the public key. |
DELETE | /api/projects/:projectId/page-changes/:changeId | session or API key | Delete a change entered by hand. Observed and task changes cannot be deleted. |
DELETE | /api/projects/:projectId/products/:id | session or API key | Delete a product. |
DELETE | /api/projects/:projectId/products/feeds/:id | session or API key | Revoke a hosted feed. |
GET | /api/collect/ai.js | public | The small script a site embeds to count visits that arrive from AI products. No cookie, no storage; Do Not Track and Global Privacy Control are respected. |
GET | /api/projects/:projectId/agent-mcp | session or API key | Whether the agent endpoint beta is open, the active token's prefix, this month's calls and the limit, and the endpoint address. |
GET | /api/projects/:projectId/ai-readiness/latest | session or API key | Latest AI readiness check and the latest finished report (scores, verdicts, fix steps). |
GET | /api/projects/:projectId/ai-readiness/runs | session or API key | AI readiness history, newest first (cursor pagination; score deltas only within one caliber). |
GET | /api/projects/:projectId/ai-readiness/runs/:runId | session or API key | One AI readiness check with its report, or report=pruned after retention. |
GET | /api/projects/:projectId/ai-traffic | session or API key | AI-referral collection settings: whether the feature is available, whether it is on, and the script tag to paste. |
GET | /api/projects/:projectId/ai-traffic/logs | session or API key | The last ten uploaded access-log summaries. |
GET | /api/projects/:projectId/ai-traffic/logs/:uploadId | session or API key | Crawlers in one upload, verified or only claimed, with hits, refusals (401, 403, 429) and top paths. |
GET | /api/projects/:projectId/ai-traffic/report | session or API key | Visits from AI products by source and landing path over ?days= (default 28). A floor, not a total; groups under 5 visits are merged into (other); page changes and answers that cited the site are returned beside it. |
GET | /api/projects/:projectId/brand-facts | session or API key | Brand facts with their current confirmed value, open proposals and confirmed history. |
GET | /api/projects/:projectId/brand-facts/alias-suggestions | session or API key | Near-spellings of the tracked brand seen in at least two stored GEO answers of the last 90 days, excluding known aliases, competitor names and dismissed spellings. |
GET | /api/projects/:projectId/brand-facts/checks | session or API key | Latest consistency (structured data and copyright line against confirmed facts), disambiguation and sameAs profile results. |
GET | /api/projects/:projectId/brand-facts/jsonld | session or API key | Organization JSON-LD built from the confirmed organization facts, with a ready-to-paste script tag; sameAs profiles found missing are left out. |
GET | /api/projects/:projectId/indexnow | session or API key | IndexNow state: a key per host (the domain and its www twin), verification, unsubmitted changed URLs per host, the auto switch, the last 20 submissions and the limits. |
GET | /api/projects/:projectId/page-changes | session or API key | Page change log, newest first: changes observed by audits (content hash differs between two audits) and changes declared by users. Keyset paginated with before. |
GET | /api/projects/:projectId/page-priorities | session or API key | Priority pages: Google decay merged by URL key, filtered by the newest finished audit. Page-level AI rules are reported unavailable. |
GET | /api/projects/:projectId/page-suggestions | session or API key | Stored page suggestions, newest first (20), optionally for one urlKey. |
GET | /api/projects/:projectId/products | session or API key | The product catalog with each product's field problems, the plan's product and feed limits, and the countries with feed rules (?q=, ?limit=, ?offset=). |
GET | /api/projects/:projectId/products/commerce-readiness | session or API key | Static hints for agent checkout: offer, return policy, shipping and deep-link checks per product (pass, missing or manual) and whether robots.txt blocks cart and checkout paths. Reads robots.txt once (counted against the audit's request budget); 10 an hour. |
GET | /api/projects/:projectId/products/compare | session or API key | The catalog's price and availability against what the last audit saw in each product page's structured data. |
GET | /api/projects/:projectId/products/feed-draft | session or API key | The feed draft for download (?format=tsv|xml, ?country=). Products with a required problem are left out; the counts are in X-Feed-Included and X-Feed-Skipped. A draft in the shape of Google's Merchant feed, not a promise of acceptance. |
GET | /api/projects/:projectId/products/feeds | session or API key | Hosted feeds with their expiry, last fetch and fetch count. The token and its hash are never returned. |
GET | /api/projects/:projectId/site-files | session or API key | Generated files with their verification state (content is not listed). |
GET | /api/projects/:projectId/site-files/content | session or API key | The stored text of a file, for preview (query path). |
GET | /api/projects/:projectId/site-files/download | session or API key | Download a stored file as an attachment (query path). |
GET | /api/projects/:projectId/site-files/markdown | session or API key | One page of the project's own site as clean Markdown (query url). Not stored. 10 an hour per user. |
GET | /api/projects/:projectId/structured-data | session or API key | Types found and findings across the last audit's pages; pages from before signals version 2 are counted as not checked. |
GET | /feeds/:file | public | A hosted feed at /feeds/<token>.tsv or .xml. The token is the credential: unknown, revoked and expired tokens are all 404; 30 fetches a minute per token; private, no-store, no-referrer and noindex. |
GET | /health | public | Liveness probe: service name and the AI engine IDs currently configured. |
PATCH | /api/projects/:projectId/brand-facts/:factId | session or API key | Retire or restore a fact, or mark its name as easy to confuse (ambiguous). |
PATCH | /api/projects/:projectId/indexnow/settings | session or API key | Switch the daily automatic IndexNow submit on or off (off by default). |
PATCH | /api/projects/:projectId/page-suggestions/:suggestionId | session or API key | Mark a suggestion new, applied or dismissed; applied also records a declared page change (suggestion_applied). |
PATCH | /api/projects/:projectId/rank-settings | session, org owner/admin only | Automatic rank checks of a project: rankCadence daily|weekly|off and rankDepth 10|20|50|100 (org admins). |
POST | /api/collect/:key | public | Collection endpoint used by the script. Always answers 204. It records a source name, a landing path and a count, only when the Origin is the project's site and the visitor is certainly outside the EU, EEA, UK and Switzerland. Off unless the platform enables it. |
POST | /api/projects/:projectId/agent-mcp/token | session or API key | Create a token for the read-only agent endpoint; an earlier token stops working. The token is in this response only. 409 while the beta is closed. |
POST | /api/projects/:projectId/ai-readiness/runs | session or API key | Start a free AI readiness check of the project's primary domain (reuses a live check or one finished in the last 10 minutes; 20 per organization per UTC day). |
POST | /api/projects/:projectId/ai-traffic/logs | session or API key | Upload an access log (combined format, plain or gzip, up to 20 MB compressed, 100 MB and 200,000 lines read). Only a summary of AI and search crawler hits is kept; addresses are used to verify Googlebot, Bingbot, Applebot and Baiduspider by reverse DNS and are not stored. 5 uploads a day per user. |
POST | /api/projects/:projectId/brand-facts | session or API key | Set a brand fact by hand (category, key, value; optional sourceUrl and effectiveFrom). Creates a confirmed version; a retired fact comes back. |
POST | /api/projects/:projectId/brand-facts/alias-suggestions | session or API key | Accept a spelling (added to the tracked brand's aliases) or dismiss it. Body: spelling, action. |
POST | /api/projects/:projectId/brand-facts/extract | session or API key | Free: propose facts from the latest site audit's stored pages (Organization and Product JSON-LD, the homepage copyright line, tel: and mailto: links). 409 without a finished audit. |
POST | /api/projects/:projectId/brand-facts/extract-ai | session or API key | Paid (brand.extract): a model reads the homepage and up to four about or contact pages and proposes facts, each citing its page. Body: requestKey; the same key never charges again. 402 without subscription or balance, 422 when no page could be read (never charged), 429 over the daily limit. |
POST | /api/projects/:projectId/brand-facts/sameas-check | session or API key | Fetch each confirmed sameAs profile once (allowlisted https hosts only, counted against the audit's daily request budget) and store verified, not_found or unverified. |
POST | /api/projects/:projectId/brand-facts/versions/:versionId/confirm | session or API key | Confirm a proposed value: it becomes the fact's current version. |
POST | /api/projects/:projectId/brand-facts/versions/:versionId/dismiss | session or API key | Dismiss a proposed value; the same value is not proposed again. |
POST | /api/projects/:projectId/indexnow/keys | session or API key | Create (or replace) the IndexNow key for one host of the project; a new key clears the verification. |
POST | /api/projects/:projectId/indexnow/keys/:host/verify | session or API key | Fetch the key file on that exact host: 2xx only, redirects only to the same host and path, the body must be the key. |
POST | /api/projects/:projectId/indexnow/submit | session or API key | Submit one host's unsubmitted page changes (made after verification), or the URLs given, to IndexNow. Free; at most 10 submissions and 5,000 URLs per project a day. |
POST | /api/projects/:projectId/page-changes | session or API key | Declare a page change by hand: a URL on the project site and a day within the last 400 days. The same page and day returns the existing entry. |
POST | /api/projects/:projectId/page-priorities/tasks | session or API key | Add a priority page as a task; the server freezes the baseline. One unfinished task per page. |
POST | /api/projects/:projectId/page-suggestions | session or API key | Paid (page.suggest): AI edit suggestions for one page of the project, from its own text and search data. Body: urlKey and requestKey; the same requestKey returns the stored result without charging again. 402 without subscription or balance, 422 when robots.txt, the host or the content type refuses the page (never charged), 429 over the daily limit. |
POST | /api/projects/:projectId/products | session or API key | Add or replace one product (the same id and country replaces). 409 limit over the plan's product limit. |
POST | /api/projects/:projectId/products/feeds | session or API key | Create a hosted feed. The address, which carries the token, is in this response only. 409 feed_limit over the plan's feed limit. |
POST | /api/projects/:projectId/products/feeds/:id/rotate | session or API key | Replace a feed's token; the old address stops working and the expiry restarts. |
POST | /api/projects/:projectId/products/import-audit | session or API key | Add products that the last audit found declared in pages' structured data; pages already in the catalog are kept. |
POST | /api/projects/:projectId/products/import-csv | session or API key | Import products from CSV text in the request body (up to 5 MB, 5,000 rows). All or nothing: any bad row returns 422 with the lines and fields and nothing is imported. |
POST | /api/projects/:projectId/site-files/declaration | session or API key | Build and store a declaration file for agents from entries you give (body: kind api_catalog, ai_catalog or ard; items). 422 with the invalid entries. |
POST | /api/projects/:projectId/site-files/llms-txt | session or API key | Generate llms.txt from the confirmed brand facts and the last audit's indexable pages. 409 without an audit; meta.coverage says when the audit was partial. |
POST | /api/projects/:projectId/site-files/sitemap | session or API key | Generate sitemap files for target google, baidu or toutiao; an index plus parts when the limits require. lastmod only where a page change was observed. |
POST | /api/projects/:projectId/site-files/verify | session or API key | Fetch the published path on the project's own host (robots.txt obeyed, no redirect off the site, counted against the audit's outbound budget) and compare it with the stored file: matches, differs, missing or unreachable. 10 an hour per user. |
POST | /api/projects/:projectId/structured-data/generate | session or API key | JSON-LD for Product, Offer, Organization, Article, Service, MerchantReturnPolicy or OfferShippingDetails from plain fields. jsonLd is null and missing lists the fields while a required one is absent; FAQPage returns 400. |
PUT | /api/projects/:projectId/ai-traffic | session or API key | Turn AI-referral collection on or off (body: enabled). 409 while the feature is not available. |