# Ranq quickstart

This page is for a first user and their agent. Claude Code, Codex, Hermes or your own agent can follow it. The current copy is at https://api.ranq.sh/quickstart.

## What Ranq does for you

Ranq finds the questions where AI engines name your competitors and skip you. It lists the pages you must publish or place to close each gap. It then measures whether you appear after you act, and it keeps the weekly record in your agent's context.

## 1. Get access and credits

We give you a workspace key. Never paste it in a chat. Set it in your shell or in your agent config.

```sh
export RANQ_API_KEY=...        # your workspace key
export RANQ_API_URL=https://api.ranq.sh
export RANQ_AGENT=my-agent     # the name Ranq records on every write (a-z, 0-9 and -, up to 40 characters)
```

Ranq runs on prepaid credits. A pack is valid for 12 months.

| Pack | Price (USD) | Credits |
|---|---|---|
| 9 | 9 | 500 |
| 49 | 49 | 2,800 |
| 199 | 199 | 12,500 |
| 499 | 499 | 37,000 |

| What you buy | Credits |
|---|---|
| One answer (one prompt, one engine, one market) | 1 |
| One presence verdict on one page | 2 |
| One publish brief | 20 at most |

A page that Ranq cannot read gets no verdict and costs nothing. A quote is the maximum. Ranq holds the quoted credits and then settles only what it delivered: a brief that delivers 3 of its 4 parts settles 15 of 20 credits, and a visibility check settles 1 credit per answer that came back. The rest of the hold is released. Corpus reads and gap lists are free. To buy a pack, call the `create_checkout` tool with `pack` set to `9`, `49`, `199` or `499`. It returns a payment link. Call `get_balance` to see what is left.

### Prices and quotes

Call `get_prices` to read every price as data. Each row gives the action, the tool, the unit, the credits and the dollar value at each pack. Each row also tells you if a failed or blocked result is free. The REST route is `GET /v1/prices`. The CLI command is `ranq api get_prices`.

Each paid tool gives a quote before it spends. Call the tool without `execute: true`. The dry run returns `quote`. It shows the credits that execute will reserve, your available credits, and whether spending is frozen. The quote does not spend and does not write the ledger. The key cap is null because Ranq has no per-key cap yet.

### Your balance can move while you work

Credits belong to the workspace, and other actors share it. The weekly background collection (actor `ranq:collect`) places its own holds, so `available` can drop during your session for a reason that is not yours. `get_balance` returns `projects`: each project's `held`, `settled` and `released` credits, split by actor (`agent:<your agent name>` for your own calls, `run_visibility_check` included, or `ranq:collect`). Monthly fees are in `unattributed`. To see your own spend row by row, page `get_ledger` and filter on `actor`.

## 2. Connect your agent

All three routes use the same tool catalogue. The hosted endpoint is `https://api.ranq.sh/mcp`. It takes your key as a bearer token. Every write also needs the header `x-ranq-agent` with your agent name. Without it, the hosted endpoint refuses each write tool. Your shell variable `RANQ_AGENT` does not reach the hosted endpoint, so send it as a header.

**Claude Code**

```sh
claude mcp add --transport http ranq https://api.ranq.sh/mcp \
  --header "Authorization: Bearer $RANQ_API_KEY" \
  --header "x-ranq-agent: $RANQ_AGENT"
```

Your shell expands the key when you run the command. Claude Code then stores it in its config file. To keep the key out of that file, use a project `.mcp.json`. Set the header `Authorization` to `Bearer ${RANQ_API_KEY}` and the header `x-ranq-agent` to `${RANQ_AGENT}`.

**Codex** (`~/.codex/config.toml`)

```toml
[mcp_servers.ranq]
url = "https://api.ranq.sh/mcp"
bearer_token_env_var = "RANQ_API_KEY"
env_http_headers = { "x-ranq-agent" = "RANQ_AGENT" }
```

Codex reads the key from `RANQ_API_KEY` and the header value from `RANQ_AGENT`. These are the Codex keys `bearer_token_env_var` and `env_http_headers` for a streamable HTTP server. To set the agent name in the file instead, use `http_headers = { "x-ranq-agent" = "my-agent" }`.

**CLI**

Install the client from npm. It needs Node 22.18 or later.

```sh
npm i -g @shyftai/ranq
ranq api list
```

If npm or npx says a version that was just published does not exist (`ETARGET`, "No matching version"), its cached registry data is stale: run `npm cache clean --force`, or `npx --prefer-online @shyftai/ranq`.

The CLI reads `RANQ_API_URL` and `RANQ_API_KEY` from the environment. It refuses a key on the command line. To run it from a checkout of the Ranq repository instead, use `node bin/ranq.mjs`.

```sh
node bin/ranq.mjs api list
node bin/ranq.mjs api get_balance
```

Write tools do a dry run unless you add `--execute`. `ranq api <tool> --help` prints that tool's flags and its REST route. Flags take the tool's argument names: `ranq api create_project --project '<JSON>'`. `--flag value` and `--flag=value` are the same. Only a true/false flag such as `--execute` takes no value. A project argument can also be the first word, as in `ranq api get_project my-project`.

**Any other agent**

Send JSON-RPC 2.0 requests with `POST` to `https://api.ranq.sh/mcp`. Send three headers. They are `Content-Type: application/json`, `Authorization: Bearer <key>` and `x-ranq-agent: <agent name>`. Send `tools/list` to see every tool.

## 3. Create the project

`create_project` takes one `project` object. Send it as a dry run first. A refusal is `invalid_project` with `issues`: each issue gives the rule (`code`), the field (`path`), a `message` and a `fix`. MCP, REST and the CLI return the same list.

```json
{
  "project": {
    "slug": "acme-com",
    "name": "Acme",
    "domain": "acme.com",
    "category": "time tracking software",
    "entityDescription": "Acme makes time tracking software for small teams.",
    "brandAliases": ["Acme", "acme.com"],
    "source": "agent: from the acme.com homepage",
    "competitors": ["rival.com", "other.example"],
    "prompts": [
      { "text": "best time tracking app for small teams", "cluster": "C1" },
      { "text": "how to track billable hours for freelancers", "cluster": "C9" },
      { "text": "is Acme worth it", "branded": true, "cluster": "C1" }
    ]
  },
  "execute": false
}
```

- `competitors` takes plain domains, or `{ "name": "Rival", "domain": "rival.com" }` objects.
- A prompt is unbranded unless it has `"branded": true`. You can also set `type` to `unbranded`, `branded` or `comparative`. A comparative prompt also needs `comparator`.
- At least 60% of the prompts must be unbranded. An unbranded prompt must not name your brand or a competitor.
- If your brand name is also an ordinary word, such as Parka for parka.sh, set `"allowBrandWord": true` on an unbranded prompt that uses the word. The prompt still must not name your domain or a competitor.
- Tagging a prompt with `cluster` declares that cluster. You can also declare clusters with labels: `"clusters": { "C1": "treated", "C9": "control" }`.
- After you create the project, call `set_control_cluster` with `C9` and `execute: true`. If no prompt has a cluster, Ranq holds out about 10% of the unbranded prompts in C9 itself.

## 4. The loop

Your agent runs these steps in order. The gap list names pages. A brief starts from a prompt. The report reads the actions you record. Each write is a dry run first. Run it again with `execute: true` when the plan looks right. In the CLI, add `--execute`.

| Step | Tool | Credits |
|---|---|---|
| Check your balance | `get_balance` | 0 |
| Read the prices | `get_prices` | 0 |
| Create the project | `create_project` | 0 |
| Add prompts, keywords and competitors | `add_prompts`, `add_keywords`, `set_competitors` | 0 |
| Tag prompts to a cluster, and set a control cluster | `set_prompt_cluster`, `set_control_cluster` | 0 |
| Set the weekly collection | `set_collection_schedule` | 0 |
| Collect fresh answers on one engine | `run_visibility_check` | 1 per answer |
| Extract citations and build the corpus | `process_project` | 0 |
| Read the corpus | `get_corpus` | 0 |
| Check which pages name you | `check_presence` | 2 per verdict |
| Score the gap again with the new verdicts | `process_project` | 0 |
| Read the gap list (it lists pages) | `get_presence_gap` | 0 |
| Write a brief for one prompt where you are not cited | `create_publish_brief` | 20 per brief |
| Record a gap page as a placement target, with a `route` of `listing`, `pr_to_list`, `outreach_editor` or `community_answer` | `add_placement` | 0 |
| Record what you did on that page | `record_action` | 0 |
| Ask a human to approve an outreach send | `request_approval` | 0 |
| Read the event log | `get_project_events` | 0 |
| Read the report (needs `since`, the start of your session) | `get_report` | 0 |

