API Reference
OpenAPI & SDK
The public contract is maintained as OpenAPI 3.1 YAML. The official TypeScript client is generated from the same spec and published as @wepeople/sdk.
OpenAPI spec
Canonical locations:
- Production URL: https://wepeople.app/openapi/v1.yaml
- Source repo: github.com/WEBX-PL/sdk-typescript/openapi
- Versioned file: openapi/v1.yaml
Covers ingest endpoints (ping, events, snapshots) and app statistics (GET/PUT /api/v1/apps/statistics). Use it in Stoplight, Scalar, Redocly, or your own codegen pipeline.
curl -s "https://wepeople.app/openapi/v1.yaml" -o v1.yamlTypeScript SDK
Package: @wepeople/sdk
Repository: github.com/WEBX-PL/sdk-typescript
npm install @wepeople/sdkUsage guide: TypeScript SDK.
Code generation
Generate typed clients in other languages from the YAML:
npx openapi-typescript https://wepeople.app/openapi/v1.yaml -o ./wepeople.d.tsOr point your preferred OpenAPI generator (Fern, Speakeasy, openapi-generator) at the same URL.
Keeping in sync
The WePeople monorepo serves apps/web/public/openapi/v1.yaml. Any change to routes under apps/web/src/app/api/v1/** or Zod schemas in apps/web/src/lib/developer-api/ must mirror the YAML in the same PR.
The sdk-typescript repo regenerates npm types from that file — drift silently publishes wrong types to consumers.