New: the API reference lists every endpoint with request and response examples in cURL, JavaScript and Python. Import the Postman collection (set apiKey) or the OpenAPI 3.1 file into your own tools.

Quick start

1. Create an account. 2. Open API keys in the dashboard and create a key. 3. Create your first link:

curl https://m-box.in/api/v1/links \
  -H "Authorization: Bearer $MBOX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://shop.example.in/orders/88213","expires_in":"7d"}'

The response includes short_url. Every endpoint lives under https://m-box.in/api/v1 and speaks JSON.

Authentication

Send your key in the Authorization header as Bearer mbx_live_…. Keys are either read and write, or read only. A key is shown once when created; revoke it from the dashboard at any time.

Method and pathPurpose
POST /linksCreate one link
GET /linksList links, newest first. Filters: q (code, destination, reference or unique ID), campaign, status, tag, tags (comma separated, all must match), external_id, external_id_prefix, state, import_id, limit (up to 200), cursor
GET /links/lookup?external_id=ORD-88213Read a link by your own unique ID. Add &stats_days=30 to get its click numbers in the same call.
GET /links/{code}Read a link
PATCH /links/{code}Change destination, schedule, expiry, click cap, password, tags, campaign, reference, unique ID or status
DELETE /links/{code}Disable a link
GET /links/{code}/versionsEarlier versions of a link

Fields when creating a link

FieldMeaning
urlDestination, http or https. Required.
aliasYour own code, 3 to 40 letters, digits, - or _. Otherwise a random 6-character code.
active_fromISO 8601 time the link goes live, for example 2026-11-14T09:00:00+05:30
expires_at or expires_inISO time, or a duration such as 30m, 12h, 7d, 2w
max_clicksStop redirecting after this many clicks
passwordVisitors must enter it before the redirect
external_idYour own unique ID for this link: an order, customer, invoice or ticket number. 1 to 100 characters, no spaces. One link per ID in your account. See Your unique IDs.
if_existsWhat to do when external_id already has a link: return (default, answers 200 with the existing link and "existing":true) or error (answers 409 external_id_taken)
tags, campaign, referenceYour own labels. Tags are how you group links for reports; reference is a free note that can repeat.

Your unique IDs

Give a link your own ID with external_id and M-Box keeps exactly one link per ID. This makes integrations safe and simple:

curl https://m-box.in/api/v1/links \
  -H "Authorization: Bearer $MBOX_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://shop.example.in/track/88213","external_id":"ORD-88213","tags":["tracking","chennai"]}'

# Same call again: 200 OK, same short_url, "existing": true

reference is different: a free text note (a name, a remark) that can repeat across links. Use external_id when the value identifies one thing.

Background imports and callbacks

The simplest way to import any file up to 2 GB: one call, an answer at once (202), and the work happens on our servers. You do not send parts.

POST /v1/imports/async
{ "file_url": "https://files.yourshop.in/exports/customers.csv",
  "callback_url": "https://yourapp.in/hooks/m-box",
  "campaign": "diwali-2026", "tags": ["sms"], "template": "Invoice links" }

→ 202 { "job_id": "3c9e…", "status": "running", "callback_secret": "whsec_…", "links": { "status": …, "log": …, "results_csv": …, "errors_csv": … } }

No public link for the file? Send size instead of file_url and PUT each piece to the upload links in the answer (in parallel), then call POST /v1/imports/async/{id}/start. Files up to 25 MB can also be sent as multipart in the first call. The SDKs choose for you: mbox.imports.async({ file, callbackUrl }) and mbox.import_async("customers.csv", callback_url=…).

How it runs. The file is read in order and cut into parts of 5,000 rows while earlier parts are being written, by as many writers as the database can take at full speed (tuned automatically during the import). Parts are idempotent; before the import closes, any part that did not arrive is read again from the file and written. Plan limits are checked as it goes: if the month's allowance runs out, the import stops cleanly with reason: "quota_exceeded" and gives back what it did not use.

The callback. When the import ends we POST { event: "import.completed" | "import.stopped" | "import.failed", job_id, status, reason, total, created, existing, failed, duration_seconds, results_csv, errors_csv, log } to callback_url, with x-mbox-signature: t=<unix time>,v1=<HMAC-SHA256(callback_secret, "t.raw_body")>. Answer with any 2xx. Otherwise we try again after 1 min, 5 min, 30 min and 2 h, then notify your team. Check signatures with verifyCallback(secret, header, rawBody) (JavaScript) or MBox.verify_callback(...) (Python). Set or change it on any import with POST /v1/imports/jobs/{id}/callback; on a finished import that sends it again. callback_url also works on POST /v1/imports/jobs.

