Skip to content

Overview

For Sendwing’s team and its agents. The public docs are at sendwing.app/docs.

Every documented route of the API, built from openapi/internal.json. Routes marked internal (x-internal) are only for Sendwing’s own apps, the web app and admin: they may change at any time. The rest are the public API, also at GET https://api.sendwing.app/openapi.json.

A route gets here when it’s documented with documentRoute (src/shared/openapi.ts). After changing one, run pnpm openapi:generate at the repository root and commit openapi/internal.json; CI checks it matches the routes.

Rather than this site, agents read one slice at a time:

Terminal window
pnpm -s openapi:slice # the slices and their routes
pnpm -s openapi:slice campaigns # one slice, with every type it uses
pnpm -s openapi:slice campaigns sendCampaign --format yaml