Skip to content
Reference 2026-07-01 8 min

API Best Practices

Design, versioning, errors and DX practices we apply to every API.

By Mohammad Zayed

Overview

APIs are contracts. Make them predictable, honest and stable, and developers will trust and reuse them.

Design

routes
GET    /v1/leads
POST   /v1/leads
GET    /v1/leads/:id

Errors

shape
{ "error": { "code": "invalid_email", "message": "Email is required" } }

Versioning

Version in the path. Add fields without breaking; deprecate with a sunset header and a migration window.

Frequently asked questions

Is this a definitive recommendation?
It's our reasoned default, not a universal rule. The right choice depends on your constraints, team and timeline.
Do you only use these technologies?
No. We choose the stack that fits the problem. These pages explain the defaults we reach for and why.
Can you help us decide?
Yes. Share a project brief and we'll map your requirements to a stack.

Continue reading

Want help applying this?

Share one workflow and the outcome you want. We'll review your brief and suggest an appropriate next step; scope and deliverables are agreed before work begins.

Founder-led delivery · Existing systems first · Available internationally