The log. GET /v1/imports/jobs/{id}/events lists every step (file received, columns found, each batch of parts with its speed, repairs, why it stopped) and every callback attempt with the HTTP answer and time. In the dashboard: Bulk import › Import history › Log.

Bulk and imports

POST /links/bulk creates up to 1,000 links in one call. Bad rows are reported individually; good rows still succeed. Rows whose external_id already has a link come back with "existing":true; the response counts created, existing and failed. The same external_id twice in one call fails the later row with external_id_repeated.

{"campaign":"nov-emi","expires_in":"7d",
 "links":[{"url":"https://pay.example.in/1","reference":"INV-1"},{"url":"https://pay.example.in/2","reference":"INV-2"}]}

POST /imports takes a whole CSV file as multipart form data (CSV only; download a sample) and returns each row with its short link. Add ?format=csv to get your file back with short_url and status columns added.

curl "https://m-box.in/api/v1/imports?format=csv" \
  -H "Authorization: Bearer $MBOX_KEY" \
  -F "file=@customers.csv" -F "url_column=payment_url" \
  -F "reference_column=customer_id" -F "campaign=nov-emi" -F "expires_in=7d" \
  -o customers-with-links.csv

Form fields: file, url_column (default url), reference_column, external_id_column, alias_column, campaign, expires_in, expires_at, active_from, tags. Up to 50,000 rows per upload, or your plan's limit if lower. For bigger files use an import job (below): one import, any size.

Very large imports (lakhs to crores of rows): import jobs

An import job is one import, with one id, one entry in the import history and one error log, however many parts it is sent in. Rows per file: Business 5 lakh, Enterprise 1 crore.

  1. Check the file first. Every row must have the same number of columns as the header, the URL column must exist, and the file must be UTF-8 CSV. The dashboard and the SDK helpers do this before anything is sent.
  2. Check the limits (optional, nothing is reserved): POST /imports/jobs with {"dry_run":true,"total":4000000} returns ok, rows_per_file, links_left_this_month and any problems.
  3. Start the job: POST /imports/jobs with {"total":4000000,"filename":"customers.csv","campaign":"diwali","tags":["sms"],"expires_in":"30d"}. The answer has job_id, part_rows (5,000), parts and a suggested parallel. This month's allowance is reserved once for the whole job.
  4. Send the parts, several at a time: PUT /imports/jobs/{job_id}/parts/{n} (n from 1) with {"rows":[[row, url, reference, back_half, unique_id, title], …]}. Compress with gzip and add x-mbox-encoding: gzip to send about ten times less. Part n must hold rows (n−1)×5,000+1 to n×5,000 of your file. Sending a part again is always safe: the first answer is returned and no link is made twice, so retry any part that fails or times out.
  5. Make sure nothing is missing: GET /imports/jobs/{job_id}/missing lists the parts the server has not received ({"parts":[17,402],"rows":10000}). Send those again.
  6. Finish: POST /imports/jobs/{job_id}/finish. It is refused with 409 parts_missing while parts are missing, so a job is only marked completed when every row is accounted for (created + already had a link + failed = total). Send {"stopped":true} to close it early; the allowance for rows not sent is given back.
  7. Error log: GET /imports/jobs/{job_id}/errors.csv: one line per failed row and one per range of rows never sent, with row, part, error_code, error, how_to_fix, url, reference, back_half, unique_id. GET /imports/jobs/{job_id} shows progress and totals.

Error codes in the log (GET /imports/error-codes lists them with the fix): url_missing, invalid_url, url_too_long, destination_blocked, destination_not_approved, invalid_alias, alias_quota_exceeded, alias_repeated, alias_taken, invalid_external_id, external_id_repeated, client_quota, compliance_blocked, code_conflict, invalid_row, not_processed. A unique ID that already has a link is not an error: that row is counted as already had a link and returns the existing short link.

// JavaScript (Node 18+ or browser)
const r = await mbox.imports.large(() => readRows("customers.csv"), 4000000, { campaign: "diwali", onProgress: console.log });
const log = await mbox.imports.errorsCsv(r.job_id);

# Python: checks the file's structure first, then sends it as one job
r = mbox.import_csv_file("customers.csv", url_column="url", external_id_column="customer_id", campaign="diwali")
mbox.import_errors_csv(r["job_id"], save_to="customers-errors.csv")

Campaigns

Links that share a campaign name can be changed together. GET /campaigns lists them. POST /campaigns/{name}/undo takes {"action":"disable"}, {"action":"enable"} or {"action":"redirect","url":"https://…"}. Re-pointing saves each link's old destination in its version history.

Stats

GET /links/{code}/stats?days=30 returns clicks, unique visitors, filtered bot clicks, and breakdowns by day, city, state, device, operating system and referrer. Days are counted in Indian Standard Time. GET /overview returns account-wide totals.

SMS fit and verify

POST /sms-fit with {"message":"…"} returns the encoding (GSM-7 or Unicode), character count and SMS segments. No key needed.

GET /verify?url=https://m-bx.to/a8Kq2x tells anyone which business owns a link and whether it is active. No key needed.

Smart rules

PATCH /links/{code}/rules sets routing rules on a link. Send the full set each time; anything left out is switched off.

{"rules":{
  "android":"https://play.google.com/store/apps/details?id=in.example",
  "ios":"https://apps.apple.com/app/id123",
  "mobile":"upi://pay?pa=shop@okhdfcbank&pn=Shop&am=499.00&cu=INR",
  "desktop":"https://example.in/pay",
  "countries":{"AE":"https://example.ae/offer"},
  "hours":{"start":"09:00","end":"21:00"},
  "max_rps":200,
  "ab":[{"url":"https://example.in/a","weight":50},{"url":"https://example.in/b","weight":50}]
}}

Order of checks: A/B split, then country, then device. hours are Indian Standard Time; outside them visitors see a "closed right now" page. max_rps caps redirects per second and shows the rest a queue page that retries by itself. Phone rules may use app links such as upi:// and tel:.

Template links

For very large sends. Register a URL pattern once, then build a signed short link for every invoice or customer id on your own server: no API call per link, nothing stored per link, and they do not count against your monthly links.

1. Create a template under Template links (or POST /templates with {"name":"EMI page","url":"https://pay.example.in/invoice/{ref}"}). Keep the code and signing secret.
2. For each reference, the link is https://m-bx.to/{code}.{ref}.{signature}. The signature is the first 8 bytes of HMAC-SHA256 of the reference (key: the signing secret), base64url-encoded and cut to 10 characters. Links in the first form, m-box.in/t/{code}/{ref}.{16 hex characters}, keep working.

import { templateLink } from "./sdk/js/index.mjs";
const url = await templateLink("NcVKEC", process.env.MBOX_TEMPLATE_SECRET, "INV-88213");

from mbox import template_link
url = template_link("NcVKEC", secret, "INV-88213")

References may use letters, digits, dot, dash and underscore, up to 64 characters. POST /templates/{id}/sign with {"refs":[…]} signs up to 5,000 references for you. Clicks appear in reports with the reference.

Webhooks

Add an https endpoint under Webhooks in the dashboard, or with POST /webhooks. M-Box then sends a link.clicked event for every click by a person, after the redirect, so it never slows the visitor down.

{"event":"link.clicked","at":"2026-11-13T09:00:00Z",
 "data":{"code":"a8Kq2x","reference":"INV-1","campaign":"nov-emi","city":"Chennai","device":"Mobile","os":"Android"}}

Verify each delivery: the X-Mbox-Signature header is the hex HMAC-SHA256 of the raw request body, using the signing secret shown once when you created the webhook. GET /webhooks/deliveries lists recent results.

Tags and tag reports

Tags group links however you like (city, channel, product, client). A report can cover any slice of links: one tag, several tags together (all must match), a campaign, a range of your unique IDs, or any mix.

Method and pathPurpose
GET /tagsEvery tag with its number of links, clicks in the last 30 days and all time, plus your auto-tag rules
GET /tags/report?tags=diwali,chennai&campaign=&external_id_prefix=&from=2026-11-01&to=2026-11-14Clicks, different visitors, links created and opened, the same numbers for the period before (previous), and breakdowns by day, hour, link, tag, campaign, city, state, country, device, system, browser and referrer. Dates are in your account's time zone; the default is the last 30 days.
GET /tags/links.csv?tags=…Every link in the slice as CSV, with its unique ID, tags and click count (up to 50,000 rows)
POST /tags/rulesAuto-tag rule: {"match_kind":"domain","pattern":"amazon.in","tag":"amazon","apply_to_existing":true}. match_kind is domain, contains or starts_with. New links that match get the tag, whichever way they are created.
POST /tags/rules/{id}/applyTag the existing links that match a rule
DELETE /tags/rules/{id}Delete a rule. Links keep the tags they already have.

Live dashboards

A live dashboard is a private web page with the numbers for a slice of links, for people who do not use M-Box: a client, a manager, a franchise owner. Whoever has the link can open it without signing in. It shows clicks, visitors, cities, devices and the most opened short codes; never destinations, references or anything else in your account. It refreshes itself and stops working when it expires or you switch it off.

Method and pathPurpose
POST /shares{"name":"Diwali results","tags":["diwali"],"days":30,"expires_in_days":90,"show_links":true}. Also accepts campaign and external_id_prefix. Answers with the page url.
GET /sharesYour dashboards with their views and status
PATCH /shares/{id}{"active":false} to switch off, {"active":true} to switch back on, or a new name
DELETE /shares/{id}Switch off at once
GET /shared/{token}The data behind a dashboard page, as JSON. No key needed; the token in the page address is the key.

Email reports

M-Box can email a report every day (yesterday), every Monday (last week) or on the 1st of each month (last month) at 9:00 in your account's time zone, compared with the period before. Emails go out through your own mail server, set up under Settings › Integrations.

Method and pathPurpose
POST /report-schedules{"name":"Weekly WhatsApp","recipients":["owner@shop.in"],"frequency":"weekly","tags":["whatsapp"]}. Up to 10 recipients. Add share_id to put a button to a live dashboard in the email.
GET /report-schedulesYour email reports, when each runs next and how the last one went
POST /report-schedules/{id}/sendSend now, for a test. Does not change the schedule.
PATCH /report-schedules/{id}{"active":false} to pause, {"active":true} to resume
DELETE /report-schedules/{id}Stop and delete

Reports and logs

Method and pathPurpose
GET /reports/summary?from=2026-11-01&to=2026-11-13Account-wide totals, the period before (previous), and breakdowns by day, hour, link, tag, campaign, city, state, country, device, system, browser and referrer. For one tag, campaign or ID range use /tags/report.
GET /reports/clicks.csv?from=&to=Every click as CSV, up to 20,000 rows
GET /reports/links.csvAll links with click counts as CSV, up to 20,000 rows
GET /campaigns/{name}/not-clickedRecipients in a campaign who have not tapped; add ?format=csv
GET /logs/apiCalls made with your API keys: time, path, status, duration, IP address

Dates are in your account's time zone (Settings) and default to the last 30 days.

Custom domains

Add your own domain under Custom domains, point a CNAME record at the address shown there, and our team activates it. Then choose the domain under Smart rules on any link, or send {"host":"go.yourbrand.in","rules":{…}} to the rules endpoint.

Account and history

Method and pathPurpose
GET /meOrganisation, plan, limits and this month's usage
GET /usageUsage by month
GET /importsImport history
GET /audit-eventsEvery change in the account, newest first. Entries cannot be edited or deleted.

Routing rules

PUT /links/{code}/flow sets ordered rules. The first rule whose conditions all match sends the visitor to its address; empty conditions mean "any". Anything not matched falls through to the smart rules above, then the main destination.

{"flow":[
  {"label":"Tamil speakers","when":{"langs":["ta"]},"url":"https://example.in/ta"},
  {"when":{"countries":["IN"],"os":["android"]},"url":"market://details?id=in.example"},
  {"when":{"devices":["desktop"],"browsers":["chrome","edge"]},"url":"https://example.in/desktop"}
]}

Conditions: countries, regions, langs, devices (mobile, tablet, desktop), os (android, ios, windows, macos, linux), browsers (chrome, safari, firefox, edge, opera, samsung, in-app). Try a visitor without recording anything with POST /links/{code}/simulate. Per link you can also choose the redirect type (301, 302, 307, 308) and a fallback page for when it is paused, expired, not started or outside its hours (PATCH /links/{code}/settings). Add + to any short link to preview where it goes.

Saved templates

Save settings once and reuse them, from the dashboard (Links › Templates) or the API. Four types: qr (a QR design), link (settings for new links), utm (a set of UTM tags) and page (a landing page design). Templates are shared by everyone in the account.

Use a template

Add "template" with the template's name, its id, or "default" (the one marked ★). Anything you send yourself wins over the template.

POST /v1/links        { "url": "https://shop.example.in/p/42", "template": "WhatsApp broadcast" }
POST /v1/links/bulk   { "template": "Invoice links", "links": [ { "url": "…" }, { "url": "…", "utm_template": "Instagram bio" } ] }
POST /v1/imports      { "template": "Invoice links", "rows": [ … ] }
POST /v1/imports/jobs { "template": "Invoice links", "total": 4000000, … }
POST /v1/qr-codes     { "code": "Ab12Cd", "template": "Brand blue", "style": { "frame_text": "SCAN TO PAY" } }
POST /v1/qr-codes/bulk { "codes": ["Ab12Cd", "Xy34Ef"], "template": "default" }

A link template can hold: campaign, tags, expires_in (like 30d), max_clicks, redirect_type, fallback_url, track_conversions, notes, utm (source, medium, campaign, term, content; added to the destination unless it already has that tag) and qr_template. With qr_template, POST /v1/links also makes the QR code and returns it as qr_code (qr_codes for /links/bulk). For imports, the template's UTM tags are added to rows sent as JSON; for import jobs, campaign, tags and expiry apply to every row. An unknown name returns 422 template_not_found.

Manage templates

GET    /v1/saved-templates?type=link
GET    /v1/saved-templates/{id}
POST   /v1/saved-templates             { "type": "link", "name": "Invoice links", "default": true,
                                         "data": { "campaign": "Invoices", "tags": ["invoice"], "expires_in": "30d",
                                                   "utm": { "source": "sms", "medium": "invoice" }, "qr_template": "Brand blue" } }
PATCH  /v1/saved-templates/{id}        { "name": "…", "data": { … }, "default": false }
POST   /v1/saved-templates/{id}/duplicate
DELETE /v1/saved-templates/{id}

QR data uses the same keys as a QR code's style. UTM data: utm_source, utm_medium, utm_campaign, utm_term, utm_content. Page data: mode, blocks or code_html, design. Up to 100 of each type. Only one QR and one link template can be the default.

// JavaScript
await mbox.templates.create({ type: "link", name: "Invoice links", data: { campaign: "Invoices", expiresIn: "30d", utm: { source: "sms" } } });
await mbox.links.create({ url: "https://shop.example.in/p/42", template: "Invoice links" });
await mbox.qrCodes.create({ code: "Ab12Cd", template: "Brand blue" });

# Python
mbox.create_template("link", "Invoice links", {"campaign": "Invoices", "expires_in": "30d", "utm": {"source": "sms"}})
mbox.create_link("https://shop.example.in/p/42", template="Invoice links")
mbox.create_qr(code="Ab12Cd", template="Brand blue")

Not to be confused with template links (/v1/templates), which turn a reference such as an invoice number into a signed short link.

QR codes

POST /qr-codes with a link's code saves a QR design. Encode the returned qr_url (the short link with ?qr) so scans are counted apart from clicks, and change where it leads at any time without reprinting. Monthly allowance: Free 2, Starter 5, Growth 10, Business 200. Colours and frames from Starter; logos, gradients and dot or corner shapes from Growth; POST /qr-codes/bulk on Business.

Conversions

  1. Add the snippet from Conversions › Set up to every page of your site: <script src="https://m-box.in/t.js" data-key="mbx_pk_…" defer></script>
  2. Turn on track_conversions for the links you share. Visitors arrive with mbx_cid, which the snippet keeps for 90 days.
  3. Call mbox.track("purchase", { value: 499, currency: "INR", id: "ORDER-1001" }) on your thank-you page. Events: lead, signup, purchase, custom.
  4. From your server or CRM, send verified events with POST /conversions (up to 1,000 at once). The same id is never counted twice.

GET /conversions?days=30&model=last (or first) returns totals, by link, by campaign with spend, CAC and ROAS, and per day.

Failures and logs

