# Scopes

Every operation in the public API declares the scope that it needs. A credential has a set of scopes. VitalSentinel enforces the intersection of that set with the current workspace role of the person who created the credential.

There are **37 scopes** that you can grant, in three verbs:

```
read:   overview workspaces domains uptime ssl crux synthetic rum analytics
        gsc indexing robots sitemap alerts notifications reports credits logs
        pages forms site_health

write:  crux synthetic analytics gsc indexing robots alerts notifications reports
        pages forms site_health

run:    analytics gsc reports pages
```

| Verb | Tier in the app | What it means |
|---|---|---|
| `read:<module>` | **Read** | Returns data. Every module has one. |
| `write:<module>` | **Configure** | Creates, changes or deletes stored settings. Only modules with settings in the dashboard have one. |
| `run:<module>` | **Run** | Starts a job that spends credits. Only modules with a job button in the dashboard have one. |

The **API access** page and the OAuth consent screen show the scopes in these three tiers: **Read**, **Configure** and **Run**. Each scope shows a one-line description and the scope string. The **API access** page also shows the module name above the description. The "?" next to a scope opens a longer explanation of what the scope can and cannot do.

There are three verbs and not two, because the HTTP method does not tell you if an operation changes something. Some POSTs change nothing, and some POSTs spend credits. If one `write:` scope covered both, a credential that can rename an alert rule could also spend the credit balance of the workspace.

## Implication rules [#implication-rules]

- **`write:X` includes `read:X`.** You cannot correctly change settings that you cannot read. If you had to ask for both, many credentials would fail in the middle of a workflow.
- **`run:X` includes nothing.** To start a job and to change settings are two different risks. If you need both, ask for both.

## There is no `read:all` [#there-is-no-readall]

<Callout type="warn">
  `read:all`, `write:all` and `run:all` do not exist and never will. VitalSentinel blocks all three strings permanently, so every credential must name what it needs.
</Callout>

This costs some seconds when you create a key. It makes a leaked key a much smaller problem:

- **A `write:` scope can cause damage that nobody sees.** A credential that can delete an alert rule stops the alerts of a team. There is no sign until something breaks.
- **A `run:` scope spends credits.** Every job that a `run:` scope starts costs 25 API credits, the highest price.
- **`read:overview` replaces `read:all`.** It gives one request with the cross-module summary of a domain, and nothing below it. That is much less data than the full detail of every module.

Ask for the smallest set that does the job. If you need only a health summary, `read:overview` and `read:domains` are enough.

## Read scopes [#read-scopes]

The description is the text that the **API access** page and the consent screen show for each scope.

| Scope | Description in the app | Notes |
|---|---|---|
| `read:overview` | Read the cross-module summary for a domain, with period comparison | One summary of a domain. No pages, queries or single checks |
| `read:workspaces` | Read your workspaces | Name, plan and subscription status. No members or billing details |
| `read:domains` | Read the domains in your workspaces | Includes the health summary of each domain. Cannot add, rename or remove a domain |
| `read:uptime` | Read Uptime Monitoring data | Cannot change the uptime settings or start a check |
| `read:ssl` | Read SSL certificate data | Cannot renew or check a certificate again |
| `read:crux` | Read CrUX Monitoring data | Cannot start a refresh |
| `read:synthetic` | Read Synthetic Monitoring data | Cannot start a test |
| `read:rum` | Read RUM Monitoring data | Never shows a single visitor |
| `read:analytics` | Read Web Analytics data | Shows no single visitor. Cannot start a report |
| `read:gsc` | Read Google Search Console data | Changes nothing in Google Search Console |
| `read:indexing` | Read Indexing Monitoring data | Cannot ask Google to inspect or index a URL |
| `read:robots` | Read Robots.txt Monitoring data | Reads the stored copy. Never changes the file on your site |
| `read:sitemap` | Read sitemap scanning data | The [Sitemap Monitoring](/sitemap-monitoring/overview) scan settings and statistics, and every URL found. Cannot start a scan |
| `read:logs` | Read Server Log Monitoring data | Includes the cross-module reports. Never shows visitor IP addresses |
| `read:pages` | Read Page Monitoring data and stored page versions | Full HTML, diffs and issue detail cost 5 API credits |
| `read:forms` | Read Form Monitoring forms, counts and alerts | Tracked and suggested forms, their counts, alerts and incidents. Does not get the code of a form. Cannot track a form or change anything |
| `read:site_health` | Read Site Health data and stored page versions | Cannot change a setting, resolve an issue or start a check |
| `read:alerts` | Read alert rules and their history | Shows the rules of all members, with their owners. Includes Form Monitoring alerts, with the form name and a page path |
| `read:notifications` | Read notification settings | Only the notifications of the credential's owner |
| `read:reports` | Read report templates and generated reports | Report data as JSON, and the status of a PDF job. Cannot make a PDF |
| `read:credits` | Read the workspace's per-request credit spending log | Needs the owner or admin role for the full log. The balance needs no scope |

