Skip to main content

Official Node.js SDK: @motorical/sdk

There is now an official Node.js client: npm install @motorical/sdk (how to use it).

  • One method per API operation, named after its operationId (sendEmail, getOverview, commsGetReadiness and so on), covering the Send API, the Public API and the Communications API. Method names never change (versioning policy).
  • No dependencies. Node 18 or later, built-in fetch.
  • The credential each call needs is sent for you: a Motor Block key for sending, a Public API token, or an account key and workspace for Communications.
  • Errors throw MotoricalError with status, code (branch on it) and requestId.
  • Published with npm provenance: each release is built and signed by our public GitHub workflow, and npm audit signatures verifies it.

It is generated from openapi.json and tested against every operation before release. A Python SDK follows.

Documentation changed