Overview
For Sendwing’s team and its agents. The public docs are at sendwing.app/docs.
API reference
Section titled “API reference”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.
For agents
Section titled “For agents”Rather than this site, agents read one slice at a time:
pnpm -s openapi:slice # the slices and their routespnpm -s openapi:slice campaigns # one slice, with every type it usespnpm -s openapi:slice campaigns sendCampaign --format yaml