Get started with Instatus API

All endpoints are under the URL https://api.instatus.com. They generally follow the REST architecture.

All requests must be encoded as JSON with the Content-Type: application/json header.

Responses from the Instatus API, including errors, are encoded as JSON as well.

Authentication

Requests to Instatus API must send an API key through the Authorization header:

Authorization: Bearer <API_KEY>

Create keys in Dashboard › Developer with Create key. You can have several keys, each with its own name, such as "GitHub Actions" or "Terraform". Keys start with inst_sk_.

What a key can do

Each key has its own settings:

  • Role: Member, Editor, or a custom role on the Business plan. The role decides what the key can view and change, the same way it does for people. Keys can't be Owner, so billing, roles and deleting things stay with people.
  • Access: View and change, or View only. A View only key can't change anything, whatever its role allows.
  • Projects: all projects, including ones you add later, or only the ones you pick.
  • Expiry: the date the key stops working. On the Free plan a key can last up to 90 days, on Pro up to 1 year, and on Business and Enterprise any length, including no expiry. A team owner can set a shorter limit in Team settings › API keys. Keys made before key settings aren't affected, and existing keys keep their date when your plan changes.
  • Allowed IPs: on the Business plan, the key only works from the IP addresses or ranges you list.

A key belongs to the team or to you:

  • Team keys keep working when the person who made them leaves the team. Use them for CI, scripts and integrations.
  • Personal keys act as you and never do more than you can. They can use Same as you as their role, and stop working if you leave the team.

Team owners set the rules for keys in Team settings › API keys: the longest a key can last, whether members can make team keys, and whether personal keys are allowed.

Creating, changing, rotating or revoking a key shows in the team's Activity, and so does a key revoked because it leaked. Anything done through a key or a connected app shows there as person via key or app name.

Keep keys safe

  • A key is shown once, when you create it. Copy it then and store it as a secret.
  • To replace a key, open it and click Rotate. Choose how long the old key keeps working, up to 7 days, so you have time to update everything that uses it.
  • Revoke a key from its menu and it stops working at once.

Keys made before key settings keep working unchanged. They show as "Made before key settings" in Developer, where you can add limits to them or replace them with a new key.

Key errors

When a key can't make a request, the error has one of these codes, and its message says what to change.

CodeStatusWhy
invalid_key401The key doesn't exist. Check that you copied all of it.
key_expired401The key is past its expiry date.
key_revoked401The key was revoked.
key_owner_left401The person a personal key acts as left the team.
key_view_only403The key is View only and the request changes something.
role_not_allowed403The key's role can't view or change this.
ip_not_allowed403The request came from an IP address the key doesn't allow.
page_not_allowed403The key can't use this project.
account_action_not_allowed403Keys can't create or remove pages, teams or workspaces. Use the dashboard.
route_not_allowed403The route isn't part of the documented API.

Get your Page ID

Your Page ID can be found in the dashboard by following these steps:

  1. Go to your dashboard.
  2. Right-click your project in the top-left corner to open the menu.
  3. Click Copy Project ID and your page ID is copied to your clipboard.
Page ID

Errors

All API endpoints contain a code and message within the error responses.

{
"error": {
"code": "forbidden",
"message": "Not authorized"
}
}

Status Values

Possible page statuses. This is the granular status returned by the current API (v2 and later). The legacy summary.json endpoint and webhook notifications use a condensed form with only UP, HASISSUES and UNDERMAINTENANCE.

  • UP
  • HASISSUES
  • ALLUNDERMAINTENANCE
  • ALLDEGRADEDPERFORMANCE
  • ALLPARTIALOUTAGE
  • ALLMINOROUTAGE
  • ALLMAJOROUTAGE
  • SOMEUNDERMAINTENANCE
  • SOMEDEGRADEDPERFORMANCE
  • SOMEPARTIALOUTAGE
  • SOMEMINOROUTAGE
  • SOMEMAJOROUTAGE
  • ONEUNDERMAINTENANCE
  • ONEDEGRADEDPERFORMANCE
  • ONEPARTIALOUTAGE
  • ONEMINOROUTAGE
  • ONEMAJOROUTAGE

Possible component statuses:

  • OPERATIONAL
  • UNDERMAINTENANCE
  • DEGRADEDPERFORMANCE
  • PARTIALOUTAGE
  • MAJOROUTAGE

Possible incident statuses:

  • INVESTIGATING
  • IDENTIFIED
  • MONITORING
  • RESOLVED

Possible maintenance statuses:

  • NOTSTARTEDYET
  • INPROGRESS
  • COMPLETED

Jump to endpoints: