REST API

Contacts, customers, support, deals, campaigns and the app's actions, for your backend, Zapier, Make or a tool of your own. Build your own inbox or CRM and keep MRRocket's data, pages and agents underneath.

  • Base URL: https://app.mrrocket.dev/api/v1
  • Auth: an API key as Authorization: Bearer mrr_api_…. Create one under Settings › Integrations › MRRocket API; it is shown once, only its hash is stored, and Revoke ends it at once. The product's public key (mrr_pub_…), its server key (mrr_sk_…) and MCP tokens (mr_…) do not work here.
  • Format: JSON in and out, bodies up to 64 KB.
  • Limits: 600 requests a minute per key; above that 429 with Retry-After: 60.
  • OpenAPI: /api/v1/openapi.json, for Postman, Insomnia or a generated client.

A contact is an identified person: someone with an email. Anonymous visitors are never contacts.

Access#

Each key has one level, and each level covers the one before.

LevelWhat it may do
ReadReads your data, changes nothing
Read and changeAlso adds and edits contacts, customers and records
Read, change and sendAlso deletes, and reaches people without asking you

A key is for all products or for one. A key for one product reaches nothing of another: not by list, id or email. Lists that belong to the whole workspace need a key for all products.

One limit to know: a person is one record in your workspace. A key for one product that adds someone already known from another product works on that same person, so it can read what the workspace knows of them.

No key can spend money or change how your team runs, whatever its level. It can only ask you. Every write stands in the log with the key's name; reads count as one line per key and hour.

Keys made before levels keep working as they did, for all products.

Errors#

{ "error": { "code": "invalid_field", "message": "email: a valid email address is required" } }
StatusCodeWhen
400invalid_jsonThe body is not a JSON object
401unauthorizedNo key, an unknown key or a revoked one
403not_allowedThe key's level or product does not cover this
404not_foundNothing with that id for this key
409already_exists, smart_list, already_billedThe email belongs to another contact; a smart list can't be changed by hand; a payment provider already bills this customer
413too_largeThe body is over 64 KB
422invalid_field, not_stored, not_sent, failedA field is wrong, or the work did not go through; the message says why
429rate_limited, too_many_openOver 600 requests a minute; 20 cards already wait for you

The contact#

{
  "id": "per_8f3k2c",
  "email": "ana@acme.io",
  "name": "Ana Lopez",
  "phone": "+1 555 0100",
  "company": "Acme",
  "title": "CTO",
  "source": "API",
  "products": [{ "id": "prod_rr", "lifecycle": "lead" }],
  "legalBasis": { "kind": "consent", "reason": "Signed up for the beta", "setAt": "2026-10-22T18:00:00.000Z" },
  "emailConsent": "granted",
  "properties": { "plan": "trial", "seats": 10 },
  "createdAt": "2026-10-22T18:00:00.000Z",
  "updatedAt": "2026-10-22T18:00:00.000Z"
}

properties are your own: up to 50, values strings, numbers or booleans. legalBasis is the basis to email this contact; null means Outreach does not email them. emailConsent is granted, withdrawn after an unsubscribe, or none when no basis was ever recorded; only contacts with granted enter a journey.

Contacts#

Create or update by email (upsert)#

curl -X PUT https://app.mrrocket.dev/api/v1/contacts \
  -H "Authorization: Bearer $MRROCKET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ana@acme.io",
    "name": "Ana Lopez",
    "company": "Acme",
    "product": "prod_rr",
    "properties": { "plan": "trial" },
    "lists": ["list_beta"]
  }'

201 with the contact when it is new, 200 when it existed. The body fields:

Field
emailRequired
name, phone, company, titleOptional text
productA product id: the contact joins it as a lead
propertiesYour own properties; null removes one
legalBasis{ "kind": "consent" | "customer" | "b2b_interest" | "non_eu_b2b", "reason"?: "…" }
signedUpAtISO date of the real signup, if earlier than this contact. Journeys' "Signed up" trigger reads it, so a contact that reaches MRRocket late does not count as new
listsStatic list ids to add the contact to

A legal basis is checked by the same rules as in MRRocket: customer only for a customer, b2b_interest needs a work email and a reason and is refused in Germany, Austria and Switzerland, non_eu_b2b needs a country outside the EU. A refused basis answers 422 with the reason. Send consent only when the person really agreed.

Create#

POST /api/v1/contacts with the same body creates a contact and answers 409 already_exists when the email is taken (the message names the existing id).

Get, update#

