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,commsGetReadinessand 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
MotoricalErrorwithstatus,code(branch on it) andrequestId. - Published with npm provenance: each release is built and signed by our public GitHub workflow, and
npm audit signaturesverifies it.
It is generated from openapi.json and tested against every operation before release. A Python SDK follows.
Documentation changed