Use a maintained internal client wrapper today.
Until an official package is published, implement a shared internal client module and version it in your platform repo.Recommended wrapper capabilities
- Base URL and auth header injection.
- Structured error parsing (
error_code,request_id). - Retry policy for transient failures.
- Request timeout and telemetry hooks.
Usage pattern
- Keep one client instance per service.
- Wrap endpoint calls in feature-specific modules (
campaigns.ts,contacts.ts). - Log
request_idfor failed calls. - Add contract tests for critical workflows.
Maintained downloads guidance
- Keep starter wrapper and examples in your internal template repo.
- Pin required Node runtime in project tooling.
- Update wrapper alongside API contract changes from changelog.