AgenticPay API docs are generated from Zod schemas and a central route registry.
cd backend
npm run openapi:generateOutputs:
backend/docs/api/openapi/openapi.json— OpenAPI 3.1 specbackend/docs/api/postman/— Postman collectionbackend/docs/api/sdks/typescript/— TypeScript client (openapi-fetch+ generated types)
With the backend running:
http://localhost:3001/docsProtected routes require:
Authorization: Bearer <your-api-token>The OpenAPI spec documents bearerAuth (JWT) and apiKeyAuth (X-API-Key) under components.securitySchemes.
- generate-docs.yml — Regenerates the spec on
mainwhen backend routes change; uploads artifacts and optionally commits the spec. - benchmarks.yml — Performance regression gate for the top 10 endpoints.