Skip to content
codebrix

API development

API development: REST endpoints and webhooks other teams can build on

An API development company designs, builds and documents the interfaces that let your apps, partners and third-party services exchange data safely. We build REST APIs and webhooks in Go, Node.js or Python from Noida, with authentication, rate limits, versioning, an OpenAPI description and automated tests, and we connect them to services such as Razorpay, Stripe, Shopify and WhatsApp.

Languages
Go, Node.js, Python
Documented in
OpenAPI, before code
Security baseline
OWASP API Top 10
Pricing
On a call, within an hour

Updated · By the Codebrix team

What we build

  • Backends for web and mobile apps, where the API is the product's engine and the apps are its screens.
  • Partner and public APIs that let customers or resellers pull data or place orders from their own systems.
  • An integration layer between internal systems, such as a CRM, an ERP and a store, so each talks to one stable interface instead of to each other.
  • Outgoing webhooks that notify other systems when something happens, and receivers for webhooks from payment, commerce and messaging providers.
  • Rebuilds of an old API that has no documentation, no tests and one developer who understands it.

Contract first: the design comes before the code

We write the API description in the OpenAPI Specification format before building, and review it with the people who will call the API. A mock server generated from that file lets your mobile or partner team start work in week one.

DecisionOur default
Resource namingPlural nouns, nested only one level deep
ErrorsOne error shape everywhere, with a machine-readable code and a human message
ListsCursor pagination with a fixed maximum page size
Writes that move money or stockAn idempotency key, so a retried request is not applied twice
Dates and moneyISO 8601 timestamps in UTC; amounts in the smallest currency unit with a currency code

Authentication, rate limits and versioning

Authentication

Server-to-server callers get API keys that can be scoped, rotated and revoked without downtime. Apps acting for a signed-in user use short-lived access tokens with refresh tokens, and third parties acting on a user's behalf go through an OAuth 2.0 flow. Every request is checked for who is calling and whether that caller may touch that specific record.

Rate limits

Limits are set per key and per endpoint, tighter on expensive or sensitive routes such as login, OTP and search. A caller over the limit gets HTTP status 429, which RFC 6585 defines as too many requests in a given time, with a Retry-After header telling it when to try again.

Versioning

Additive changes ship without a new version. Breaking changes go into a new version in the path, and the old one keeps working until a published retirement date, with a deprecation header warning callers in the meantime.

Security against the OWASP API Security Top 10

The OWASP API Security Top 10 (2023) is the checklist we design and review against. The most common failures in APIs we are asked to fix map to it like this:

OWASP riskWhat it looks likeControl we build
API1 Broken Object Level AuthorizationChanging an ID in the URL shows another customer's orderOwnership check on every record lookup, covered by tests
API2 Broken AuthenticationTokens that never expire, unlimited OTP attemptsShort-lived tokens, attempt limits, lockouts
API3 Broken Object Property Level AuthorizationA user sets their own role field in a profile updateExplicit allow-lists of writable fields per role
API4 Unrestricted Resource ConsumptionA search or SMS endpoint called thousands of timesRate limits, page-size caps, spend alerts
API5 Broken Function Level AuthorizationAdmin routes reachable with a normal user tokenRole checks at the route level, deny by default
API9 Improper Inventory ManagementAn old v1 or debug endpoint left liveA list of every host and version, retired on schedule
API10 Unsafe Consumption of APIsTrusting a partner's webhook without checking itSignature checks and input validation on everything received

Go, Node.js or Python

LanguageSuitsTrade-off
GoHigh-throughput services, small memory footprint, a single binary to deployMore code for quick prototypes; fewer ready-made libraries in some niches
Node.js (TypeScript)Teams already on Next.js or React Native sharing types end to endCPU-heavy work needs care; dependency upkeep is constant
PythonAPIs close to data work, machine learning or AI pipelinesUsually slower per request; needs discipline on typing

We run our own platform on Go and MongoDB, and default to PostgreSQL for client systems where data is relational. If your team will maintain the API, we pick the language they already know.

Integrations with Razorpay, Stripe, Shopify and WhatsApp

Most integration bugs live in webhook handling. Providers document two things that every receiver must respect: verify the signature, and expect duplicates.

  • Razorpay signs each webhook with HMAC SHA256 in the X-Razorpay-Signature header, and its webhook guide says the same event may arrive more than once; the x-razorpay-event-id header identifies it.
  • Shopify sends an HMAC signature in the X-Shopify-Hmac-SHA256 header and, per its webhook documentation, may deliver the same webhook more than once; it recommends idempotent processing.
  • Stripe events, Connect and Billing have their own patterns, covered on our Stripe integration page.
  • WhatsApp Cloud API sends incoming messages and delivery statuses by webhook; our WhatsApp automation page covers how those feed a CRM.

Our receivers verify against the raw request body, store the event ID before processing, acknowledge quickly and do the work on a queue with retries.

Testing, documentation, handover and price

Each endpoint gets unit tests, contract tests that compare responses with the OpenAPI file, and integration tests against provider sandboxes. Before launch we run a load test at a multiple of your expected peak. You receive a hosted documentation page, a ready-to-import request collection, and a runbook for rotating keys and handling incidents.

Price depends on the number of endpoints and consumers, the integrations, the security and audit requirements, and whether there is a legacy system to wrap. Send those details through the contact form. Expect a call within the hour, whatever the day or time, where we go through the scope and give pricing, then a fixed-price proposal in writing. For a whole product rather than an API alone, see custom software development.

Frequently asked questions

What is the difference between an API and a webhook?

With an API, your system asks another system for data or tells it to do something, whenever it chooses. With a webhook, the other system calls you when an event happens, such as a payment being captured. Most integrations use both: webhooks to learn that something changed, the API to fetch the full details or act on it.

How long does it take to build an API?

A focused API for one app or one integration can take a few weeks; a backend for a full product follows the product's timeline, typically 6–16 weeks for a web application. The OpenAPI contract comes first, usually in the first week, so front-end and partner teams can start against a mock server early.

Do you write API documentation?

Yes, and it is written before the code. The OpenAPI file is the source of the documentation page, the mock server and the contract tests, so the docs cannot drift from what the API actually does. You also get example requests, error codes and a short guide for new integrators.

Can you build an API on top of our existing database or old system?

Usually, yes. We read the existing schema, wrap it in a new API with proper authentication and validation, and leave the old system running underneath. If the database is shared with other software, we agree which tables the API may write to, and add tests that catch breaking changes on either side.

How do you keep an API secure?

We design against the OWASP API Security Top 10 (2023): ownership checks on every record, short-lived tokens, field-level write rules, rate limits, role checks on admin routes, an inventory of live versions, and signature checks on anything received from partners. Security tests run on every change, not once before launch.

Which language should our API be written in?

Go suits high-throughput services and simple deployment. Node.js with TypeScript suits teams sharing code with a React or React Native front end. Python suits APIs close to data and AI work. If your own developers will maintain it, the language they already know usually matters more than raw speed.

Sources

  • Custom software

    A custom software development company that helps you decide before you build

    Custom software development company in India for internal tools, portals, integrations and apps. Build-vs-buy advice first, fixed milestones, code you own.

    Read more
  • Web applications

    Custom web application development for portals, dashboards and internal tools

    Custom web application development for portals, dashboards and internal tools: roles, Postgres, integrations and tests. Fixed price, code in your name.

    Read more
  • Payments, US

    Stripe integration services: Checkout, Billing, Connect and webhooks done properly

    Stripe integration services for US companies: Checkout or Elements, Billing, webhooks, Stripe Tax and Connect, built in your own Stripe account and tested.

    Read more
  • SaaS development

    SaaS development with multi-tenancy, billing and admin built in from the start

    SaaS development company building multi-tenant products with Stripe or Razorpay billing, onboarding, admin and analytics. Milestone pricing, your code.

    Read more
  • Business automation

    Business automation for small and mid-sized companies, with or without AI

    Business automation services in India for SMBs: approvals, invoices, reports and data sync on Zapier, Make, n8n or code, with AI only where it helps.

    Read more
  • Hire developers

    Hire a full stack developer who can ship from database to screen

    Hire full stack developers for Next.js, Node.js or Python and PostgreSQL. Skills checklist, a paid interview task, a trial milestone, and you own the code.

    Read more

Tell us what you need

Our team calls you within 1 hour with pricing.

What do you need? (tap any)
Or message us on WhatsApp

We call within 1 hour, any time. Privacy policy

Get price Call WhatsApp