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
ScopeAllows
sites:readList sites, reports, plans and stats
sites:writeAdd sites and start scans
content:readRead posts and content
content:writeCreate drafts and approve content
leads:readRead email-list subscribers and lists
leads:writeAdd subscribers to lists
crm:readRead CRM contacts, deals and bookings
crm:writeCreate/update CRM contacts and deals
events:writeSend tracked events (leads, sales)
hooks:readList webhooks and read trigger samples
hooks:writeSubscribe/unsubscribe webhooks (Zapier, Make)
affiliates:writeRecord 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

MethodPathScopeDescription
GET/mereadCurrent team, plan, token scopes and rate limit
GET/sitessites:readList sites
POST/sitessites:writeAdd a site and start a scan
GET/sites/{id}sites:readOne site with its latest scan
GET/sites/{id}/reportsites:readLatest research report
GET/sites/{id}/plansites:readLatest marketing plan with items
GET/sites/{id}/statssites:readReal tracked stats (?days=30)
GET/sites/{id}/contentcontent:readList content (?status=, ?since_id=, ?limit=)
POST/sites/{id}/contentcontent:writeCreate a draft (body) or generate one (brief); submit=true sends it for approval
POST/content/{id}/approvecontent:writeApprove a draft/pending post
GET/sites/{id}/videoscontent:readList videos
POST/sites/{id}/eventsevents:writeRecord a lead/sale/custom event
GET/listsleads:readEmail lists with subscriber counts
GET/leadsleads:readLatest subscribers across lists
POST/lists/{id}/subscribersleads:writeSubscribe someone (double opt-in rules apply)
GET/contactscrm:readCRM contacts (?email= to find one)
GET/contacts/{id}crm:readOne CRM contact
POST/contactscrm:writeCreate or update a contact (matched by email)
GET/dealscrm:readCRM deals (?stage=)
POST/dealscrm:writeCreate a deal
PATCH/deals/{id}crm:writeUpdate a deal (stage, value, title)
GET/bookingscrm:readCalendar bookings
POST/affiliates/conversionsaffiliates:writeRecord an affiliate conversion
GET/events/typeshooks:readEvent types available for webhooks/triggers
GET/triggers/{event}hooks:readRecent events of one type (polling / samples)
GET/hookshooks:readList webhook subscriptions
POST/hookshooks:writeSubscribe a URL to an event (REST hook)
DELETE/hooks/{id}hooks:writeUnsubscribe
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 snippet
  • sale.tracked — A sale is tracked by the snippet
  • booking.created — A meeting is booked
  • ugc.submitted — A customer photo/video review arrives
  • uptime.down — A monitored site goes down
  • uptime.up — A monitored site recovers
  • dsar.request — A verified privacy (DSAR) request arrives
  • lead.created — A lead signs up (list form, landing page or chatbot)
  • content.published — Content is published to a channel
  • content.pending_approval — Content is waiting for approval
  • scan.completed — A website scan finished
  • video.ready — A video finished rendering
  • review.new — A new review was found
  • mention.new — A new brand mention was found
  • competitor.change — A competitor watch detected a change
  • social.message — A new comment/mention/DM arrived
  • affiliate.conversion — An affiliate conversion was recorded
  • order.paid — A services order was paid
  • order.created — A services order was created
  • webinar.registered — Someone registered for a webinar
  • crm.contact.created — A CRM contact was created
  • crm.deal.stage_changed — A CRM deal moved stage
  • support.handoff — A support chat visitor asked for a human
  • translation.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 seconds
  • X-MTN-Signature-256: t=<timestamp>,v2=<hex HMAC-SHA256(secret, "<timestamp>.<raw body>")> — verify this and reject timestamps older than 5 minutes
  • X-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 /t with {"k":"SITE_KEY","t":"lead|sale","v":49} from your server.