Skip to main content

API fixes: test-email needs its key, zeroFill for the daily summary, complete error answers

  • POST /v1/test-email now checks its Motor Block key, as these docs and the OpenAPI always said. Without a usable key it answers 401 with code: "api_key_required", before it looks at the body. It only validates the shape of the request and sends nothing, and we found no calls to it without a key in the last 30 days, so we are aligning it with the documented contract now rather than giving notice for undocumented behaviour.
  • Daily summary: zeroFill=true. GET /api/public/v1/motor-blocks/{id}/daily-summary?zeroFill=true returns one row per day of the window. Days without sends have zero counts and null rates (no sends, so no rate), and the response carries zeroFilled: true. Without the parameter nothing changes.
  • Internal blocks are no longer listed. GET /api/public/v1/motor-blocks and motorBlockIds in whoami no longer include internal warm-up senders that Motorical runs inside some accounts. They were never yours to manage.
  • Every operation documents its error answers (401, 403, 429 where they apply), each with the shared error body and X-Request-Id. The onboarding routes (/api/auth, /api/domains) now also answer every error with code, message and requestId, and their codes are on Errors.
  • The recipient limit on POST /v1/send is shown from the live value, not typed by hand.
  • Rate-limit headers: the two sets (X-RateLimit-* for request limits, RateLimit-* for send quotas) are deliberate and both stay; see Rate limits.
  • whoami billing period now resolves for accounts whose plan was set by an administrator on top of a real subscription.

OpenAPI is now version 1.9.0.

Documentation changed