Rules for spend.

- Read `get_balance` before the first paid step.
- Run each paid step as a dry run first. The result shows the credits it will use.
- `check_presence` needs `max_pages` (1 to 50). Set it so the checks and one brief fit your cap.
- One executed visibility check per project and engine is allowed each hour.
- If a paid call fails and the spend is unknown, count the full dry-run estimate as spent.
- Count the visibility check in your cap. Ten prompts on one engine cost 10 credits.
- `run_visibility_check` returns at once with a check id while the answers are collected in the background, which can take minutes. Poll `get_visibility_check` until the status is `succeeded`, and only then call `process_project`. While it runs, `progress` shows the answers collected so far and the answers expected. If you run the check again within the hour, Ranq returns the same check and charges nothing new.
- `run_visibility_check` already extracts the citations. If `process_project` then answers `noop`, nothing was left to do. After `check_presence`, always run `process_project` again, or the gap list does not show the new verdicts.
- A single session cannot show lift. `get_report` needs a check after your recorded action, so the first report shows `before` and `after: null` with `missing: ["no_check_after"]`. The next weekly collection or visibility check fills in `after`.

### What a human must do

Ranq never sends outreach without a human. Your agent can call `request_approval`. It cannot grant one. A person grants or rejects the request with the operator command `ranq approvals grant`. Your agent can then read the result with `get_approval`.

### Connect Search Console and GA4

Ranq can put your Google data next to your AI citations. Ranq connects Google Search Console (`gsc`) and Google Analytics 4 (`ga4`) through a connection service. Ranq never sees your Google password.

Connecting a site is a setup step, done once with a human. `connect_site`, `complete_site_connection` and `disconnect_site` are on REST and the CLI (`ranq api connect_site ...`), not on MCP. `list_site_connections` and `get_site_report` are on all three routes.

1. Call `connect_site` with `provider` and an https `redirect_url`. Run it with `execute: true`. Ranq checks that you have the credits for one month of the connection fee. It then returns `auth_url`.
2. Open `auth_url` and sign in with Google. A person must do this step.
3. Google sends you back to `redirect_url`. If your Google account reads more than one site or property, the address has a `pendingDataToken` parameter. Call `complete_site_connection` with its value as `pending_data_token` to get the `choices`. Call it again with the same `pending_data_token`, one `choice` and `execute: true`. Otherwise call it with `execute: true`, and with `account_id` set to the `accountId` from the address if Google gave you more than one account.
4. Ranq takes the monthly connection fee in credits when the connection becomes active. Without enough credits it refuses with `credits_exhausted` and connects nothing.
5. Call `list_site_connections` to see the status.

Each week Ranq reads the last 7 days for each active connection. Search Console gives clicks, impressions and position per page and per query. GA4 gives sessions per page and source. Ranq marks sessions from AI assistants, such as chatgpt.com and perplexity.ai.

Call `get_site_report` to see each page with its AI citations, its Search Console clicks and impressions, and its AI referral sessions. A null value means that Ranq has no data. Ranq never shows it as 0. The report also lists `suggested_prompts`. These are Search Console queries that are not prompts yet. Ranq does not add them. Your agent can add them with `add_prompts`.

The fee renews each month from your credits. If a renewal cannot be paid, Ranq disconnects the site and stops reading it. To stop a connection, call `disconnect_site`. Ranq gives no refund for the current month: the connection is read until the paid month ends, then Ranq disconnects it.

### Connect PostHog

Ranq can read your PostHog pageviews. Ranq does not use a connection service for PostHog. You give Ranq a PostHog personal API key.

1. In PostHog, make a personal API key that can read your project. The key starts with `phx_`.
2. Call `connect_site` with `provider: "posthog"`, `host`, `project_id` and `api_key`. The `host` is `https://us.posthog.com` or `https://eu.posthog.com`. Run it with `execute: true`.
3. Ranq checks the key at PostHog. Ranq then encrypts the key, stores it, and takes the monthly connection fee in credits. The connection is then active. There is no `complete_site_connection` step.
4. Call `list_site_connections` to see the status.

Ranq never returns your key. Ranq does not write your key to a log or to an error. Ranq stores the key encrypted with AES-256-GCM. The encrypted key works only for your workspace and this connection.

Each week Ranq reads the last 7 days of pageviews per page and per referring domain. Ranq marks pageviews from AI assistants with the same list as GA4. `get_site_report` shows them as `ai_referral_pageviews`.

To replace the key, call `connect_site` again with the new `api_key`. Ranq takes no second fee. To delete the key, call `disconnect_site` with `provider: "posthog"`. Ranq deletes the key at once and stops reading. The fee stops at the end of the paid month. Ranq gives no refund.

If `list_site_connections` shows `needs_reconnect: true`, Ranq cannot use the stored key. PostHog refused it, or Ranq cannot decrypt it. Call `connect_site` again with the key. Your data stays.

If Ranq answers `secrets_not_configured`, the operator did not set `RANQ_SECRETS_KEY`. Ranq stores nothing. Tell the operator.

### Share a workspace with another organisation

An agency and its client each have their own organisation. The owner of a workspace can let another organisation in at one level: `view` reads, `act` also makes unpaid writes, `spend` also runs paid calls under a monthly credit cap. The owner pays for everything, and only the owner's keys run checkout, auto top-up, fees and site connections. A grantee is refused `owner_only` there. Inviting and granting is a setup step, done once with a human. It is on REST and the CLI, never on MCP. Each step needs an account key of your organisation (the operator issues the first one, or an accepted invite creates it), and every change needs the owner's. A workspace key is refused `account_key_required`.

1. The owner invites, naming the workspace: `ranq api create_invite --workspace acme --level act --execute`. It returns a token, shown once. Hand it over yourself. Ranq sends no mail. A spend invite needs `--monthly_credit_cap`. An invite lasts 7 days and is accepted once.
2. The invitee accepts: `ranq api accept_invite --token inv_... --execute`. Its organisation now reaches the workspace, and `list_workspaces` shows it with the level. An invitee with no Ranq account sends `POST /v1/public/invites/accept` with no key and the body `{"token": "inv_...", "name": "Agency", "execute": true}`. That creates its organisation and first account key, returned once. Ranq stores no email.
3. The owner lists grants with `ranq api list_grants --workspace acme`. A grantee sees only its own. To change a level, run `set_grant` without `--execute`. It returns a `sha256`. Run it again with `--execute --sha256 <that>`. `revoke_grant` works the same way, and the grantee's keys are refused from their next call. `cancel_invite` stops an invite that was not accepted yet.

A `spend` grantee runs paid calls on the owner's credits, up to its monthly credit cap. The month is the calendar month in UTC. Holds still open count, so two calls at once cannot both pass the cap. Above the cap the call is refused `spend_cap_reached`, and Ranq opens one spend request for that month. The refusal names its `spend_request_id`, the cap and the month's spend. A second refusal reuses the same request. The owner reads them with `ranq api list_spend_requests --workspace acme` (a grantee sees only its own). The owner approves extra credits for that month only with `ranq api approve_spend --workspace acme --spend_request <id> --extra_credits 500 --execute`, or rejects with `reject_spend`. Next month starts at the cap again. A `view` or `act` grantee is refused `spend_level_required` when a call would reserve credits. Its dry runs still work.

A schedule a grantee sets spends as that grantee: its weekly holds count against the cap, and setting one needs `spend`. When the owner changes the schedule, it becomes the owner's. Revoking a grantee, or lowering it below `spend`, pauses its schedules at once (`last_reason` `grant_revoked`). A site connection starts a monthly fee, so only the owner connects one. A grantee is refused `owner_only` there. A grant never moves money: the owner's workspace pays every hold, and auto top-up charges only the owner's saved card. Every invite, accept, cancel, change, revoke and spend decision is recorded.

