M-Box API reference

Every endpoint with its parameters, a request you can copy, the response you get back, and the errors it can return.

Base URLhttps://m-box.in/api
AuthenticationAuthorization: Bearer mbx_live_…
Keys are read or write, and can be limited to IP addresses.
Rate limits per minuteFree 60 · Starter 300 · Growth 1,200 · Business 3,000 · Enterprise 10,000. Every response has X-RateLimit-* headers; 429 comes with Retry-After.
Safe retriesSend your own external_id when creating links: a retry returns the same link instead of a duplicate.
Errors{ "error": { "code", "message", "docs" } }. Every failure is also listed with its reason under GET /v1/failures.
Times and pagesISO 8601 in UTC. Lists return next_cursor; pass it back as cursor.

Error codes

What each code means and what to do about it.

CodeStatusMeaningWhat to do

Verifying webhooks

Each delivery has X-Mbox-Signature: the HMAC-SHA256 of the raw request body, using your webhook secret, in hex.

// Node.js
import crypto from "node:crypto";
const expected = crypto.createHmac("sha256", process.env.MBOX_WEBHOOK_SECRET).update(rawBody).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers["x-mbox-signature"]));