## Configure scopes [#configure-scopes]

Every `write:` operation is refused when the workspace subscription is past due, canceled or expired. The dashboard refuses the same changes.

| Scope | Description in the app | Notes |
|---|---|---|
| `write:crux` | Change CrUX Monitoring configuration | Adds and removes monitored URLs, within the plan limit |
| `write:synthetic` | Change Synthetic Monitoring configuration | Monitored URLs, test frequency and locations, within the plan limits |
| `write:analytics` | Change Web Analytics configuration | Currency, stored text, funnels and conversion goals |
| `write:gsc` | Change Search Console brand terms, topics and dismissed rows | Changes nothing in Google Search Console |
| `write:indexing` | Change Indexing Monitoring configuration | URL groups, the priority queue and enrolled properties |
| `write:robots` | Change Robots.txt Monitoring configuration | Notes on changes, and the sitemap conflict recompute. Cannot change the file on your site |
| `write:alerts` | Create and change alert rules | Includes the rules of other members |
| `write:notifications` | Change notification settings | Only the notifications and settings of the credential's owner |
| `write:reports` | Create and change report templates | Cannot make a PDF |
| `write:pages` | Change Page Monitoring configuration and resolve its issues | Watched pages, elements, ignore rules, defaults and issue actions, also for many pages at once. Deletes the stored history of a page. Cannot start a check |
| `write:forms` | Track forms and change their settings and alerts | Track forms, change their name, method and alerts, issue new code and stop tracking them. Includes `read:forms`, like every `write:` scope |
| `write:site_health` | Change Site Health configuration and resolve its issues | Settings, pinned URLs, ignore rules and issue actions. Asks for **I've fixed it – check again** on an issue and **I’ve allowlisted you – check again** on crawler access |

## Run scopes [#run-scopes]

| Scope | Description in the app |
|---|---|
| `run:analytics` | Run Web Analytics reports (25 API credits per run) |
| `run:gsc` | Run Google Search Console reports (25 API credits per run) |
| `run:reports` | Generate PDF reports (25 API credits per run) |
| `run:pages` | Check a watched page now (25 API credits per check) |

A `run:` scope gives no reads. To get the result of a report, you also need the `read:` scope of the module.

