Big Helpers · Pvt Ltd since 2008 · Trust & verification
Tech Decisions

API design for Indian SaaS — when to expose what

Every SaaS hits the "build a public API" question. Most build it too early or too thoroughly. Here's the practical playbook for Indian SaaS in 2026.

TL;DR

  • Internal API first: build for your own frontend; public-API later
  • REST + JSON default; GraphQL only if you have multiple clients with very different needs
  • Webhook FIRST, polling SECOND: most SaaS underbuilds webhooks
  • Rate limit + auth from day 1: cheap to add early, expensive to retrofit

The 4-stage API maturity ladder

Stage 1: Internal API for your frontend (always)

Frontend calls backend. JSON over HTTPS. Auth via session cookie or JWT. No public docs. This IS your API at MVP stage.

Stage 2: Webhook OUT to customers (week 4 of operations)

When something happens in your system (order placed, user signed up, payment received), POST to customer-defined URL. Add this BEFORE any pull-API. Customers want push, not poll.

Stage 3: Read API (when 5+ customers ask)

Public REST endpoints to GET data. Token auth. Per-customer rate limit. Versioning (v1/) baked in. Documented (Swagger / Stoplight / Mintlify).

Stage 4: Write API (when integrations are critical)

POST/PATCH/DELETE for customers to write to your system. This is the riskiest — every write needs validation, idempotency, atomicity. Most SaaS shouldn't expose this until Series A scale.

REST vs GraphQL in 2026

REST default for India SaaS:

GraphQL only if:

Auth + rate limiting

LayerWhy
API key per customer (long-lived)Server-to-server integrations
OAuth 2.0 (short-lived tokens + refresh)3rd-party app integrations
Per-key rate limit (e.g. 1000/hr default)Prevent abuse + protect infra
Per-endpoint rate limit (heavy ones lower)Protect expensive operations
Per-IP rate limit (additional layer)Block bot traffic

Webhooks done right

What NOT to expose publicly

Practical pattern

For most SaaS we ship: webhook OUT from day 1, basic read API at month 6 (when first 5 enterprise customers ask), write API only if business model justifies. Documented with Mintlify or Scalar. SaaS builds →

Last reviewed: 27 April 2026.

Want this built for you?

Talk to Kashvi — 30-min call, honest assessment, no pitch deck.

📬 Practical India-context guides — in your inbox

One useful guide a week from Kashvi. No spam, no marketing fluff. Unsubscribe anytime.

Or just subscribe via RSS ↗

Sources & references

Pricing in this guide is verified as of the article date. Verify with vendors before committing budget — rates change quarterly.

💬