Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 7 min read Announcement mediumAdept

Build custom API integrations with incident.io

incident.io launched a public API focused on three use cases: creating incidents automatically from other systems, exporting incidents and their actions and follow-ups to BI tools, and configuring roles, severities and custom fields from external sources such as Terraform. A worked example declares incidents from Zendesk by pairing a trigger with a webhook that POSTs JSON to /v1/incidents using Bearer-token auth. The create endpoint is deliberately permissive, so required custom fields are not enforced, and it requires an idempotency key so retries or repeated alerts produce only one incident.

Assumes: REST APIswebhooks

Related posts

  • Lessons learned from building our first AI product

    incident.io mediumAdept

    incident.io built suggested incident summaries with OpenAI: each time a responder posts an update, GPT proposes a new summary from the update, the Slack conversation and the previous summary, and a human accepts, edits or rejects it. Half of all summary updates are now AI-written. Suggestions are actioned 20% of the time; of those, 63% are accepted, 26% edited and 11% rejected, which is too little conviction to auto-apply summaries. Practical lessons: build a CLI to run prompts against real incident fixture files, force structured output with JSON mode (problem, impact, causes, steps to resolve), give one person uninterrupted time for trial-and-error prompt work, roll out to 10% of customers first, and involve legal early because adding OpenAI as a sub-processor needs customer notice. A shared prompt interface and a single RunPrompt entry point let later AI features reuse the same plumbing.

  • How our product team use Catalog

    incident.io mediumAdept

    incident.io's product team populated its own Catalog with features, integrations and teams to replace messy, hand-curated incident Custom Fields. Features come from a static Jsonnet list plus per-Go-module module.jsonnet ownership files, integrations from a catalog.jsonnet list checked by static analysis, and teams serve as a source of truth that Terraform uses to provision Google Groups and Sentry projects. The catalog-importer runs in CircleCI in about 20 seconds, in parallel with builds, so the data stays in sync with the codebase. That data drives workflows such as announcing incidents to owning teams' Slack channels, deriving team-level fields for pager-load insights, and routing follow-ups to the right Linear project.

  • Building Custom Integrations with the Render API

    Render mediumAdept

    Render's API gained over 50 new endpoints covering datastores, service logs and Blueprints, bringing it close to parity with the Render Dashboard, and an OpenAPI spec is published for import into Postman or Insomnia. Requests authenticate with a bearer API key created in Account Settings that carries full dashboard permissions, so it must be kept out of version control and revoked if compromised. Example integrations include triggering an off-schedule cron job run (which terminates any in-progress run), custom autoscaling of a background worker from Redis queue depth via the Scale instance count endpoint, and computing deploy durations from createdAt/finishedAt fields for analysis in Grafana or a spreadsheet.

  • Managing your resources in Terraform can be literally easy and actually fun

    incident.io mediumAdept

    incident.io's Terraform integration lets users generate readable, commented Terraform config from the existing Workflows and Schedules visual builders, and the same flow handles editing and importing existing resources. Running `terraform apply` marks a resource as externally managed automatically. The UI shows which resources Terraform manages and where their config lives, and blocks edits to them, with an "un-claim" escape hatch for emergencies. A separate managed-resource abstraction (managed_by, source_url, annotations) keeps management metadata outside each resource's data model so it can be reused for other external managers.

  • Onboarding yourself as an engineer at incident.io

    incident.io mediumAdept

    New engineers at incident.io onboard themselves by opening a PR to the infrastructure repo that adds them as a user, puts them on a team in a Jsonnet config, and defines a Spacelift dev stack. Once merged, Terraform provisions their dev environment, grants Google Cloud access based on user tags, and syncs Google Group memberships from the same config. The Catalog Importer then maps that team data into incident.io's Team catalog type, so the company's own product is configured as code alongside GCP, Sentry and Spacelift.

The quest for software engineering knowledge.

Look:
Layout: