How-to

Guides for API work that were actually run

One problem per page: the shortest answer that works, the approaches worth comparing, and what goes wrong. Every output block on every page is the real stdout of the command above it, checked on each build.

21 guides across 6 sections, in JavaScript and TypeScript.

Authenticate and authorize calls

Get a valid credential onto every request and keep it valid: keys, tokens, OAuth and OIDC flows, signatures and mTLS, from both the client and the producer side.

Send API keys and bearer tokens

Make calls that survive failure

Timeouts, retries, backoff, rate limits, idempotency, caching and error handling, on the client and server side of any API. These branches own the behavior; an SDK feature that implements it is one option here.

Set retries and timeouts

Handle and design API errors

Move data in and out

Reading collections page by page, streaming, bulk jobs, file transfer, loading API data into notebooks, and scheduled pipelines that keep a copy in sync.

Paginate collections

Ship an SDK

Choosing how to produce client libraries, generating them, making them idiomatic, composing runtime features, customizing a generator without forking, adding languages, and regenerating safely.

Choose a generator and generate an SDK

  • Generate your first SDK with sdkgen Scaffold a project from your OpenAPI document with one non-interactive command, generate a TypeScript SDK, and read what the model made of your endpoints.

Test and mock integrations

Mocks, record-and-replay, contract and spec-driven tests, and layered SDK test suites, for APIs you ship and APIs you do not own.

Mock an API

Run contract and spec tests

Parse, validate and transform data

Reading the formats integrations depend on, building parsers from grammars, validating shapes at boundaries, and transforming nested data.

Parse config and data formats

Validate data shapes

Transform nested data

Stop writing the same client twice#

Every guide here solves a problem a generated SDK already handles. Voxgig reads your OpenAPI description and generates the client, the CLI and the MCP server from one model.

Get the Voxgig dispatch

Short notes on building SDKs, CLIs, REPLs, and MCPs for API-first teams, plus the occasional Fireside episode pick.

By signing up you agree to our Terms and Conditions.