API Development & Integration

APIs and Integrations Other Systems Can Depend On

An API is a contract. Once mobile apps, partners or internal services depend on it, every breaking change has a cost someone else pays. Good API work is about designing that contract carefully and making integrations behave sensibly when the other side is slow, down or sends the same request twice.

What is API Development & Integration?

API development is designing and building the interfaces that let software systems exchange data and trigger actions, usually over HTTP as REST or GraphQL. API integration is connecting your system to third-party APIs such as payment, CRM, accounting or messaging services, handling authentication, errors, retries and data mapping between them.

Who it's for

  • Products that need a public or partner API so customers can build on top of them
  • Teams with web and mobile clients that need a shared, well-designed backend
  • Businesses connecting several SaaS tools that currently rely on manual exports and imports
  • Companies whose existing API has grown inconsistent, undocumented or hard to change

Problems it solves

  • Integrations that silently fail and leave systems out of sync until someone notices a wrong report
  • Duplicate orders or charges when a client retries a request after a timeout
  • Mobile apps breaking because a backend field was renamed without versioning
  • Partners unable to integrate because there is no accurate documentation or sandbox
Scope

What can be delivered

  • API design and specification

    Resource models, error formats and an OpenAPI or GraphQL schema agreed before implementation.

  • REST or GraphQL backend

    Implementation in Node.js and NestJS with validation, pagination and consistent error handling.

  • Authentication and rate limiting

    OAuth 2.0 or API keys, scoped permissions and per-client limits.

  • Webhooks

    Signed outbound events with retries and delivery logs, and safe handling of inbound ones.

  • Third-party integrations

    Connectors to payment, CRM, accounting or messaging APIs with retries and monitoring.

  • Developer documentation

    Generated reference docs, examples and a changelog that stays in step with the code.

Technical approach

REST or GraphQL

I have refactored a production REST API to GraphQL, and the honest conclusion is that each fits different situations.

REST vs GraphQL in practice
RESTGraphQL
Best forPublic and partner APIs, simple resourcesProduct UIs with many screens needing different shapes of data
CachingStraightforward with HTTP cachingNeeds client or persisted-query caching
Over/under-fetchingCommon; fixed response shapesClient asks for exactly the fields it needs
Watch out forEndpoint sprawlN+1 queries (use DataLoader), query cost limits

Versioning follows the style. REST APIs typically version in the path (/v1/) or a header and keep old versions alive for a published period. GraphQL evolves by adding fields and marking old ones @deprecated, then removing them once usage drops.

Auth, limits and idempotency

Use API keys for simple server-to-server access, stored hashed and scoped. Use OAuth 2.0 when third parties act on behalf of users (authorization code with PKCE) or for machine clients (client credentials). Rate limits per key, backed by Redis, return 429 Too Many Requests with a Retry-After header so clients can back off politely.

Any endpoint that creates or charges something should accept an Idempotency-Key header, a pattern Stripe popularised. The server stores the key with the first response and returns that same response for retries, so a network timeout never turns into a duplicate order.

Webhooks and third-party integrations

Outbound webhooks are signed with an HMAC so receivers can verify them, retried with exponential backoff, and logged so customers can replay failures. Inbound webhooks are acknowledged quickly and processed on a queue, deduplicated by event ID. Each third-party integration lives behind its own adapter with timeouts, retries and alerts, so one provider's outage stays contained. When those integrations chain into multi-step business processes, the work overlaps with workflow automation. NestJS can generate an OpenAPI document from the code, which keeps reference docs accurate, and the Node.js backend underneath follows the scaling patterns in my post on scaling Node APIs on GCP.

Technology

Technologies for API Development & Integration

API frameworks

  • NestJS
  • Express
  • Fastify
  • Node.js
  • TypeScript

API styles

  • REST
  • GraphQL
  • GraphQL Subscriptions
  • WebSockets
  • Webhooks

Security

  • OAuth 2.0
  • OpenID Connect
  • JWT
  • API keys
  • API rate limiting

Docs & testing

  • OpenAPI / Swagger
  • Postman
  • Jest
  • Supertest

Infrastructure

  • Redis
  • GCP Cloud Run
  • GCP Pub/Sub
  • Bull Queues
Process

How the work runs

  1. 01

    Identify consumers and use cases

    List who will call the API or which systems must connect, and what each needs to do.

  2. 02

    Write the contract first

    Draft the OpenAPI or GraphQL schema and review it with consumers before building.

  3. 03

    Implement with tests

    Build endpoints and adapters with integration tests against sandboxes or mocks.

  4. 04

    Secure and observe

    Add auth, rate limits, structured logs and alerts on error rates and latency.

  5. 05

    Publish and support

    Release docs, a changelog and a deprecation policy, and monitor real usage.

Trade-offs

Decisions worth making early

  • Breaking changes are expensive

    Once external clients depend on an API, removing or renaming fields needs a versioning and deprecation plan.

  • Third-party limits shape design

    Provider rate limits, pagination and webhook reliability vary widely and often dictate the integration architecture.

  • Sync vs async

    Long operations should return quickly with a job ID and notify on completion, rather than hold a request open.

  • Docs drift

    Hand-written docs fall out of date. Generate reference docs from the code or schema wherever possible.

Related work

Projects involving this work

From my portfolio. Descriptions are the same as on the projects page.

  • Instantly.ai preview

    Web

    Instantly.ai

    B2B CRM for cold-email outreach with AI-powered personalization, deliverability and warm-up. Built core CRM modules, AI prompt tooling and real-time updates.

    • Next.js
    • NestJS
    • OpenAI
    • WebSockets
    • Postgres
    View product
  • All projects
Further reading

Related articles

Related services
  • Web Development

    Node.js Development

    Node.js backends in NestJS, Express or Fastify, built for I/O-heavy workloads with queues, real-time channels and proper observability.

  • Custom Software

    Workflow Automation

    Turning manual, repetitive processes into reliable automated workflows with queues, events and integrations, or a no-code tool when that's all you need.

  • Custom Software

    Enterprise Software

    Internal and customer-facing systems for larger organisations: SSO, fine-grained access, audit trails, legacy integration and phased modernisation.

  • Custom Software

    SaaS Development

    Multi-tenant SaaS products with subscription billing, roles and permissions, designed to stay maintainable as customers and features grow.

FAQs

Choose REST for public or partner APIs and simple resource access, where HTTP caching and familiarity matter. Choose GraphQL when your own front ends need flexible, nested data across many screens. Some products use GraphQL internally and expose REST to partners.