Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Offering an API: What It Commits You To
SaaS & Product

Offering an API: What It Commits You To

Building an API for customers means a permanent contract: what you commit to, early design decisions, documentation, support load and careful deprecation.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

An API is a permanent contract. Before offering one, be sure you can keep it stable, document it, support it and version it. The endpoints are the easy part; the commitment is what people underestimate.

An API is a promise about the future

Once a customer writes code against your API, changing it breaks their system. That constrains your ability to change your own data model, sometimes for years.

That constraint is worth accepting when the API genuinely drives adoption or retention. It is not worth accepting because it seemed like a good idea for a feature list.

What you are committing to

  • Stability. Breaking changes require versioning and a migration period.
  • Documentation that is accurate, with working examples.
  • Support for developers, which is different from supporting end users.
  • Availability, since customers' systems now depend on yours being up.
  • Rate limiting and abuse handling, because someone will loop.

Design decisions worth getting right early

  1. Authentication — keys scoped per customer, revocable, never shared.
  2. Versioning from day one, even with one version. Retrofitting it is painful.
  3. Pagination on every list endpoint, always, however small the data seems now.
  4. Consistent errors with codes and useful messages.
  5. Idempotency for anything that creates or charges, so retries are safe.
  6. Webhooks alongside polling, so customers are not forced to poll you.
Pagination is the one that bites. An endpoint that returns everything works fine until a customer with ten thousand records tries it, at which point it takes down more than their request.

Documentation is the product

For an API, documentation is the interface. Working examples in common languages, a way to try requests, and honest descriptions of what each field means and when it can be null.

Generated documentation from the code is a good baseline and rarely sufficient on its own — the guidance about how to accomplish a task is what developers actually need.

Watch what it does to support

API customers generate different support: integration questions, unexpected data, rate limit complaints, and reports that something changed. Budget for it, and give developers a route that does not go through general support.

Deprecate carefully when you must

Long notice, clear migration guidance, and usage data so you know who is affected. API deprecation with short notice is how a technical decision becomes a churn event.

Contact the accounts using the old version individually. There are usually fewer than you fear and the personal contact prevents most of the damage.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Should we charge for API access?

It is reasonable, particularly at volume, and putting it behind the highest tier is increasingly badly received. Usage-based pricing above a generous included allowance is a common middle ground.

What does building a customer-facing API cost?

£20,000–£60,000 for a well-designed first version including authentication, documentation and rate limiting. Ongoing support and stability are the larger long-term cost.

Do we need GraphQL?

Usually not. A well-designed REST API is simpler to build, document and support, and is what most integrators expect. GraphQL suits clients with highly variable data needs.

How do we know if customers want one?

Ask the ones requesting integrations what they would build. If the answers are vague, they may want a specific integration rather than an API, which is cheaper to provide.

Keep reading

More on SaaS & Product

Start here

Customers asking for an API?

Sometimes what they want is one integration rather than a platform commitment. Tell us what they have asked for and we will help you judge.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →