whereamimentioned
PricingMethodologyDocsFree checkerFree toolsBlog
Sign inGet started
  • Start here

    • Overview
    • Quickstart
    • Concepts
    • Authentication and keys
  • REST API

    • API overview
    • Endpoint reference
    • Errors and rate limits
    • TypeScript client
  • CLI

    • CLI overview
    • Command reference
    • Configuration and credentials
    • Using the CLI in CI
  • MCP server

    • MCP overview and install
    • Tool reference
    • Prompts and recipes
  • Help

    • Troubleshooting
    • FAQ
    • Glossary
Documentation menu
  • Start here

    • Overview
    • Quickstart
    • Concepts
    • Authentication and keys
  • REST API

    • API overview
    • Endpoint reference
    • Errors and rate limits
    • TypeScript client
  • CLI

    • CLI overview
    • Command reference
    • Configuration and credentials
    • Using the CLI in CI
  • MCP server

    • MCP overview and install
    • Tool reference
    • Prompts and recipes
  • Help

    • Troubleshooting
    • FAQ
    • Glossary

Loading the page

whereamimentioned

The AI-visibility platform that tells you the truth about how AI engines represent your brand: grounded, rigorous, and transparent.

Product

  • Free checker
  • Free tools
  • Pricing
  • Docs
  • Get started

Trust

  • Methodology
  • Blog
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

Account

  • Sign in
  • Create account

© 2026 whereamimentioned. All rights reserved.

v1 covers grounded AI models via live web search. AI Overviews and Copilot are on the roadmap.

REST API

Endpoint reference

Every endpoint of the REST API, grouped by resource, with the scope it needs, its parameters, request body, response fields and the errors specific to it. Generated-document companion to /api/v1/openapi.json.

The authoritative description is the OpenAPI document at /api/v1/openapi.json; this page is the same surface arranged for reading. Conventions shared by every endpoint (authentication, the organization header, pagination, the error envelope, rate limits) are in the API overview and are not repeated per endpoint. Every example uses:

BASE=https://whereamimentioned.com/api/v1
AUTH="Authorization: Bearer $WAM_TOKEN"

Every endpoint below can also answer 401 unauthorized, 403 insufficient_scope, 403 feature_not_available, 422 validation_failed, 429 rate_limited and 500 internal_error; see Errors. Only the errors specific to an endpoint are listed under it.

Account

GET /me

Describe the calling key, the organization it resolved, the actor behind it, the plan and the credits. This is what wam auth status prints, and the first call to make with a new key.

Scope: any key. Account-wide keys must send X-Wam-Org; org, actor and credits then describe that organization, while key and plan.maxScanPrompts do not change.

curl -s $BASE/me -H "$AUTH"

Response 200:

Field Type Meaning
key.id, key.name string The key's id and the name given at creation.
key.prefix, key.last4 string Enough to identify the key; never the key itself.
key.kind org or user Organization key or account-wide key.
key.env live or test From the prefix.
key.scopes string[] The scopes the key carries.
key.roleCeiling role The ceiling chosen at creation.
key.expiresAt string or null ISO 8601, or null for a key that never expires.
org.id, org.slug, org.name, org.type The resolved organization. type is brand or agency.
actor.userId string The person who created the key.
actor.role, actor.effectiveRole role The live membership role and the lower of it and the ceiling.
plan.tier, plan.label free, single, pro, agency or enterprise, and its display name.
plan.mcp boolean Whether the plan includes the MCP server (true on every paid plan).
plan.exportFormats string[] The report formats the plan can download: a subset of pdf, csv, json.
plan.promptsPerWorkspace integer The prompt cap per workspace.
plan.maxScanPrompts integer How many enabled prompts one scan asks.
credits.balance, credits.unit The organization's balance and the unit name.

GET /credits

The organization's credit balance and allowance.

Scope: any key.

Response 200: balance, tier, monthlyCredits (the plan's monthly allowance), unit, and estimatedScansRemaining, which is the balance divided by the cost of the largest scan the plan allows, never of one particular workspace.

Organizations

Both routes need an account-wide key; an organization key is answered 403 insufficient_scope. Neither reads X-Wam-Org, and neither is gated on a paid plan.

GET /organizations

List the organizations the key can reach, newest first, each with its plan tier. This is the list of slugs an account-wide key may put in X-Wam-Org.

Scope: any account-wide key. Query: limit, cursor, fields.

Response 200: a page of { id, slug, name, tier, effectiveRole, workspaceCount }.

POST /organizations

Create an organization. The person behind the key must already own at least one organization on a paid plan, else 403 feature_not_available with details.billingUrl. The new organization starts on the free floor with no credits, so it cannot scan until a person subscribes at subscribeUrl. One account may own at most 25 organizations. Nothing can delete an organization through the API.

Scope: orgs:write. Header: Idempotency-Key (required). Rate limit: 3 per hour per account.

Body: { "name": string (1 to 120), "type": "brand" | "agency" }.

curl -s -X POST $BASE/organizations -H "$AUTH" \
  -H "Content-Type: application/json" -H "Idempotency-Key: orgcreate-acme-labs-1" \
  -d '{"name":"Acme Labs","type":"brand"}'

Response 201 (created) or 200 with X-Idempotent-Replay: true (the same key and terms were seen before): { id, slug, name, type, tier, usable, subscribeUrl, message? }. usable is false until a subscription exists; on a replay it is recomputed, so a replay after someone subscribed reads true.

Errors: 409 conflict with details.originalOrgId when the key was reused with a different name or type.

Workspaces

GET /workspaces

List the organization's workspaces, newest first, with the aggregates the CLI table shows.

Scope: workspaces:read. Query: limit, cursor, fields.

Response 200: a page of workspace summaries:

Field Type Meaning
id, slug, name string The slug is what every other path uses.
brandName string or null Null until the brand profile is set in the dashboard.
defaultRegion, defaultLanguage string For generated prompts.
usesOwnKey boolean The workspace brings its own OpenRouter key, so scans reserve no credits.
promptCount, enabledPromptCount integer
latestScan object or null { id, status, finishedAt, score } of the newest scan.
activeScanId string or null The scan currently queued or running, if any.
createdAt, updatedAt string

POST /workspaces

Create a bare workspace in the resolved organization. Only name is settable; the slug is derived and returned, and the organization is never read from the body. The new workspace has no brand profile, so it cannot be estimated or scanned until a person completes setup in the dashboard. There is no Idempotency-Key here: a retried create makes a second workspace, so do not wrap this call in a retry. Nothing can delete a workspace through the API.

Scope: workspaces:write, role member or above.

Body: { "name": string (1 to 120) }.

Response 201: the workspace detail (the summary fields plus competitorCount).

Errors: 409 conflict with details.limit, details.current, details.tier and details.billingUrl at the plan's workspace cap (1 on Single Brand, 3 on Pro, 25 on Agency).

GET /workspaces/{workspaceSlug}

One workspace: the summary fields plus competitorCount. fields is ignored here.

Scope: workspaces:read.

Competitors

GET /workspaces/{workspaceSlug}/competitors

Scope: competitors:read. Query: limit, cursor, fields.

Response 200: a page of { id, name, domain, aliases, createdAt }.

POST /workspaces/{workspaceSlug}/competitors

Track a competitor from the next scan on. Name and domain are stored trimmed and lowercased. Nothing is fetched from the domain and no credit is spent. There is no update or delete through the API; use the dashboard.

Scope: competitors:write, role member or above.

Body: { "name": string (1 to 120), "domain"?: string (up to 253), "aliases"?: string[] (each 1 to 120) }.

Response 201: the competitor.

Errors: 409 conflict with details.fields naming name or domain when one already exists in the workspace.

Prompts

GET /workspaces/{workspaceSlug}/prompts

List the workspace's prompts, newest first. The only list whose envelope carries extra keys: promptsPerWorkspace (the plan's cap) and maxScanPrompts (how many enabled prompts a scan asks), so a client can show the caps without a second call.

Scope: prompts:read. Query: limit, cursor, fields, enabled (true or false), source (generated, template, custom), stage (awareness, research, comparison, purchase, branded).

