API overview
The SDK talks to these routes; you can call them yourself from a server or a script.
For contacts, customers, support, deals, webhooks and the app's actions from a backend, Zapier or a tool of your own, use the REST API with a workspace API key; for form and booking tools, the lead webhook.
- Base URL:
https://app.your-cockpit.com/api/sdk - Auth: your product's public key as
?key=on GET requests and as"key"in the JSON body on POST requests. - Format: JSON in and out. CORS is open,
OPTIONSanswers204. - Errors:
{ "error": "..." }with400(invalid input),404(unknown key),413(body over 64 KB) or429(rate limit).
Visitors#
Send a distinctId (an anonymous visitor id) and optionally user: { id, email, name }. A person with the same email is reused; otherwise the visitor becomes a new person in MRRocket and keeps that identity when they sign in later.