---
title: "Ready, steady, goa: our API setup"
description: "incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients."
url: "https://swe.quest/articles/ready-steady-goa-our-api-setup-f9a8a900b508af76"
canonical: "https://incident.io/blog/ready-steady-goa-our-api-setup"
source: "incident.io"
published: "2025-08-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["api-design","go","typescript","developer-productivity"]
---

# Ready, steady, goa: our API setup

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2025-08-11, 10 min read, Case study. Original: [https://incident.io/blog/ready-steady-goa-our-api-setup](https://incident.io/blog/ready-steady-goa-our-api-setup)

## Summary

incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients. This replaces hand-written Gin handlers with manual parsing, auth and serialization. On top of Goa, a \`make generate-api\` pipeline pretty-prints and merges the OpenAPI output and filters it into internal, mobile and public variants. Those variants feed specialised clients: typed TypeScript for the React frontend, lean mobile clients and Go test clients. A single DSL change then flows through to server code, docs and compile-time-checked frontend types.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Prerequisites

- Go HTTP handlers ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- OpenAPI specs
- TypeScript basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Goa, OpenAPI, Gin, incident.io, React

## Related posts

- [Building a great developer experience at a startup](https://swe.quest/articles/building-a-great-developer-experience-at-a-startup-9f652c5e6c2db88a.md): incident.io · 2022-10-04 · Medium · 8 min read · Developer productivity, Go, TypeScript, Observability, CI/CD
  incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt.
- [Building Workflows, Part 1 — Core concepts and the Workflow Builder](https://swe.quest/articles/building-workflows-part-1-core-concepts-and-the-workflow-builder-afa9deefdc8b5feb.md): incident.io · 2022-09-14 · Medium · 18 min read · System design, Go, Product engineering, API design
  incident.io's Workflows feature ("when X happens, if Y, do Z") is built as a small, statically typed programming language in Go.
- [DevEx matters for coding agents, too](https://swe.quest/articles/devex-matters-for-coding-agents-too-3cf5bcfa910d65e5.md): incident.io · 2025-12-19 · Medium · 11 min read · Developer productivity, TypeScript, Build systems, AI for coding, Developer tools
  incident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it.
- [Auto-generating MCP Servers from OpenAPI Schemas: Yay or Nay?](https://swe.quest/articles/auto-generating-mcp-servers-from-openapi-schemas-yay-or-nay-ddbbf7dc3df515f6.md): Neon · 2025-05-01 · Easy · 4 min read · AI agents, API design, LLMs
  Auto-generating an MCP server as a 1:1 mapping of an OpenAPI spec works poorly.
- [Deploying a Simple Go/Gin Application on Heroku](https://swe.quest/articles/deploying-a-simple-go-gin-application-on-heroku-3b0ebc70afe1a20c.md): Heroku Engineering · 2025-05-22 · Medium · 6 min read · Go, Deployment, Cloud platforms
  A Go/Gin REST API deploys to Heroku with three files beyond the source: go.mod/go.sum (cleaned with go mod tidy) and a one-line Procfile.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
