Designing an API that survives its own success

Give the finance team a two-step approval and they will use it; give them a seven-step one and they will use e-mail instead. We looked at API design across three hundred workspaces and the pattern was the same in almost all of them.

What actually goes wrong

Retries are cheap, duplicates are expensive, and the difference between them is an idempotency key. If a step needs a human, make the human part the only part: everything either side of it should already be done. Small, boring and reliable beats large, clever and occasionally wrong, every quarter of every year.

A process that takes eleven minutes of attention can still take four days of calendar, and the gap is where the frustration lives. We measure this in cycle time rather than in hours saved, because hours saved is a number nobody can check.

  • Write the process down before you automate a step of it
  • Name one owner, even when the answer is uncomfortable
  • Measure cycle time, not hours saved
  • Make the human step the only human step

How to approach API design

Our support inbox is the best roadmap we have: the third time a question arrives, it stops being a question and becomes a feature. We have never seen a team regret adding an audit trail, and we have seen several regret not having one. The honest test of API design is whether anyone notices when it works — the good ones are invisible.

The first rule we give anyone starting with API design is to write the process down before automating a single step of it. Give the finance team a two-step approval and they will use it; give them a seven-step one and they will use e-mail instead.

What to measure afterwards

It helps to name the owner of a process out loud, even when the answer is uncomfortable. Half of what we call an integration problem turns out to be a permissions problem wearing a different coat. Every operations team has one process that everybody apologises for, and API design is usually where it starts.

Automation does not fix a process that nobody agrees on; it makes the disagreement faster and more visible. A good condition reads like a sentence a new starter could repeat back to you without looking at the screen.

If you want a hand with API design, the support team answers in one working day — or start a free trial and try it on a process nobody enjoys.

About the author

Rosie Marsden

Rosie runs product at Flowgate. She spent eight years in operations at a logistics firm before deciding that the spreadsheet had won for long enough.

More from Rosie Marsden

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top