An agency's agent with one account key starts a session with `get_portfolio` (`ranq api get_portfolio`). One read covers every workspace the key reaches, and no other. Each workspace shows its slug, name and your level, its active project count, and `credits_available` at `spend` only. For each active project it shows the last weekly collection, the latest week's visibility and the open gap count. It takes no `workspace` and costs no credits. It lists at most 25 workspaces and 10 projects in each. `workspaces_truncated` or `projects_truncated` is true when there are more. A workspace key sees only its own workspace.

The whole agency flow, step by step for the CLI and MCP, is in [AGENCIES.md](AGENCIES.md).

### Hand a workspace to another organisation

An agency builds a workspace and its client takes it over: the client then owns it and pays for it. A transfer is a setup step, on REST and the CLI, never on MCP. It needs two sides, and nothing moves until the receiver confirms.

1. The owner plans it: `ranq api offer_transfer --workspace acme`. Nothing is written. The plan lists what moves: the projects and their history, the credit balance (`live.balance`, which changes as you spend), paid fees and their next renewal, and site connections with each stored secret by provider and host, never its value. It lists what is cut at once: your saved card and auto top-up, every workspace key, every grant and pending invite, pending spend requests. Your account keys no longer reach it. It lists the schedules that are paused, and every refusal that applies now. `live.credits_disputable_by_sender` is what you paid by card in the last 120 days. It returns `sha256`. If a site connection holds your own PostHog key, disconnect it first.
2. The owner offers it: `ranq api offer_transfer --workspace acme --sha256 <that> --execute`. It returns a token, shown once, valid 7 days. Hand it over yourself. One open offer per workspace. `cancel_transfer` stops it until it is accepted.
3. The receiver plans: `ranq api accept_transfer --token xfr_...`. It shows the workspace as it is now and a `sha256`. A receiver with no Ranq account sends `POST /v1/public/transfers/accept` with no key and `{"token": "xfr_..."}`.
4. The receiver accepts: `ranq api accept_transfer --token xfr_... --sha256 <that> --execute`. With no key, add `"name": "Client Co"`: that creates the organisation and its first account key, returned once. To let the sender keep working in it, add `--keep_sender_access '{"level": "act"}'` (spend needs `monthly_credit_cap`). Accepting again with the same token returns the same transfer with `already_accepted: true`.

Accept is one transaction, whole or refused. It is refused `transfer_holds_open` while credit holds are open (each times out within 30 minutes), `transfer_topup_in_flight` while an auto top-up charge is in flight, `transfer_workspace_frozen` while spending is frozen, and `transfer_snapshot_changed` when the workspace changed since the plan: plan again. After it, the receiver saves its own card and turns its schedules back on. Ranq resumes nothing by itself. The ledger shows one `transfer` row where the ownership starts.

### Plan content on the roadmap

The roadmap is not open to customers yet. Until it opens, every roadmap call answers `roadmap_not_enabled` (403).

The roadmap lists the content a project plans: videos, pages, agent skills and pitches. Each item targets prompts. When the item is live, Ranq shows if engines cite its URL for those prompts. Ranq reads stored answers only, so the roadmap costs no credits. Reads need `view`. Writes need `act`. Every write is a dry run until you add `execute: true` (CLI: `--execute`).

1. Add an item: `ranq api add_roadmap_item <project> --type video --title "What is Acme" --prompts '["<prompt id>"]' --execute`. On MCP, call `add_roadmap_item` with the same arguments. A pitch starts with `add_placement`, not here. A control prompt or a prompt with no cluster cannot be a target.
2. Set the status: `ranq api set_roadmap_item_status <project> --item <id> --status in_progress --assignee agent:writer --execute`. Any status can follow any status. Nothing needs approval first. Ranq records who set each status and when.
3. Publish: `ranq api set_roadmap_item_status <project> --item <id> --status published --published_url https://example.com/video --execute`. The status `published` needs `published_url`.
4. Read the outcome: `ranq api get_roadmap_item <project> --item <id>`. It shows the history and, per engine, market and week, the runs of the target prompts and the runs that cite the URL. Ranq says "cited after publish". It does not say the item caused it. A week with no collection shows `null`, not 0.

Weekly suggestions are off by default. A person turns them on with `ranq api set_roadmap_suggestions <project> --enabled --execute`. This call is on REST and the CLI only, not on MCP. Read them with `list_roadmap_suggestions`. Each one shows its evidence. Accept one with `accept_roadmap_suggestion`, or dismiss it with `dismiss_roadmap_suggestion --reason "..."`. A dismissed suggestion stays dismissed.

## 5. Your first session

Paste this into your agent. Change the domain and the cap.

The prompt sets up a control group. A control group is a small set of prompts that you never act on. Ranq holds out every page those prompts cite, so it never places you on them. If your visibility rises on the treated prompts and stays flat on the control prompts, the lift is real. Explicit tags always work, so the prompt tags the clusters itself.

```text
Use the ranq tools to run the visibility loop for my domain, example.com.
Spend at most 60 credits in total. Stop and tell me before you pass that.
Write down the current time in ISO format as SINCE.
1. Call get_balance. Stop if fewer than 60 credits are available.
2. Create a project for example.com with create_project, in the shape QUICKSTART section 3 shows. Add 10 prompts that a buyer would ask, 8 of them without my brand name; mark the other 2 branded: true. Tag every prompt with cluster C1, except 1 or 2 unbranded prompts that get C9. Add my 3 closest competitors as domains. If it is refused, read issues and apply each fix. Then call set_control_cluster with C9 and execute true.
3. Run run_visibility_check on one engine as a dry run. Show me the credits. Then run it with execute true. It returns a check id. Poll get_visibility_check until it is done.
4. Call process_project, then get_corpus.
5. Call check_presence as a dry run. Set max_pages so the visibility check, the checks and one brief fit inside the cap. Show me the plan, then execute. Then call process_project again.
6. Call get_presence_gap and show the top 5 pages. Each row is a page where engines cite others and not me.
7. Call create_publish_brief as a dry run with one of my prompts where my domain was not cited. Use the prompt text or id, not a page. Execute it only if the cap allows.
8. Call add_placement with the highest gap page it accepts, the url and a route. If it fails with control_cluster_page, try the next gap page. Then call record_action with action listed, that page as target, a short result, and the brief billing reservationId as ref. Use execute true on both.
9. Call get_report with since set to SINCE. Tell me what I must publish first from the brief and the recorded actions. after is null in a first session (no_check_after): lift shows only after the next check.
Never ask me for my key. Never call a tool that sends mail. If a step fails, report it and stop.
```

## 6. Limits

- Ranq does not send outreach through the API yet. The `send_approved` tool is refused on the hosted API. Sending is an operator step.
- Your agent cannot grant approvals. A human does that.
- A page that Ranq cannot read is recorded as unreadable. It gets no verdict, and you pay nothing for it.
- Ranq does not publish pages for you. A brief tells you or your agent what to publish.
- A paid check can stop early when a cap is reached. Empty results stay empty. Ranq never fills them in.
- Ranq asks AI engines your prompts to measure your visibility. It stores the raw answers so it can recompute results. It never resells them.
- The public package `@shyftai/ranq` runs only `ranq api` and `ranq-mcp`. Operator commands run from a checkout.

## 7. REST routes

Every tool is one REST call on `RANQ_API_URL` with the header `Authorization: Bearer <key>`. A POST sends a JSON body with the tool's arguments, minus the ones in the path, and needs the header `x-ranq-agent`. A `:name` in the route is that argument. A GET takes its other arguments as query parameters. The `workspace` argument is the header `x-ranq-workspace` (slug or id). A workspace key may leave it out. An account key reaches several workspaces and must send it on every call. Without it the call is refused with `workspace_required`. A workspace outside the key's reach is `workspace_not_in_reach`. `test/quickstart.test.ts` checks this table against the catalogue.

