All 17 sections

How-to › Section 1

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.

13 guides in 4 topics. Every guide compares its approaches and shows the output its commands printed.

Send API keys and bearer tokens 8 guides

Static credentials and short-lived tokens on plain HTTP from the client side: header versus query placement, key rotation without dropped requests, per-environment keys, token refresh without a race, scoping to least privilege, detecting leaked keys.

Run OAuth 2.1 and OIDC flows 3 guides

Choosing and implementing the flow from the client side: authorization code with PKCE, client credentials, device code, refresh-token rotation, token introspection, OIDC discovery, and why the implicit and password grants are gone.

Design an authentication scheme for your API 1 guide

The producer side: API keys versus OAuth 2.1 versus OIDC, scope design that limits blast radius without blocking common tasks, key formats and prefixes for secret scanning, token lifetimes, revocation, service accounts, per-customer keys, and the resource-server rules that let MCP clients and agents authenticate.

Sign requests and use mTLS 1 guide

Proving who sent the request: HMAC signatures in the AWS SigV4 style, HTTP Message Signatures (RFC 9421), JWT client assertions, and mutual TLS with certificate rotation, on both sides.

All how-to guides

Generate the client instead of writing it#

Retries, timeouts, pagination and auth are the same problems in every client. Voxgig generates them from your OpenAPI description, in 23 languages, from one model.

Listen to Fireside, the Voxgig podcast

Since 2018, Richard Rodger has talked with developer advocates, event organizers, and the people who build developer-facing companies about the specifics of the work.