Get started with Incidents API
How Incidents API works
Our API follows the JSON:API specification. Generate a client or import the API into Postman with its OpenAPI document.
API requests to the Incidents API are authorized using the Bearer Authentication standard. Include an Authorization: Bearer $TOKEN header in your requests.
Get a global API token
A global API token is a token valid across all your teams, for managing anything within Better Stack.
- Go to Better Stack → API tokens → Global tokens
- Copy an existing token or create a new one in the Global API tokens section.
With a global API token, pick the team with the team_id parameter, for example t123. Get the IDs of all your teams via List all teams.
Get an Incidents API token
An Incidents API token is a team-scoped token for managing your Incidents resources. You can get a separate API token for each of your teams.
- Go to Better Stack → API tokens → Team-based tokens
- Select your team.
- Copy an existing token labeled Incidents, or create a new one with Incidents selected.
Terraform support
You can manage your Better Stack resources using Terraform.