| Tool | Route | Routes |
|---|---|---|
| `list_workspaces` | `GET /v1/workspaces` | MCP, REST, CLI |
| `get_portfolio` | `GET /v1/portfolio` | MCP, REST, CLI |
| `list_projects` | `GET /v1/projects` | MCP, REST, CLI |
| `get_project` | `GET /v1/projects/:project` | MCP, REST, CLI |
| `get_visibility` | `GET /v1/projects/:project/visibility` | MCP, REST, CLI |
| `get_visibility_history` | `GET /v1/projects/:project/visibility/history` | MCP, REST, CLI |
| `diff_visibility` | `GET /v1/projects/:project/visibility/diff?from=:from&to=:to` | MCP, REST, CLI |
| `get_corpus` | `GET /v1/projects/:project/corpus` | MCP, REST, CLI |
| `get_presence_gap` | `GET /v1/projects/:project/presence-gap` | MCP, REST, CLI |
| `get_competitor_presence` | `GET /v1/projects/:project/competitor-presence` | MCP, REST, CLI |
| `get_mentions` | `GET /v1/projects/:project/mentions` | MCP, REST, CLI |
| `get_demand` | `GET /v1/projects/:project/demand` | MCP, REST, CLI |
| `check_page_presence` | `GET /v1/projects/:project/page-presence?url=:url` | MCP, REST, CLI |
| `list_placements` | `GET /v1/projects/:project/placements` | MCP, REST, CLI |
| `add_placement` | `POST /v1/projects/:project/placements` | MCP, REST, CLI |
| `set_placement_status` | `POST /v1/projects/:project/placements/status` | MCP, REST, CLI |
| `verify_placements` | `POST /v1/projects/:project/placements/verify` | MCP, REST, CLI |
| `get_placement_events` | `GET /v1/projects/:project/placements/:placement/events` | MCP, REST, CLI |
| `list_roadmap` | `GET /v1/projects/:project/roadmap` | MCP, REST, CLI |
| `get_roadmap_item` | `GET /v1/projects/:project/roadmap/:item` | MCP, REST, CLI |
| `add_roadmap_item` | `POST /v1/projects/:project/roadmap` | MCP, REST, CLI |
| `update_roadmap_item` | `POST /v1/projects/:project/roadmap/:item` | MCP, REST, CLI |
| `set_roadmap_item_status` | `POST /v1/projects/:project/roadmap/:item/status` | MCP, REST, CLI |
| `list_roadmap_suggestions` | `GET /v1/projects/:project/roadmap/suggestions` | MCP, REST, CLI |
| `accept_roadmap_suggestion` | `POST /v1/projects/:project/roadmap/suggestions/:suggestion/accept` | MCP, REST, CLI |
| `dismiss_roadmap_suggestion` | `POST /v1/projects/:project/roadmap/suggestions/:suggestion/dismiss` | MCP, REST, CLI |
| `set_roadmap_suggestions` | `POST /v1/projects/:project/roadmap/settings` | REST, CLI |
| `record_action` | `POST /v1/projects/:project/actions` | MCP, REST, CLI |
| `list_actions` | `GET /v1/projects/:project/actions` | MCP, REST, CLI |
| `get_report` | `GET /v1/projects/:project/report?since=:since` | MCP, REST, CLI |
| `get_project_events` | `GET /v1/projects/:project/events` | MCP, REST, CLI |
| `list_prompts` | `GET /v1/projects/:project/prompts` | MCP, REST, CLI |
| `add_prompts` | `POST /v1/projects/:project/prompts` | MCP, REST, CLI |
| `remove_prompt` | `POST /v1/projects/:project/prompts/:prompt/remove` | MCP, REST, CLI |
| `list_keywords` | `GET /v1/projects/:project/keywords` | MCP, REST, CLI |
| `add_keywords` | `POST /v1/projects/:project/keywords` | MCP, REST, CLI |
| `set_prompt_translation` | `POST /v1/projects/:project/prompts/:prompt/translations` | MCP, REST, CLI |
| `list_markets` | `GET /v1/markets` | MCP, REST, CLI |
| `get_prices` | `GET /v1/prices` | MCP, REST, CLI |
| `get_project_markets` | `GET /v1/projects/:project/markets` | MCP, REST, CLI |
| `set_project_markets` | `POST /v1/projects/:project/markets` | MCP, REST, CLI |
| `start_scan` | `POST /v1/scans` | MCP, REST, CLI |
| `get_scan` | `GET /v1/scans/:scan` | MCP, REST, CLI |
| `create_checkout` | `POST /v1/billing/checkout` | MCP, REST, CLI |
| `get_auto_topup` | `GET /v1/billing/auto-topup` | MCP, REST, CLI |
| `set_auto_topup` | `POST /v1/billing/auto-topup` | MCP, REST, CLI |
| `list_fees` | `GET /v1/billing/fees` | MCP, REST, CLI |
| `cancel_fee` | `POST /v1/billing/fees/:fee/cancel` | MCP, REST, CLI |
| `get_balance` | `GET /v1/billing/balance` | MCP, REST, CLI |
| `get_ledger` | `GET /v1/billing/ledger` | MCP, REST, CLI |
| `create_scan_checkout` | `POST /v1/public/scans/checkout` | MCP, REST, CLI |
| `get_scan_by_session` | `GET /v1/public/scans/by-session/:session` | MCP, REST, CLI |
| `set_competitors` | `POST /v1/projects/:project/competitors` | MCP, REST, CLI |
| `set_prompt_cluster` | `POST /v1/projects/:project/prompts/:prompt/cluster` | MCP, REST, CLI |
| `set_control_cluster` | `POST /v1/projects/:project/control-cluster` | MCP, REST, CLI |
| `create_publish_brief` | `POST /v1/projects/:project/briefs` | MCP, REST, CLI |
| `run_visibility_check` | `POST /v1/projects/:project/visibility-check` | MCP, REST, CLI |
| `get_visibility_check` | `GET /v1/projects/:project/visibility-checks/:check` | MCP, REST, CLI |
| `get_page_evidence` | `GET /v1/projects/:project/page-evidence?url=:url&query=:query&market=:market` | MCP, REST, CLI |
| `refresh_corpus` | `POST /v1/projects/:project/corpus/refresh` | MCP, REST, CLI |
| `process_project` | `POST /v1/projects/:project/process` | MCP, REST, CLI |
| `check_presence` | `POST /v1/projects/:project/presence/check` | MCP, REST, CLI |
| `get_collection_schedule` | `GET /v1/projects/:project/schedule` | MCP, REST, CLI |
| `set_collection_schedule` | `POST /v1/projects/:project/schedule` | MCP, REST, CLI |
| `list_site_connections` | `GET /v1/projects/:project/connections` | MCP, REST, CLI |
| `connect_site` | `POST /v1/projects/:project/connections` | REST, CLI |
| `complete_site_connection` | `POST /v1/projects/:project/connections/:provider/complete` | REST, CLI |
| `disconnect_site` | `POST /v1/projects/:project/connections/:provider/disconnect` | REST, CLI |
| `create_invite` | `POST /v1/invites` | REST, CLI |
| `cancel_invite` | `POST /v1/invites/:invite/cancel` | REST, CLI |
| `accept_invite` | `POST /v1/public/invites/accept` | REST, CLI |
| `list_grants` | `GET /v1/grants` | REST, CLI |
| `set_grant` | `POST /v1/grants/:organisation` | REST, CLI |
| `revoke_grant` | `POST /v1/grants/:organisation/revoke` | REST, CLI |
| `list_spend_requests` | `GET /v1/spend-requests` | REST, CLI |
| `approve_spend` | `POST /v1/spend-requests/:spend_request/approve` | REST, CLI |
| `reject_spend` | `POST /v1/spend-requests/:spend_request/reject` | REST, CLI |
| `offer_transfer` | `POST /v1/transfer` | REST, CLI |
| `cancel_transfer` | `POST /v1/transfer/cancel` | REST, CLI |
| `accept_transfer` | `POST /v1/public/transfers/accept` | REST, CLI |
| `get_site_report` | `GET /v1/projects/:project/site-report` | MCP, REST, CLI |
| `create_project` | `POST /v1/projects` | MCP, REST, CLI |
| `request_approval` | `POST /v1/projects/:project/approvals` | MCP, REST, CLI |
| `list_approvals` | `GET /v1/projects/:project/approvals` | MCP, REST, CLI |
| `get_approval` | `GET /v1/projects/:project/approvals/:id` | MCP, REST, CLI |
| `send_approved` | `POST /v1/projects/:project/approvals/:id/send` | MCP, REST |