One `run:pages` call can check up to 500 pages, at 25 credits for each check that starts. `run:pages` checks use an hourly allowance for each workspace. The size of the allowance depends on your plan: 5 checks an hour on Free and 20 on paid plans. Checks from **Check this page again** in the app use the same allowance. See [Plans and limits](/workspace/plans-and-limits#alerts-api-and-theo).

There is no `run:site_health`. Your plan sets how often Site Health Monitoring checks pages, so the API cannot start a check of the site. `write:site_health` can only ask for the two checks that the dashboard also starts: up to 10 pages of one issue again, or crawler access again.

The four `run:` scopes use a tighter [rate-limit bucket](/api/rate-limits) than reads. Every call that starts a job needs an `Idempotency-Key` header. See [Conventions](/api/conventions#idempotency-keys-are-mandatory-on-run-endpoints).

## A credential is a ceiling, not a grant [#a-credential-is-a-ceiling-not-a-grant]

This is the most common cause of confusion.

**The real permission is the scopes of the credential, limited by the *current* workspace role of its creator.** VitalSentinel calculates this again on every request.

An API key does not keep a copy of the permissions that its creator had. It follows them. If an admin becomes a member, every key that this person created loses its `write:` and `run:` power within about one minute. Nobody has to change the key. If the person becomes an admin again, the power comes back in the same way.

Scopes can only make a role narrower. They never make it wider. A key that a member created can hold `write:crux`. It still cannot add a CrUX URL, because that operation needs the admin role.

### What a member can do [#what-a-member-can-do]

A **member can read every module but cannot change shared settings.** There are two exceptions:

| Scope | Why a member keeps it |
|---|---|
| `write:notifications` | The notifications, the read state and the notification settings belong to each person |
| `run:reports` | A member can generate a PDF of an existing report template |

All other `write:` and `run:` operations need the **owner** or **admin** role. This includes alert rules, funnels, conversion goals, indexing groups, Search Console brand terms and topics, report templates and robots.txt notes. It also includes the settings and issue actions of Page Monitoring and Site Health Monitoring, tracked forms, and a Page Monitoring check (`run:pages`).

The dashboard enforces the same rule. The API and the dashboard cannot disagree.

### Which reads depend on the role [#which-reads-depend-on-the-role]

A credential that holds every `read:` scope gets the same module data for an owner, an admin and a member. Workspace billing depends on the role, and billing is not in the public API.

`GET /credits/log` is different. An owner or an admin sees the requests of every member. A member sees only the requests made with their own credentials. An OAuth credential also needs the `read:credits` scope for this route. `GET /credits` is open to every role, because a member with a cap must see if the workspace or the member is out of credits.

### Ask, do not guess [#ask-do-not-guess]

`GET /me` returns both sets:

```json
{
  "scopes": ["read:crux", "write:crux", "read:domains"],
  "effective_scopes": ["read:crux", "read:domains"],
  "roles": { "e0d4a2c8-1b77-4f39-9c52-6a8d3e0f4b21": "member" }
}
```

<Callout type="warn">
  Build the capability list of your client from **`effective_scopes`**. A client that uses `scopes` shows operations that always fail with `403`, and it tries them again and again.
</Callout>

For a read-only credential, the two sets are always the same. The difference matters only when you ask for `write:` or `run:`.

## Scopes that do not exist [#scopes-that-do-not-exist]

VitalSentinel blocks some scope strings permanently. They are not missing features. Each one is a decision, and a test makes sure that the registry never contains them:

| Blocked scope | Why |
|---|---|
| `read:all`, `write:all`, `run:all` | A scope for everything would remove the reason to name what you need |
| `write:domains`, `write:workspaces`, `run:domains`, `run:workspaces` | You manage workspaces and domains only in the dashboard |
| `write:ssl`, `write:rum` | These modules have no settings that a user can change |
| `read:rum.sessions` | The API never gives the records of a single visitor session, at any scope |
| `write:uptime`, `write:sitemap` | The dashboard does not let you change these settings, and the API cannot do more than the dashboard |
| `run:crux` | CrUX collection uses a key pool that all customers share, so a loop from one customer would slow collection for everyone |
| `run:sitemap`, `run:synthetic` | A script trigger would cause permanent extra collection or a test bill with no limit, for data that the schedule collects anyway |
| `run:robots` | The one robots.txt job, the sitemap conflict recompute, replaces its own result. A repeat cannot cause damage, so it uses `write:robots` |
| `run:uptime`, `run:ssl`, `run:alerts`, `run:notifications`, `run:indexing`, `run:rum` | The dashboard has no manual trigger for these |
| `read:billing`, `write:billing`, `run:billing` | Billing is not in the API |
| `write:credits`, `run:credits` | Credits are a total that VitalSentinel calculates. There is nothing to change or start |

## Next [#next]

<Cards>
  <Card title="Endpoint reference" href="/api/endpoints">
    The scope that each operation needs.
  </Card>
  <Card title="Errors" href="/api/errors">
    How to tell `insufficient-scope` and `insufficient-role` apart, and why it matters.
  </Card>
</Cards>

## Related [#related]

- [API introduction](/api/introduction) - what the API covers
- [Authentication](/api/authentication) - previous step: get a credential
- [Conventions](/api/conventions) - next step: rules for every endpoint
- [API access](/account/api-access) - select the scopes of a key
- [Tool reference](/mcp/tools) - the scope that each MCP tool requires
