API, webhooks & Zapier
The MarketThisNow REST API lets you automate what you do in the app and connect it to Zapier, Make, n8n or your own code. It’s available on plans that include Public API; create keys under Growth → API & webhooks.
OpenAPI 3.1 spec Zapier app (CLI project) Make custom app
Authentication
Send your key in the Authorization: Bearer header (or X-API-Key). Keys belong to one team, are shown once, and are stored only as a SHA-256 hash. Each key can be:
- Scoped — e.g.
crm:read,crm:write,hooks:write. Presets: Full, Read-only, Zapier/Make. - Limited to one site — other sites return 404.
- Limited to IP addresses / CIDR ranges.
- Set to expire, and revoked instantly at any time.
curl -H "Authorization: Bearer mtn_xxxxxxxx" https://marketthisnow.com/api/v1/me
| Scope | Allows |
|---|---|
sites:read | List sites, reports, plans and stats |
sites:write | Add sites and start scans |
content:read | Read posts and content |
content:write | Create drafts and approve content |
leads:read | Read email-list subscribers and lists |
leads:write | Add subscribers to lists |
crm:read | Read CRM contacts, deals and bookings |
crm:write | Create/update CRM contacts and deals |
events:write | Send tracked events (leads, sales) |
hooks:read | List webhooks and read trigger samples |
hooks:write | Subscribe/unsubscribe webhooks (Zapier, Make) |
affiliates:write | Record affiliate conversions |
Rate limits & errors
Per key, per minute, by plan: Free 30 · Starter 60 · Growth 120 · Agency 300. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429 with Retry-After.
Errors are JSON {"error":"…"}: 401 (missing, invalid, expired or revoked key), 402 (not in plan), 403 (scope, site or IP restriction), 404, 409, 422 (validation), 429. List endpoints accept limit (max 100) and since_id. Times are UTC ISO-8601.
Endpoints
Base URL: https://marketthisnow.com/api/v1
| Method | Path | Scope | Description |
|---|---|---|---|
GET | /me | read | Current team, plan, token scopes and rate limit |
GET | /sites | sites:read | List sites |
POST | /sites | sites:write | Add a site and start a scan |
GET | /sites/{id} | sites:read | One site with its latest scan |
GET | /sites/{id}/report | sites:read | Latest research report |
GET | /sites/{id}/plan | sites:read | Latest marketing plan with items |
GET | /sites/{id}/stats | sites:read | Real tracked stats (?days=30) |
GET | /sites/{id}/content | content:read | List content (?status=, ?since_id=, ?limit=) |
POST | /sites/{id}/content | content:write | Create a draft (body) or generate one (brief); submit=true sends it for approval |
POST | /content/{id}/approve | content:write | Approve a draft/pending post |
GET | /sites/{id}/videos | content:read | List videos |
POST | /sites/{id}/events | events:write | Record a lead/sale/custom event |
GET | /lists | leads:read | Email lists with subscriber counts |
GET | /leads | leads:read | Latest subscribers across lists |
POST | /lists/{id}/subscribers | leads:write | Subscribe someone (double opt-in rules apply) |
GET | /contacts | crm:read | CRM contacts (?email= to find one) |
GET | /contacts/{id} | crm:read | One CRM contact |
POST | /contacts | crm:write | Create or update a contact (matched by email) |
GET | /deals | crm:read | CRM deals (?stage=) |
POST | /deals | crm:write | Create a deal |
PATCH | /deals/{id} | crm:write | Update a deal (stage, value, title) |
GET | /bookings | crm:read | Calendar bookings |
POST | /affiliates/conversions | affiliates:write | Record an affiliate conversion |
GET | /events/types | hooks:read | Event types available for webhooks/triggers |
GET | /triggers/{event} | hooks:read | Recent events of one type (polling / samples) |
GET | /hooks | hooks:read | List webhook subscriptions |
POST | /hooks | hooks:write | Subscribe a URL to an event (REST hook) |
DELETE | /hooks/{id} | hooks:write | Unsubscribe |
curl -X POST -H "Authorization: Bearer mtn_xxx" -H "Content-Type: application/json" \
-d '{"email":"jane@example.com","name":"Jane","tags":["webinar"]}' https://marketthisnow.com/api/v1/contacts
Webhooks
Subscribe URLs in the app or with POST /api/v1/hooks {"target_url":"https://…","event":"lead.created"} (the response includes the signing secret). Events:
lead.tracked— A lead is tracked by the snippetsale.tracked— A sale is tracked by the snippetbooking.created— A meeting is bookedugc.submitted— A customer photo/video review arrivesuptime.down— A monitored site goes downuptime.up— A monitored site recoversdsar.request— A verified privacy (DSAR) request arriveslead.created— A lead signs up (list form, landing page or chatbot)content.published— Content is published to a channelcontent.pending_approval— Content is waiting for approvalscan.completed— A website scan finishedvideo.ready— A video finished renderingreview.new— A new review was foundmention.new— A new brand mention was foundcompetitor.change— A competitor watch detected a changesocial.message— A new comment/mention/DM arrivedaffiliate.conversion— An affiliate conversion was recordedorder.paid— A services order was paidorder.created— A services order was createdwebinar.registered— Someone registered for a webinarcrm.contact.created— A CRM contact was createdcrm.deal.stage_changed— A CRM deal moved stagesupport.handoff— A support chat visitor asked for a humantranslation.ready— A translation is ready for review
Each delivery is a POST with JSON {"id":123,"event":"lead.created","created_at":"…Z","site_id":4,"data":{…}} and headers:
X-MTN-Event,X-MTN-Delivery(unique per event+subscription — use it to de-duplicate)X-MTN-Timestamp— Unix secondsX-MTN-Signature-256: t=<timestamp>,v2=<hex HMAC-SHA256(secret, "<timestamp>.<raw body>")>— verify this and reject timestamps older than 5 minutesX-MTN-Signature: sha256=<hex HMAC-SHA256(secret, raw body)>— legacy, kept for existing receivers
// Node.js
const [t, v2] = req.get('X-MTN-Signature-256').split(',').map(s => s.split('=')[1]);
const ok = Math.abs(Date.now()/1000 - t) < 300 && crypto.timingSafeEqual(
Buffer.from(v2), Buffer.from(crypto.createHmac('sha256', SECRET).update(t + '.' + rawBody).digest('hex')));
// PHP
[$t, $v2] = array_map(fn($p) => explode('=', $p, 2)[1], explode(',', $_SERVER['HTTP_X_MTN_SIGNATURE_256']));
$ok = abs(time() - (int)$t) < 300 && hash_equals(hash_hmac('sha256', $t . '.' . $raw, $secret), $v2);
Respond 2xx within 10 seconds. Failures retry up to 3 times (5 minutes apart); a webhook is switched off after 20 consecutive failures or an HTTP 410 Gone. Only public https URLs are accepted. You can rotate a secret, send a test and see recent deliveries in the app.
Zapier
The Zapier app is a Zapier Platform CLI project with API-key auth, instant (REST hook) triggers for every event above, actions (create/update contact, create deal, add subscriber, create post draft, track lead/sale) and a find-or-create contact search. Until it’s published in Zapier’s directory, use Webhooks by Zapier (Catch Hook) + a webhook here, and Webhooks by Zapier → Custom request with your key for actions.
Make
The Make custom app has an API-key connection, instant triggers (dedicated webhooks attached/detached through /api/v1/hooks), actions, a contact search and a generic “Make an API call” module. Or use Make’s Webhooks → Custom webhook and HTTP modules directly.
Channel webhooks
Add a Webhook channel and we will POST JSON like this whenever an item is published to it:
{"event":"content.publish","site":"example.com","channel":"webhook","type":"post","title":"…","body":"…","image_url":"…","link":"…","scheduled_for":"2026-11-10 09:00:00"}
Requests include an X-MTN-Signature header: HMAC-SHA256 of the body using the channel secret.
Incoming
- Bounces/complaints:
POST /webhooks/bounce/{key}with{"email":"…","type":"hard|soft|complaint"}. - Conversions:
POST /twith{"k":"SITE_KEY","t":"lead|sale","v":49}from your server.