# API introduction

VitalSentinel has a REST API that returns the same monitoring data as the dashboard. It covers uptime, SSL, RUM, CrUX, Synthetic Monitoring, Web Analytics, Google Search Console and Indexing Monitoring. It also covers robots.txt, Sitemap Monitoring, Site Health Monitoring, Page Monitoring, Form Monitoring, Server Log Monitoring, alerts, notifications and reports.

It is a separate surface from the one the dashboard itself uses. It has its own authentication (bearer tokens, never session cookies), its own frozen response schemas, its own error format, and its own OpenAPI document. That separation is the point: the dashboard's internal API changes whenever the dashboard changes, and your integration should not.

## Base URL [#base-url]

```
https://app.vitalsentinel.com/api/public/v1
```

Every path in this documentation is relative to that base. `https://api.vitalsentinel.com/api/public/v1` serves the identical routes on an alternate hostname, so moving between the two is a hostname swap and nothing else.

The OpenAPI document and the generated clients point at the application host, because that URL is correct in every environment including local development.

## Reference documents [#reference-documents]

| Document | URL |
|---|---|
| OpenAPI 3.1 specification | `https://app.vitalsentinel.com/api/public/v1/openapi.json` |
| Interactive API browser | `https://app.vitalsentinel.com/api/public/v1/docs` |

The OpenAPI document is unauthenticated and is the authoritative contract. Anything not in it is not promised. See [Versioning and stability](/api/versioning) for what that guarantee covers.

## The one call worth trying first [#the-one-call-worth-trying-first]

`GET /health` is unauthenticated, so you can confirm you are reaching the right host before you have a credential:

```bash
curl https://app.vitalsentinel.com/api/public/v1/health
# {"status":"ok"}
```

## Available on every plan [#available-on-every-plan]

API access is not a paid add-on and is not gated by plan tier, Free included. Protection comes from the shape of the [rate limits](/api/rate-limits) and the [credit allowance](/api/credits), not from feature gating.

Two limits apply:

- **API credits per billing cycle.** The allowance depends on your plan. Many requests are free, and cached answers cost zero. See [API credits](/api/credits).
- **How many live API keys one workspace can hold.** See [Plans and limits](/workspace/plans-and-limits).

## Choosing a credential type [#choosing-a-credential-type]

<Cards>
  <Card title="API key" href="/api/authentication">
    A long-lived secret you create in the dashboard and paste into your own script, server, or CI pipeline. Belongs to one workspace. The right choice when you are building something for yourself.
  </Card>
  <Card title="OAuth 2.1 app" href="/api/authentication">
    A browser consent flow that issues short-lived tokens on behalf of a signed-in user, across the workspaces that user picked. The right choice when you are building something other people sign in to.
  </Card>
</Cards>

## What the API does not cover [#what-the-api-does-not-cover]

The API does less than the dashboard, on purpose. VitalSentinel decided to leave out these functions:

- **Creating or editing workspaces and domains.** Both are read-only through the API. The API also cannot [verify a domain](/getting-started/domain-setup/verify-ownership). VitalSentinel monitors a domain only after you verify it in the app.
- **Billing and subscription management.** The API has no billing data.
- **Creating or revoking credentials.** One credential must not create another credential. Thus you manage keys only in the app.
- **Google account connection.** You connect or disconnect a Google account only in the app.
- **Individual visitor session records.** RUM responses never include a `session_id`, at any scope. See [Conventions](/api/conventions#rum-is-stricter-here-than-the-dashboard).
- **Changes that the dashboard does not allow.** If a person cannot make a change in the app, a credential cannot make it through the API.

## Where to go next [#where-to-go-next]

<Cards>
  <Card title="Quick start" href="/api/quick-start">
    From no credential to a useful answer, in curl, Python, and TypeScript.
  </Card>
  <Card title="Authentication" href="/api/authentication">
    API keys, rotation, IP allowlists, and the full OAuth 2.1 flow.
  </Card>
  <Card title="Scopes" href="/api/scopes">
    The 37 scopes, what each one reaches, and why your key may hold fewer powers than you granted it.
  </Card>
  <Card title="Endpoint reference" href="/api/endpoints">
    Every operation, grouped by module.
  </Card>
</Cards>

## Pages of API [#pages-of-api]

- [API quick start](/api/quick-start) - create a key and make your first calls
- [Authentication](/api/authentication) - API keys and the OAuth 2.1 flow
- [Scopes](/api/scopes) - the 37 scopes and what each one reaches
- [Conventions](/api/conventions) - pagination, time ranges and idempotency
- [Endpoint reference](/api/endpoints) - every operation, grouped by module
- [Errors](/api/errors) - the problem format and the error catalog
- [Rate limits](/api/rate-limits) - the buckets, the concurrency cap and the daily ceilings
- [API Credits](/api/credits) - how VitalSentinel meters API and MCP usage
- [Versioning and stability](/api/versioning) - what the v1 contract guarantees

## Related [#related]

- [MCP introduction](/mcp/introduction) - the same data through an AI assistant
- [API access](/account/api-access) - create and manage your API keys
- [Data access log](/workspace/data-access-log) - every API and MCP request, by credential
- [Plans and limits](/workspace/plans-and-limits) - the credit allowance of each plan
