@commenda-integrations/api, is generated from the V4 OpenAPI spec, so every path param, query filter, request body, and response is fully typed.
Installation
Instantiate the client
Instantiate with your API key (generate keys in the Commenda Dashboard). It targets production by default; passbaseUrl to point elsewhere for local development.
commenda.core.* for platform & management endpoints, and commenda.dataModels.* for the unified data models.
Run your first request
Core API
Unified API
paginate helper:
Error handling
Non-2xx responses throw aCommendaApiError: