Skip to Content
API

Scopes

The 37 API scopes in the Read, Configure and Run tiers, the implication rules, and why a credential can have less power than its scopes.

View as Markdown

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
VerbTier in the appWhat it means
read:<module>ReadReturns data. Every module has one.
write:<module>ConfigureCreates, changes or deletes stored settings. Only modules with settings in the dashboard have one.
run:<module>RunStarts 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

  • 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

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.

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

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

ScopeDescription in the appNotes
read:overviewRead the cross-module summary for a domain, with period comparisonOne summary of a domain. No pages, queries or single checks
read:workspacesRead your workspacesName, plan and subscription status. No members or billing details
read:domainsRead the domains in your workspacesIncludes the health summary of each domain. Cannot add, rename or remove a domain
read:uptimeRead Uptime Monitoring dataCannot change the uptime settings or start a check
read:sslRead SSL certificate dataCannot renew or check a certificate again
read:cruxRead CrUX Monitoring dataCannot start a refresh
read:syntheticRead Synthetic Monitoring dataCannot start a test
read:rumRead RUM Monitoring dataNever shows a single visitor
read:analyticsRead Web Analytics dataShows no single visitor. Cannot start a report
read:gscRead Google Search Console dataChanges nothing in Google Search Console
read:indexingRead Indexing Monitoring dataCannot ask Google to inspect or index a URL
read:robotsRead Robots.txt Monitoring dataReads the stored copy. Never changes the file on your site
read:sitemapRead sitemap scanning dataThe Sitemap Monitoring scan settings and statistics, and every URL found. Cannot start a scan
read:logsRead Server Log Monitoring dataIncludes the cross-module reports. Never shows visitor IP addresses
read:pagesRead Page Monitoring data and stored page versionsFull HTML, diffs and issue detail cost 5 API credits
read:formsRead Form Monitoring forms, counts and alertsTracked 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_healthRead Site Health data and stored page versionsCannot change a setting, resolve an issue or start a check
read:alertsRead alert rules and their historyShows the rules of all members, with their owners. Includes Form Monitoring alerts, with the form name and a page path
read:notificationsRead notification settingsOnly the notifications of the credential's owner
read:reportsRead report templates and generated reportsReport data as JSON, and the status of a PDF job. Cannot make a PDF
read:creditsRead the workspace's per-request credit spending logNeeds the owner or admin role for the full log. The balance needs no scope

Configure scopes

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

ScopeDescription in the appNotes
write:cruxChange CrUX Monitoring configurationAdds and removes monitored URLs, within the plan limit
write:syntheticChange Synthetic Monitoring configurationMonitored URLs, test frequency and locations, within the plan limits
write:analyticsChange Web Analytics configurationCurrency, stored text, funnels and conversion goals
write:gscChange Search Console brand terms, topics and dismissed rowsChanges nothing in Google Search Console
write:indexingChange Indexing Monitoring configurationURL groups, the priority queue and enrolled properties
write:robotsChange Robots.txt Monitoring configurationNotes on changes, and the sitemap conflict recompute. Cannot change the file on your site
write:alertsCreate and change alert rulesIncludes the rules of other members
write:notificationsChange notification settingsOnly the notifications and settings of the credential's owner
write:reportsCreate and change report templatesCannot make a PDF
write:pagesChange Page Monitoring configuration and resolve its issuesWatched 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:formsTrack forms and change their settings and alertsTrack forms, change their name, method and alerts, issue new code and stop tracking them. Includes read:forms, like every write: scope
write:site_healthChange Site Health configuration and resolve its issuesSettings, 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

ScopeDescription in the app
run:analyticsRun Web Analytics reports (25 API credits per run)
run:gscRun Google Search Console reports (25 API credits per run)
run:reportsGenerate PDF reports (25 API credits per run)
run:pagesCheck 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.

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 than reads. Every call that starts a job needs an Idempotency-Key header. See Conventions.

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

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

ScopeWhy a member keeps it
write:notificationsThe notifications, the read state and the notification settings belong to each person
run:reportsA 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

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

GET /me returns both sets:

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

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.

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

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 scopeWhy
read:all, write:all, run:allA scope for everything would remove the reason to name what you need
write:domains, write:workspaces, run:domains, run:workspacesYou manage workspaces and domains only in the dashboard
write:ssl, write:rumThese modules have no settings that a user can change
read:rum.sessionsThe API never gives the records of a single visitor session, at any scope
write:uptime, write:sitemapThe dashboard does not let you change these settings, and the API cannot do more than the dashboard
run:cruxCrUX collection uses a key pool that all customers share, so a loop from one customer would slow collection for everyone
run:sitemap, run:syntheticA script trigger would cause permanent extra collection or a test bill with no limit, for data that the schedule collects anyway
run:robotsThe 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:rumThe dashboard has no manual trigger for these
read:billing, write:billing, run:billingBilling is not in the API
write:credits, run:creditsCredits are a total that VitalSentinel calculates. There is nothing to change or start

Next

On this page

VitalSentinel

Know what changed before it costs you revenue

A stray noindex, a robots.txt change, a slower LCP, a Googlebot crawl drop: one alert, with what to fix first.

  • Free plan for 1 domain
  • Set up in minutes
  • No credit card required