curl https://app.mrrocket.dev/api/v1/contacts/per_8f3k2c -H "Authorization: Bearer $MRROCKET_API_KEY"
 
curl -X PATCH https://app.mrrocket.dev/api/v1/contacts/per_8f3k2c \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "title": "CTO", "properties": { "seats": 12, "plan": null } }'

PATCH changes what you send; null clears phone, company, title or a property.

List#

curl "https://app.mrrocket.dev/api/v1/contacts?limit=100" -H "Authorization: Bearer $MRROCKET_API_KEY"

Newest first, limit 1 to 100 (default 50). The answer is { "data": [...], "nextCursor": "…" | null }; send cursor=<nextCursor> for the next page. Filters: email, product (a product id), list (a list id).

Lists#

# All lists with their ids
curl https://app.mrrocket.dev/api/v1/lists -H "Authorization: Bearer $MRROCKET_API_KEY"
 
# Add a contact (by id or email)
curl -X POST https://app.mrrocket.dev/api/v1/lists/list_beta/contacts \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "email": "ana@acme.io" }'
 
# Remove a contact
curl -X DELETE https://app.mrrocket.dev/api/v1/lists/list_beta/contacts/per_8f3k2c \
  -H "Authorization: Bearer $MRROCKET_API_KEY"

Only static lists take members by hand; a smart list follows its rule (409 smart_list).

Events#

curl -X POST https://app.mrrocket.dev/api/v1/events \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "email": "ana@acme.io", "event": "Upgraded", "properties": { "plan": "pro" } }'

An event for an existing contact (contactId or email), stored like a server-side SDK event: it shows on the contact and in Analytics. product is needed when the contact belongs to several products or none; timestamp (ISO or milliseconds) defaults to now and may be up to 30 days back. Names starting with $ are reserved.

Unsubscribes#

curl -X POST https://app.mrrocket.dev/api/v1/unsubscribes \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "email": "ana@acme.io", "product": "prod_rr" }'

Ends marketing email to an address, like the unsubscribe link: on the suppression list, consent ended, out of every running journey. It creates no contact. A later legalBasis of kind consent on the contact undoes it (never a bounce or a spam complaint).

Customers#

Report who pays what from your own billing. It counts like a payment provider's: MRR, churn, revenue and Profit see it, and each entry shows under Settings › Revenue.

curl -X PUT https://app.mrrocket.dev/api/v1/customers \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "product": "prod_rr", "externalId": "acct_42", "email": "ana@acme.io", "name": "Ana Lopez",
        "amount": 49, "currency": "EUR", "interval": "month", "startsOn": "2026-10-01", "plan": "Pro" }'
  • externalId is your id for this deal. The same call twice books nothing new (201 when new, 200 when known).
  • A new amount holds from priceFrom (default today), and earlier months keep what they cost, so it shows as expansion or contraction. A new start, interval or currency restates the deal.
  • A customer who left: send endsOn. That is churn. DELETE /customers/<externalId>?product=… instead takes back a report that was wrong, and needs Read, change and send.
  • A customer a connected payment provider already bills in that product is refused with 409 already_billed, or MRR would count twice.
  • A contact with this email becomes this one customer: their events, chats and own fields move onto the person who pays.
  • GET /customers?product=… lists a product's customers from every source, with plan, MRR and health. Filter with email and stage (customer, trial, churned). For many customers at once, Settings › Revenue also takes a CSV.

A customer's health score takes your own parts through events named health.<part>, with properties.ok (true or false) or properties.score (0 to 100).

Tickets#

Keep a support inbox of your own, on MRRocket's data: tickets also show in Inbox › Support, and the agents can work them.

CallWhat it doesAccess
GET /tickets?product=…&status=…Conversations, newest activity firstRead
GET /tickets/<id>One ticket with its messages. A message with status: "draft" is an answer an agent preparedRead
POST /ticketsA customer's message from your own chat: product, body, one of email, userId, contactId, and optionally name, subject, externalId (the same one continues the ticket)Read and change
PATCH /tickets/<id>status (open, waiting, solved), priority (low, normal, high, urgent)Read and change
POST /tickets/<id>/notesAn internal note: body. The customer never sees itRead and change
POST /tickets/<id>/replyAnswers the customer: body, optionally draftId to send an agent's draftRead, change and send

Webhooks#

MRRocket tells your system what happened.

curl -X POST https://app.mrrocket.dev/api/v1/webhooks \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "url": "https://you.example.com/mrrocket", "events": ["support.message.received"] }'

