Skip to main content

Node.js example

Works with Node 18+ (global fetch). Keep the API key in an environment variable.

Appointments with filters

Notes

  • Use this only on a server (never ship CICINI_API_KEY to browsers).
  • Handle 401 / 400 separately from transport errors.
  • For TypeScript, generate types from OpenAPI (openapi-typescript against /openapi.json) rather than hand-copying fields.