Response 200: { data: Prompt[], pagination, promptsPerWorkspace, maxScanPrompts } where a prompt is:

Field Type
id, text string
intentStage awareness, research, comparison, purchase, branded
persona string
type category, competitor_comparison, use_case, persona_need, branded
topic string or null
isBranded boolean
tags string[]
source generated, template, custom
enabled boolean
createdAt string

POST /workspaces/{workspaceSlug}/prompts

Add a custom prompt (source: custom).

Scope: prompts:write, role member or above.

Body: { "text": string (8 to 400), "intentStage"?: stage (default "research"), "persona"?: string (up to 80), "enabled"?: boolean (default true) }.

Response 201: the prompt.

Errors: 403 feature_not_available with details.limit and details.current when the workspace is at the plan's prompt cap.

PATCH /workspaces/{workspaceSlug}/prompts/{promptId}

Enable or disable a prompt. enabled is the only field the API can change on an existing prompt; text is fixed once created.

Scope: prompts:write, role member or above.

Body: { "enabled": boolean }. Response 200: the prompt.

DELETE /workspaces/{workspaceSlug}/prompts/{promptId}

Remove a prompt. A prompt that is already gone is 404, which clients should treat as success.

Scope: prompts:write, role member or above.

Response 200: { "deleted": true, "id": "..." }.

Scans

GET /workspaces/{workspaceSlug}/scans

List the workspace's scans, newest first. score is null until a scan is done, so a page of this list is the score trend.

Scope: scans:read. Query: limit, cursor, fields, status (queued, running, done, failed), from and to (an ISO 8601 date, which covers the whole day, or a date-time with a zone designator).

Response 200: a page of { id, status, mode, repetitions, modelCount, promptCount, creditsSpent, score, createdAt, startedAt, finishedAt, error }.

POST /workspaces/{workspaceSlug}/scans/estimate

Price the scan the create call would run now. Free: charges nothing, touches no ledger and creates no scan.

Scope: scans:read. Body: {} (an empty JSON object; the body is required but has no fields).

curl -s -X POST $BASE/workspaces/acme-main/scans/estimate -H "$AUTH" \
  -H "Content-Type: application/json" -d '{}'

Response 200:

Field Type Meaning
credits integer prompts x models x repetitions.
prompts integer The enabled prompts that would run, capped at plan.maxScanPrompts.
models { id, displayName }[] The live roster for the plan.
repetitions, mode What the plan would run.
balance, sufficient The organization's balance and whether it covers credits.
usesOwnKey boolean True on a workspace with its own OpenRouter key; such a scan reserves no credits.
quote.token, quote.expiresAt A signed quote binding this price to this key for five minutes. Pass token to the create call.

POST /workspaces/{workspaceSlug}/scans

Start a scan. The only endpoint that spends credits.

Scope: scans:write, role member or above. Header: Idempotency-Key (required). Rate limit: 3 scan starts per key per 60 minutes.

Body: { "quote"?: string }. With a quote, the server verifies it (minted for this key, under five minutes old, same priced terms) before starting; without one, it prices the scan now and starts it. mode and repetitions are not parameters; the plan decides.

curl -s -X POST $BASE/workspaces/acme-main/scans -H "$AUTH" \
  -H "Content-Type: application/json" -H "Idempotency-Key: nightly-acme-main-2026-11-07" \
  -d '{"quote":"eyJ2IjoxLCJv..."}'

Response 201 (created and queued) or 200 with X-Idempotent-Replay: true (the same key was already used for this workspace: the existing scan, with balanceAfter as it is now):

Field Type Meaning
id string The scan id.
status status queued on creation.
credits integer Reserved by this scan.
prompts, models integer The terms it runs with.
balanceAfter integer The organization's balance after the reservation.
pollUrl string GET /scans/{id}.

Errors specific to this route:

Status and code Cause details
402 insufficient_credits The balance cannot cover the scan. Nothing was charged. required, available, billingUrl
409 scan_already_running A scan is queued or running for this workspace. Poll it instead. scanId, pollUrl
409 conflict The Idempotency-Key was used for a different workspace, or the quote's priced terms moved since it was minted, or the quote is stale or was minted for another key. originalScanId or fields
422 validation_failed The Idempotency-Key header is missing or malformed. issues

GET /scans/{scanId}

Poll a scan. The body behind pollUrl.

Scope: scans:read.

Response 200:

Field Type Meaning
id, workspaceSlug string
status queued, running, done, failed
mode, repetitions
progress.done, progress.total integer Answers completed and cells planned so far.
progress.totalIsFinal boolean total grows while the scan runs; compute a percentage only when this is true.
creditsReserved integer Reserved at creation.
creditsSpent integer or null Settled when the scan finishes.
score number or null The AI visibility score once done.
createdAt, startedAt, finishedAt string or null
error string or null Why a scan failed.

GET /scans/{scanId}/answers

The evidence behind a scan: one row per prompt, model and run. answerText is truncated to 1,200 characters (answerTextTruncated says when) and citations is capped at 25 per answer; the full text is never returned by the API.

Scope: reports:read. Query: limit (default 20), cursor, fields, modelId, mentioned (true or false), lowConfidence (true or false).

Response 200: a page of answers:

Field Type Meaning
answerId, promptId, promptText, intentStage The prompt that was asked.
modelId, modelName string The model that answered.
grounded boolean Whether the model could search the web.
brandMentioned, brandPosition boolean, integer or null Whether and where the brand appeared.
sentiment positive, neutral, negative, not_present
brandsPresent { name, is_target, rank }[] Every brand in the answer, in order. is_target marks yours.
citations { url, domain }[] Up to 25.
confidence, lowConfidence number, boolean The judge's confidence in its reading of this answer.
answerText, answerTextTruncated string, boolean Up to 1,200 characters of the answer.

Reports

GET /scans/{scanId}/report

The visibility report of a finished scan.

Scope: reports:read. Query: format, one of json (default), csv, pdf.

json is never gated and returns the report object. csv and pdf are file downloads gated on the plan: a format the plan does not include is 403 feature_not_available with details.allowedFormats. A scan that is not done has no report: 404 not_found with details.status, so keep polling.

curl -s $BASE/scans/$ID/report -H "$AUTH" | jq .score
curl -s "$BASE/scans/$ID/report?format=csv" -H "$AUTH" -o report.csv

Response 200 (application/json):

Field Type Meaning
scanId, brandName, workspaceName, scanDate
score number The AI visibility score, 0 to 100.
presenceRate, presenceCiLow, presenceCiHigh number The share of answers that mention the brand, with its confidence interval.
sov number Share of voice.
sentimentScore number or null Null when the brand never appeared.
brandCitationShare number The share of cited sources that are the brand's own domains.
perModel { model, score }[] One score per model.
competitors { name, mentions, sov, isTarget }[] The share-of-voice table; isTarget marks the brand itself.
citations { domain, count, share, bucket }[] The cited domains; bucket is owned, competitor or third_party.
recommendations { title, body, priority }[]
methodologyVersion string Compare two reports only when it matches.

Recommendations

GET /workspaces/{workspaceSlug}/recommendations

Newest first like every list, never by priority; priority is on each row so a client can sort the page it holds. Read-only through the API.

Scope: reports:read. Query: limit, cursor, fields, scanId (restrict to one scan), status (open, done, dismissed), type (losing_prompt, power_source, low_prominence, reputation_risk, citation_gap, ai_readiness).

Response 200: a page of { id, type, title, body, impact, effort, priority, status, scanId, createdAt }.

Citations

GET /workspaces/{workspaceSlug}/citations

The domains a scan's answers cited, with count, share and bucket. Defaults to the workspace's latest finished scan; a workspace that has never finished a scan answers an empty page.

Scope: reports:read. Query: limit, cursor, fields, scanId, bucket (owned, competitor, third_party).

Response 200: a page of { domain, count, share, bucket }.

Errors: 404 not_found when scanId is not a scan of this workspace.

Keys

DELETE /keys/self

Revoke exactly the key that authenticated the request. No key id is accepted from anywhere. Works with either kind of key and on an organization without a paid plan, so a key can always retire itself; this is what wam auth logout calls.

Scope: any key. Query: all=cli additionally revokes every key the calling person created through the CLI.