The answer holds the signing secret (mrw_…), once. Leave out events to hear everything; a key limited to one product only makes addresses for that product. You can also add addresses under Settings › Integrations › MRRocket API. At most 10 addresses a workspace.

EventWhen
support.message.receivedA customer wrote to support
support.reply.sentA support reply went out
contact.createdA new contact
customer.at_riskA customer's health became at risk
approval.decidedThe owner decided an approval
{ "id": "whe_8f3k2c", "event": "support.message.received", "createdAt": "2026-11-05T09:00:00.000Z", "product": "prod_rr", "data": { "ticketId": "cv_1", "messageId": "msg_1" } }

Each POST carries X-MRRocket-Event, X-MRRocket-Delivery and X-MRRocket-Signature: t=<unix>,v1=<hex>, where v1 is the HMAC-SHA256 of <t>.<raw body> with your secret. Answer with a 2xx within 10 seconds. A failed one is tried again after 2 minutes, 10 minutes, 1 hour and 6 hours, so the same id can arrive twice. Only HTTPS addresses on the public internet; redirects are not followed.

import { createHmac, timingSafeEqual } from "node:crypto";
 
const isFromMRRocket = (header: string, rawBody: string, secret: string) => {
    const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
    const want = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
    return v1?.length === want.length && timingSafeEqual(Buffer.from(v1), Buffer.from(want)) && Math.abs(Date.now() / 1000 - Number(t)) < 300;
};

Deals#

The deals on Sales › Pipeline. Stages are lead, qualified, demo, proposal, negotiation, won and lost.

CallWhat it doesAccess
GET /deals?product=…&stage=…Deals, newest firstRead
GET /deals/<id>One deal and its peopleRead
POST /dealsproduct, optionally title, value (per year), stage, contactId or email, sourceRead and change
PATCH /deals/<id>stage (with lostReason), value, titleRead and change

Moving a deal runs what the board runs: won makes the person a customer, and a stage with a sequence enrolls them, with the first email waiting in Drafts.

Campaigns#

GET /campaigns?product=…&status=… lists paid campaigns with their numbers of the last 7 and 28 days; GET /campaigns/<id> adds the ad sets, ads and days. Read only: changing them goes through actions, and what can spend always asks you.

For an ad tool of your own: send its spend to the costs webhook with category: "ads", and it counts in Profit as ad spend. Do not also sync the same ad account under Paid Ads, or it counts twice.

Actions#

Everything else is an action: the same code a button in the app runs.

curl https://app.mrrocket.dev/api/v1/actions -H "Authorization: Bearer $MRROCKET_API_KEY"
 
curl -X POST https://app.mrrocket.dev/api/v1/actions/ads.campaign.rename \
  -H "Authorization: Bearer $MRROCKET_API_KEY" -H "Content-Type: application/json" \
  -d '{ "args": { "campaign_id": "cmp_1", "name": "Spring trials" } }'

GET /actions lists what this key may call, with each one's args. All arguments listed there are required; send an empty string to keep a field. The action decides the access it needs:

ActionNeeds
ReadsRead
Adds or changesRead and change
Removes, or reaches outside MRRocketRead, change and send
Spends money or changes how the team runsNever runs from a key

The last kind is listed with "runs": "asks_the_owner". With Read, change and send the call answers 202 and puts a card in Needs you; you can add a reason to the body, and it stands on the card.

{ "status": "waiting_for_owner", "approvalId": "prop_8f3k2c", "summary": "Daily ad spend limit to 200" }

GET /approvals/<id> says what became of it: status and ran. A key sees only its own cards and can have at most 20 waiting (429 too_many_open). An action that belongs to the whole workspace, like saved replies, needs a key for all products.

Emails to strangers, mails to many people and what costs credits are not on the list.

From Node#

const mrrocket = (path: string, init: RequestInit = {}) =>
    fetch(`https://app.mrrocket.dev/api/v1${path}`, {
        ...init,
        headers: { authorization: `Bearer ${process.env.MRROCKET_API_KEY}`, "content-type": "application/json", ...init.headers },
    }).then(async (r) => {
        const body = await r.json();
        if (!r.ok) throw new Error(`${r.status} ${body.error.code}: ${body.error.message}`);
        return body;
    });
 
await mrrocket("/contacts", { method: "PUT", body: JSON.stringify({ email: "ana@acme.io", name: "Ana Lopez" }) });
await mrrocket("/events", { method: "POST", body: JSON.stringify({ email: "ana@acme.io", event: "Upgraded" }) });

Keep the key on your server, never in a browser or an app.