GET /failures?days=7 lists everything that failed, with the reason: API calls, imports, webhook deliveries, workflow runs, scheduled changes and email reports. GET /logs/api lists every call made with your keys, and GET /audit-events every change with who made it and the values before and after.

Errors and limits

Rate limits per account per minute: Free 60, Starter 300, Growth 1,200, Business 3,000, Enterprise 10,000. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 includes Retry-After. See all error codes.

Errors return a JSON body with a stable code and a plain message:

{"error":{"code":"alias_taken","message":"That alias is already in use"}}
StatusCommon codes
400invalid_url, invalid_alias, destination_blocked, invalid_duration, invalid_external_id, external_id_repeated, invalid_range
401unauthorized, invalid_key
402quota_exceeded: the month's link allowance is used up. storage_full: the account's stored-link limit is reached.
403read_only_key, account_restricted, account_suspended, link_blocked
409alias_taken, external_id_taken
413too_many_links, too_many_rows

The full list of codes, with what each one means, is on Error codes. Every error response links to its entry.

When you reach a plan limit, existing links keep redirecting; only creating new links pauses until the next month or a plan change.

CLI

The CLI is a single file, cli/mbox.mjs, in the M-Box repository. It needs Node 18 or newer and has no dependencies.

node mbox.mjs login mbx_live_your_key
node mbox.mjs shorten https://shop.example.in/sale --alias diwali --expires 7d
node mbox.mjs import customers.csv --url-column payment_url --reference-column customer_id --campaign nov-emi
node mbox.mjs stats diwali
node mbox.mjs undo nov-emi --redirect https://shop.example.in/corrected
node mbox.mjs sms-fit "Pay your EMI: https://m-bx.to/a8Kq2x"

SDKs

JavaScript (sdk/js/index.mjs) and Python (sdk/python/mbox.py) clients are in the repository. Both are single files with no dependencies. They are not yet published to npm or PyPI.

import { MBox } from "./index.mjs";
const mbox = new MBox(process.env.MBOX_KEY);
const link = await mbox.links.create({ url: "https://example.in/orders/1", expiresIn: "7d" });
await mbox.campaigns.redirect("nov-emi", "https://example.in/corrected");

Besides links and imports, both clients cover link settings (links.updateSettings / update_settings), routing rules and the simulator (links.setRouting, links.simulate), insights, duplicate, lookup by your own ID, QR codes (qrCodes.* / create_qr), conversions (conversions.record, conversions.report) and the failures feed.

// Send Android users to the Play Store, everyone else to the website
await mbox.links.setRouting("launch", [{ when: { os: "Android" }, url: "https://play.google.com/store/apps/details?id=in.example" }]);
await mbox.links.simulate("launch", { os: "Android", country: "IN" });   // where would this visitor go?
await mbox.conversions.record({ event: "purchase", click_id: "c_123", value: 499, currency: "INR", order_id: "INV-9" });

Landing pages

Build pages at m-box.in/p/your-name in the studio: drag blocks onto the page, edit text in place, or switch to code. Any block can be shown only between two times (Show only between…) for a sale, an event or opening hours. An image block with a product name and price becomes a product card with a buy button, and a Call and email block with a name adds a Save contact button that saves a vCard to the phone.

Browser extension

Shorten the page you are on, or any link from the right-click menu, in Chrome, Edge or Brave. Download mbox-extension.zip, unzip it, open chrome://extensions, turn on Developer mode and choose Load unpacked. Then open the extension's Settings and paste a write API key. The key stays in the browser and is only sent to the M-Box API.

Other QR types

On the QR Codes screen, Other QR types makes codes that hold the details themselves: contact card (vCard), Wi-Fi login, UPI payment, calendar event, WhatsApp chat, email, SMS, phone call, map location and plain text. They work offline and never expire, but cannot be changed after printing and scans are not counted. Every QR code downloads as PNG, SVG or an A4 PDF ready to print.

Service status

m-box.in/status checks short links, the API, the dashboard and the docs live from your browser every minute. For monitoring from your own systems, call GET /api/v1/health; it needs no key and answers {"ok":true}.

from mbox import MBox
mbox = MBox("mbx_live_your_key")
link = mbox.create_link("https://example.in/orders/1", expires_in="7d")
result = mbox.import_file("customers.csv", url_column="payment_url", campaign="nov-emi")