Manage every Better Stack product with one API. Incidents, Telemetry, Errors and AI SRE take the same global API token, and share one request format and one way to page through lists.
What do you want to manage via API:
Send a token in the Authorization: Bearer $TOKEN header of every request.
team_id query parameter, like t123.Teams, usage and pricing need a global API token.
Responses follow the JSON:API specification: each record sits under data, with its id as a string and its fields under attributes. To create or update a record, send its attributes at the top level of a JSON request body.
Lists come in pages of 50 records unless the endpoint says otherwise. Pass per_page for up to 250, and page for a specific page, starting with 1. The response's pagination object holds the URLs of the first, last, prev and next pages, and total_count, the total number of results across all pages. To go through every page, request the URL in pagination.next until it's null.
Each API comes with an OpenAPI 3.1 document, to generate a client or to import into tools such as Postman:
Define your resources in code with Terraform or Pulumi, run commands from your terminal with the CLI, or let your AI assistant work through the MCP server.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.