Skip to main content
The Autter API at /api/v1 manages alert rules, synthetic checks and dashboards as code. Anything that speaks HTTP can call it.
  • Base URL: https://api.autter.dev/api/v1
  • OpenAPI spec: GET /api/v1/openapi.json. No token is needed.

Authentication

Send a personal access token as a bearer token. Create one under Settings → Keys and tokens → Set up a key by choosing Run Autter in CI or a script:
Your role also applies, as in the dashboard: While their switch is off, synthetic checks and dashboards answer 403 feature_disabled. See Synthetic checks and Dashboards.

Endpoints

  • {resource} is alert-rules, synthetic-checks or dashboards.
  • {repository} is the repository’s id, its full name with the slash encoded (acme%2Fweb), or a short name that only one repository has.
  • {name} is the resource’s name, URL-encoded.
  • Fields are snake_case, and so are nested fields such as filters.error_type and actions.in_app.

PUT is an upsert by name

  • The body is the whole resource. A field you leave out takes its default. It does not keep the stored value.
  • If no resource has the name, it is created (201).
  • If one resource has the name, it is updated to match the body (200).
  • If the resource already matches, nothing is written (200). Applying the same body twice changes nothing.
  • A name in the body must equal the one in the path. To rename a resource, delete it and create it again.
  • If two or more resources already share a name, the API answers 409 name_conflict with their ids. Rename all but one in the dashboard.
Notes per resource:
  • Starting resources. The first read of a repository’s alert rules or dashboards writes its starting rules and two starter dashboards. A PUT with one of their names adopts it.
  • Check headers. Header values are stored encrypted and never returned. A check lists header_names. Sending the same headers again changes nothing. Different headers, or none, replace them.
  • Check URLs are stored normalized. https://example.com reads back as https://example.com/.
  • Dashboard widgets sent without an id get w1, w2 and so on, by position. Give every widget an id, or none.
  • Limits. Your plan’s number of checks and fastest interval apply. Past them the API answers 422 limit_reached.
  • Check kinds. A check has a kind, either http (the default) or journey. The kind is fixed once set. Sending a different kind for an existing check answers 400.
  • Journey checks. Send kind: "journey", a journey_id and a url. The journey_id is required for a journey check, and null or left out for an HTTP check. The url is the site origin, with no path. Sending method, headers, expected_status, body_contains, timeout_ms or latency_threshold_ms with a journey check answers 400.
  • Intervals. interval_seconds is 60, 300, 900 or 3600 for an HTTP check, and 900, 3600, 21600 or 86400 for a journey check. The journey plan limits are in Synthetic checks.
  • Check output. A check also returns kind, journey_id and first_passed_at. A journey check opens no issue until first_passed_at is set.
Example:

Errors and rate limits

Errors look like { "error": { "code", "message", "detail"? } }. The message says what to change. The codes are unauthorized, insufficient_scope, insufficient_role, feature_disabled, repository_not_found, not_found, name_conflict, invalid_argument, limit_reached, rate_limited and internal_error. Each token has an API rate limit of 60 reads and 10 writes a minute. It is separate from the token’s MCP limit. Past it, the API answers 429 with Retry-After. Request bodies can be up to 1 MB. A larger body is refused with 413, and malformed JSON with 400. Both use the code invalid_argument. Every PUT and DELETE is written to the organization’s audit log (the Activity section of Settings → Keys and tokens), with the method, resource, repository, name, status and outcome.

Export as Terraform

An alert rule, a synthetic check and a dashboard each have an Export as Terraform action. It writes HCL that starts with the required_providers block for the Autter Terraform provider. It then writes the resources autter_alert_rule, autter_synthetic_check and autter_dashboard, plus the autter_repository data source.
  • Each attribute is the API field of the same name.
  • A dashboard filter’s list of values (in, not_in) is written as values, and a single value as value.
  • A journey check is written with kind = "journey", its journey_id and no HTTP-only attributes. An HTTP check is written without kind.
  • Only the fields a PUT takes are written. Nulls and empty lists are left out.
  • A check’s headers become sensitive variables, because their values are never returned.
To apply the export, see Config as code with Terraform.