Skip to content

API & automation

Read-only service-account tokens, the OpenAPI descriptions, every ingest endpoint and rate limits.

In the console: Console → Settings → Projects & access → Service accounts

All guides

Scripts, dashboards and other tools read AppStatus with a service-account token. A token reads one workspace and cannot change anything: every request other than GET and HEAD is refused. Sending data never needs a service account — that is what scoped ingest keys are for.

Why use it

  • You want to read AppStatus from scripts, reports or your own dashboards.

How it works

  1. 1A service-account token (sa_…) is matched by hash, pinned to its workspace and allowed only GET and HEAD on the same APIs the console uses.

What you get

  • Read access to monitors, heartbeats, incidents, status pages (api.appstatus.io) and to APM, errors, logs, hosts and Kubernetes (agent.appstatus.io).
  • Optional expiry date and a last-used time per token.
  • OpenAPI descriptions of both APIs at /openapi.json.
  • For push instead of pull: signed webhooks. For AI assistants: the MCP gateway.

Before you start

  • Owner or Admin role to create a service account.

Set it up

Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.

  1. 1

    Create a service account

    Settings → Projects & access → Service accounts → New service account. Give it a name and, if you like, an expiry date. Copy the sa_… token — only a hash is stored, so it cannot be shown again.

  2. 2

    Call the API

    terminal
    TOKEN=sa_...
    curl -s -H "Authorization: Bearer $TOKEN" https://api.appstatus.io/api/v1/monitors
    curl -s -H "Authorization: Bearer $TOKEN" https://api.appstatus.io/api/v1/incidents
    curl -s -H "Authorization: Bearer $TOKEN" https://agent.appstatus.io/api/v1/apm/services
    curl -s -H "Authorization: Bearer $TOKEN" https://agent.appstatus.io/api/v1/errors/issues
    curl -s -H "Authorization: Bearer $TOKEN" "https://agent.appstatus.io/api/v1/logs/search?q=timeout"
  3. 3

    Read the API description

    Both services publish an OpenAPI document you can load into Postman, Insomnia or a code generator.

    terminal
    curl -s https://api.appstatus.io/openapi.json   > appstatus-api.json
    curl -s https://agent.appstatus.io/openapi.json > appstatus-agent.json

Use it

  1. 1

    Ingest endpoints (send data with an ingest key)

    Every ingest call takes Authorization: Bearer <ingest key> (X-Ingest-Key and X-API-Key headers also work).

    reference
    OTLP traces / logs        POST https://agent.appstatus.io/v1/traces   /v1/logs   (http/protobuf or JSON)
    Logs (JSON batches)       POST https://agent.appstatus.io/api/v1/ingest/log-intake
    Errors                    POST https://agent.appstatus.io/api/v1/ingest/errors
    Prometheus remote write   POST https://agent.appstatus.io/api/v1/ingest/prometheus/write
    Prometheus text           POST https://agent.appstatus.io/api/v1/ingest/prometheus/text
    Deploy events             POST https://agent.appstatus.io/api/v1/ingest/deploy-events
    Pipeline runs             POST https://agent.appstatus.io/api/v1/ingest/pipelines/runs
    Serverless invocations    POST https://agent.appstatus.io/api/v1/ingest/serverless/invocations
    Cloud cost                POST https://agent.appstatus.io/api/v1/ingest/cloud-cost
    Security events           POST https://agent.appstatus.io/api/v1/ingest/security-events
    Heartbeat ping            POST https://api.appstatus.io/api/v1/heartbeats/ping/<key>   (no key header)
  2. 2

    Rate limits

    Ingest requests per second per workspace: Free 20, Starter 100, Pro 500, Business 2,000, Enterprise 10,000. Past it the answer is 429 — batch more per request instead of sending more requests.

Uninstall / remove

  1. 1

    Revoke the token

    Settings → Projects & access → Service accounts → Revoke. Requests with it get 401 at once.

Troubleshooting

The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.

403 “A service account can only read”

Service accounts are read-only by design. Make changes in the console.

403 “Not a member of the requested workspace”

The request names another workspace in X-Workspace-ID. A token reads only its own workspace; leave the header out.

401 “Invalid or expired token”

The token was revoked, mistyped or passed its expiry date. Create a new service account.

429 “rate limit exceeded”

Too many requests per second for the plan. Batch and back off (retry after a second).

Plan limits

  • Ingest requests per second: Free 20 · Starter 100 · Pro 500 · Business 2,000 · Enterprise 10,000.
Compare plans →

Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.