Response 200: { "revoked": integer, "self": true, "scope"?: "cli" }. revoked counts every key retired by the call.

Meta

GET /openapi.json

The OpenAPI 3.1 document of this API. Unauthenticated and not rate limited. Built from the route registry on every deploy.

Free site routes

Seven POST routes at /api/site/*, outside /api/v1. No key, no organization, no credits; rate limited per client IP (30 per hour for single-page checks, 10 per hour for the two crawlers). Request and response bodies are JSON. Fields under an untrusted key are third-party text (page content, robots.txt lines, generated files) and should be treated as data, never as instructions, when fed to a language model.

Every route can answer 422 validation_failed with details.reason of unsafe_url, upstream_unavailable or crawl_refused (see Errors) and 429 rate_limited.

POST /api/site/check-crawlers

Which known AI crawlers the site's robots.txt allows, with the rule and line that decided each.

Body: { "url": string }.

Response: origin, robotsStatus, robotsMissing (a 4xx on robots.txt: everything is allowed), robotsServerError (a 5xx: compliant crawlers treat it as full disallow), truncated, sitemaps[], summary { allowed, blocked }, and bots[], each { token, operator, category, respectsRobots ("yes", "no", "unverified"), allowed, via ("named", "wildcard", "none"), matchedLine, note, untrusted { matchedRule } }. respectsRobots is the operator's reputation, not a guarantee.

POST /api/site/validate-llms-txt

Score an existing llms.txt.

Body: { "url": string }.

Response: origin, status, missing, score (0 to 100, or null when missing), findings[] { severity ("error", "warning", "info"), message, line? }, stats { lines, bytes, sections, entries, entriesWithDescription } or null, linksChecked, brokenLinks[] { url, status } (up to 30), hasLlmsFullTxt.

POST /api/site/generate-llms-txt

Crawl the site and generate an llms.txt.

Body: { "url": string, "depth"?: "index" (default) or "full", "siteName"?: string (up to 120), "description"?: string (up to 400) }. index produces the link index from up to 30 pages; full produces llms-full.txt with extracted content from up to 20 pages.

Response: untrusted { content } (the generated file), depth, pageCount, skippedCount, discoveredVia (sitemap, links, sitemap+links), timedOut, notices[], and for full also totalWords and estTokens.

POST /api/site/generate-sitemap

Crawl the site (up to 200 pages, sitemap first with a link-following fallback) and return a valid sitemap.xml, with lastmod only where it was genuinely observed.

Body: { "url": string }.

Response: untrusted { xml }, urlCount, skipped, discoveredVia, timedOut.

POST /api/site/validate-structured-data

Validate a page's JSON-LD against the schema.org types that matter for AI visibility. Microdata and RDFa are counted, not validated. Raw JSON-LD is never returned.

Body: { "url": string }.

Response: url, score, entityCount, errors, warnings, passes, microdataCount, rdfaCount, blocks[] { index, syntaxError?, entities[] { type, untrusted { name? }, aiNote?, findings[] { severity, message } } } (up to 50 blocks).

POST /api/site/check-meta

Analyse a page's title, meta description, og:description and opening paragraph.

Body: { "url": string, "keyword"?: string (up to 100) }.

Response: url, untrusted { title, description, ogDescription, firstParagraph }, score, chars, pixels, desktopCutoff, mobileCutoff, checks[] { level ("error", "warning", "suggestion", "pass"), message }, openingParagraphChecks[].

POST /api/site/analyze-chunks

How a page chunks for retrieval: per-heading sections with word and token counts, findings, strengths and a score.

Body: { "url": string }.

Response: url, mode (html or text), score, errors, warnings, strengthCount, totalWords, totalTokens, topFixes[] (up to 5), docFindings[], chunks[] { level, untrusted { heading }, words, tokens, paragraphs, longestParagraphWords, findings[], strengths[] } (up to 150).

PreviousAPI overview
NextErrors and rate limits

On this page

  • Account
  • Organizations
  • Workspaces
  • Competitors
  • Prompts
  • Scans
  • Reports
  • Recommendations
  • Citations
  • Keys
  • Meta
  • Free site routes