This page is a tutorial: follow it top to bottom once and you will have run every kind of request the product supports. It takes about ten minutes, plus the few minutes a scan needs to run. If you already know what you want, the command reference, the endpoint reference and the MCP tool reference are the places to jump to.
Before you begin
You need:
- Node 20.19 or newer for the CLI and the MCP bridge. Check with
node --version. The REST API needs nothing but an HTTP client such ascurl. - An account on a paid plan for steps 2 to 6. Step 1 needs no account at all. The API, the CLI and the MCP server are included on every paid plan (Single Brand, Pro and Agency). An organization that has not subscribed can create keys, but every call that reads or starts a scan answers 403
feature_not_availablewith a link to the billing page. - A workspace with a brand profile. The dashboard creates one during onboarding. A workspace created through the API or the CLI has no brand profile yet, so it cannot be estimated or scanned until someone completes setup in the dashboard.
Everything below uses acme as the organization slug and acme-main as the workspace slug. Replace them with yours. The numbers in example outputs are illustrations; yours will differ.
Step 1: check a site with no account
The seven site checks need no key, no account and no configuration. They are the cheapest possible first look at the product, so start there.
npx @whereamimentioned/cli site check-crawlers example.com
The first run downloads the CLI, which takes a few seconds. Always use the scoped package name: the unscoped wam package on npm is unrelated.
What you should see: a table with one row per known AI crawler (GPTBot, ClaudeBot, PerplexityBot, Google-Extended and the others), whether robots.txt allows or blocks it, and the exact rule and line that decided it. The command exits 0.
The same check over HTTP, with no key:
curl -s https://whereamimentioned.com/api/site/check-crawlers \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
If it fails:
422 validation_failedwithdetails.reason: "unsafe_url": the URL points at a private address, localhost or a link-local range. The server fetches every URL from the public internet, so it cannot reach your laptop or your office network.429 rate_limited: the per-IP budget for the site checks is 30 single-page checks per hour and 10 crawls per hour (the llms.txt and sitemap generators). Wait the number of seconds inRetry-After.- The command hangs on
npx: your network blocks the npm registry. Install once withnpm install -g @whereamimentioned/clifrom a machine that can reach it, or use the HTTP route above.
Step 2: get an API key
Everything from here on needs a key. There are two ways to get one; both end with the same kind of key.
From the terminal
npx @whereamimentioned/cli auth login
Your browser opens at whereamimentioned.com. Sign in if you are not signed in, pick the organization the key should reach, review the scopes and the expiry, and approve. The key travels back to the CLI over a loopback port on your own machine; nothing is pasted and nothing is shown.
What you should see: the browser page says the sign-in is complete, and the terminal prints that you are signed in, which organization the key reaches and where the credential was stored (the macOS Keychain, the Windows Credential Manager, Secret Service on Linux, or a permission-checked file where no credential store exists).
Two alternatives, for machines where a browser cannot reach back:
wam auth login --deviceprints a URL and an eight-character code such asBQDX-7F2M. Open the URL on any device, enter the code, approve. The code is valid for ten minutes.wam auth login --tokenreads a key you already created in the dashboard, from stdin or a prompt.
From the dashboard
Open your organization, then Settings, API keys. Give the key a name, keep This organization selected, keep the default read-only scopes or add the write scopes you need, pick an expiry and create it. The key is shown once. Copy it now; the page will only ever show its prefix and last four characters again.
Then tell the CLI about it:
echo "$WAM_TOKEN" | npx @whereamimentioned/cli auth login --token
Check it
wam auth status
What you should see: the key kind, the organization, your role, the plan, the credit balance, the key's prefix and last four characters, its scopes, when it expires and which credential store holds it. The token itself is never printed.
If it fails:
- The browser never opened: run
wam auth login --no-browserand open the printed URL yourself, or use--device. Sign-in timed out: the loopback flow waits five minutes for the approval. Run it again.wam auth statusexits 3 withNot signed in: the credential store is not available on this machine, or you setWAM_PROFILEto a profile that has no key. Runwam auth status --debugto see which store was tried, or setWAM_TOKENin the environment instead.
If you installed the CLI globally, wam works everywhere below. Otherwise prefix each command with npx @whereamimentioned/cli.
Step 3: pick a workspace
A workspace holds one brand: its prompts, its competitors and its scans. Most commands need to know which one you mean.
wam workspace list
What you should see: one row per workspace with the organization, the slug, the brand name, the region, how many prompts are enabled, when the last scan finished and its score.
Make one the default so you do not have to repeat it:
wam workspace use acme/acme-main
This writes the organization and workspace to your user config after checking they exist. In a repository, a committed wam.json does the same job for everyone who clones it; see Configuration.
If it fails: No workspace selected (exit 2) means a command needed a workspace and none was resolved. Pass --workspace acme-main, set WAM_WORKSPACE, or run wam workspace use as above.
Step 4: price a scan
Nothing in this step spends anything.
wam scan estimate
What you should see, for example on the Single Brand plan:
Workspace acme-main (acme)
Prompts 6
Models GPT-5.5, Claude Sonnet 5, Gemini 3.5 Flash, Perplexity Sonar
Cost 24 credits (grounded)
Balance 48 now, 24 after
Run it with: wam scan run
A credit is one answer: the cost is the number of enabled prompts a scan runs (at most six, whatever the plan) times the number of models in your plan's roster. The models are the live roster, so the names you see are the ones that will be asked.
If it fails: Not enough credits (exit 4) prints what the scan needs, what the organization has and the billing page. Nothing was charged.
Step 5: run it
wam scan run --wait
The CLI prices the scan again, prints the same block as the estimate, and asks This spends real credits. Run the scan? (y/N). The default answer is no. Type y.
What you should see: the scan id, then a progress line that updates as answers come back (12 of 24 answers, with (total may still grow) while the planner can still add cells), then a summary: the AI visibility score, presence rate, share of voice, citation share, a line per model, the credits spent and the balance after. A scan usually finishes within a few minutes.
In a pipe or in CI the CLI cannot ask, so add --yes. Without it, scan run exits 2 and starts nothing. The cost is still printed first, so it is in the log.
If it fails:
A scan is already running for this workspace: the CLI follows the running one instead of starting a second. Add--no-followto exit 8 instead.- Exit 1 with
timed outafter thirty minutes: the scan keeps running on the server. Read it later withwam scan status <id>orwam report get. - Exit 6: the scan reached
failed. Itserrorfield says why; the credits reserved for answers that never ran are released. Rate limit exceeded(exit 5): a key may start at most 3 scans per hour. The message says when the cap resets.
Step 6: read the result
The report of the latest completed scan:
wam report get
What you should see: the score and its components, a per-model block, share of voice against each competitor, the most cited domains with their bucket (owned, competitor or third party) and the top recommendations. Add --json for the full report object, --format csv -o report.csv for a spreadsheet, or --format pdf -o report.pdf on plans that include PDF export.
The answers behind the score are the evidence. To see every answer in which your brand did not appear:
wam scan evidence <scanId> --mentioned false
Copy <scanId> from the ID column of wam scan list. The column shows the first eight characters, and that prefix is enough as long as it is unambiguous.
The same path over HTTP
Every CLI command above is one or two REST calls. Set WAM_TOKEN to your key and walk the same path with curl.
BASE=https://whereamimentioned.com/api/v1
AUTH="Authorization: Bearer $WAM_TOKEN"
# Who am I, which organization, which plan, how many credits
curl -s $BASE/me -H "$AUTH"
# The workspaces of the organization
curl -s $BASE/workspaces -H "$AUTH"
# Price a scan (free)
curl -s -X POST $BASE/workspaces/acme-main/scans/estimate -H "$AUTH" \
-H "Content-Type: application/json" -d '{}'
# Start it. Idempotency-Key is required: a retry with the same key returns the same scan.
curl -s -X POST $BASE/workspaces/acme-main/scans -H "$AUTH" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: nightly-2026-11-07" \
-d '{}'
# Poll it until status is "done" or "failed"
curl -s $BASE/scans/<scanId> -H "$AUTH"
# The report
curl -s $BASE/scans/<scanId>/report -H "$AUTH"
Every response carries X-Request-Id. If something goes wrong and you contact support, quote it. The API overview explains the headers, pagination and the error envelope; the endpoint reference has every field.
The same path from an AI assistant
Install the MCP server into the client you use. The CLI knows where each client keeps its configuration:
wam mcp install --client cursor
Restart the client. Then ask, in plain language:
Run the weekly visibility pulse for acme-main.
The assistant calls list_scans and get_visibility_report, compares the last two completed scans and tells you what moved and whether the change is bigger than the confidence interval. To start a scan from an assistant, it has to call estimate_scan first and show you the cost; run_scan refuses without a fresh quote and your explicit confirmation. The MCP overview has a snippet for every client, and the tool reference lists what each tool takes and returns.
Where next
- Concepts, if any word above was unfamiliar.
- Using the CLI in CI, for a scheduled scan that fails the build below a threshold.
- Authentication and keys, before you hand a key to a teammate or a pipeline.
- Troubleshooting, the moment anything does not match this page.