Webhooks
Mozin webhooks send a signed JSON event to a URL you choose whenever a job is scheduled, completed or cancelled, an invoice is sent or paid, or a new customer is added. Your automation platform (GoHighLevel, Zapier, Make, n8n or Pipedream) can then tag the customer, send a payment reminder, or say thank you and ask for a review once an invoice is paid, without anyone retyping anything.
Who can use webhooks
- Webhooks are included in the Mozin Business plan and in the 14-day free trial. To send leads into Mozin instead, see the Customer API.
- Only the business owner sees and changes the webhook settings. Managers and team members never see the URL, the secret or the delivery history.
- Each business has one webhook URL. You choose which events it receives.
Events contain customer contact details (name, email, phone, address). Only paste a URL from an account you control.
Set up
- Sign in at app.gomozin.com as the business owner.
- Open Business Profile → Integrations.
- Paste your webhook URL, choose the events (Job scheduled, Job completed, Job cancelled, Invoice sent, Invoice paid, Customer added), leave Sending events on, and click Save.
- Click Send test event. Mozin sends a
testevent right away and shows the result: the HTTP status your platform returned, or the error. - Copy the signing secret if you want to verify signatures (see below). Rotate creates a new one, used from the next delivery Mozin picks up; deliveries it already picked up still carry the old one. Remove webhook stops all events and deletes the delivery history.
GoHighLevel
- In GoHighLevel, go to Automation → Workflows → Create workflow → Start from scratch.
- Click Add new trigger and choose Inbound Webhook. Copy the URL it shows (it starts with
https://services.leadconnectorhq.com/hooks/). - Paste that URL in Mozin (Business Profile → Integrations), choose your events and click Save.
- In Mozin, click Send test event.
- Back in GoHighLevel, click Fetch Sample Requests, pick the request from Mozin, and save the trigger.
- Add actions and map the fields, for example Create/Update Contact with
customer.email,customer.phone,customer.first_nameandcustomer.last_name. - To treat events differently, add an If/Else on
type(for example,typeisjob.completed→ send a review request). Then Publish the workflow.
Inbound Webhook is a premium trigger in GoHighLevel, so GoHighLevel may bill each run. Mozin doesn’t charge per event.
Zapier, Make, n8n and Pipedream
- Zapier: a Webhooks by Zapier → Catch Hook trigger. Use Catch Raw Hook if you want the raw body to verify signatures.
- Make: a Webhooks → Custom webhook module.
- n8n Cloud: a Webhook node set to
POST. Use its production URL, not the test URL. - Pipedream: an HTTP / Webhook trigger.
Then send a test event from Mozin so the platform learns the fields.
Events
| Event | When it is sent |
|---|---|
job.scheduled | A new job is created. For a recurring job it is sent once per series, describing the next upcoming visit, not once per visit. |
job.completed | A visit is marked complete. Sent for every visit, recurring ones included. |
job.cancelled | A scheduled job is cancelled or deleted. “This and following” on a recurring job sends it once, for the earliest visit removed. |
invoice.sent | An invoice is sent for the first time (by email, by text, or marked as sent). |
invoice.paid | An invoice is paid in full, by card or marked paid by hand. |
customer.created | A customer is added in the Mozin app, on app.gomozin.com, or by approving an online booking. |
test | You click Send test event. Sample data, marked "test": true. |
Details
- Imports never fire. Jobs and series brought in with a file import don’t send
job.scheduled, so importing 300 jobs doesn’t flood your workflows. Once an import is activated, those jobs are your real jobs and completing one sendsjob.completedas usual. - A recurring series whose visits are all in the past sends no
job.scheduled. - Reopening a completed job and completing it again sends
job.completedagain, with a newcompleted_at. - Editing a recurring job with “this and following” starts a new series, which sends a new
job.scheduledif it has an upcoming visit. Turning a one-off job into a recurring one does the same. - Rescheduling or editing a job doesn’t send an event.
job.cancelledis sent when a scheduled job is cancelled or deleted.cancellation.scopesays what was removed:one_off(a one-off job),visit(one visit of a recurring job) orseries(“this and following” on a recurring job). Aseriescancel sends one event, for the earliest visit removed, andcancellation.visitssays how many visits were removed.cancellation.reasoniscancelledordeleted.- Restoring a cancelled job and cancelling it again sends another
job.cancelled. Deleting a job that is already cancelled sends nothing. Jobs in an import that isn’t activated yet send nothing. - For win-back flows, filter on
cancellation.scopeis notvisit. One skipped visit isn’t a lost customer. invoice.sentis sent once, when an invoice first goes from draft to sent (by email, by text, or marked as sent). Sending it again doesn’t send another event.invoice.paidis sent when an invoice is paid in full: a card payment, or marked paid by hand (also when a draft is marked paid). Mozin has no partial payments. If a payment is refunded and the invoice is paid again, a newinvoice.paidis sent.customer.createdis sent when someone adds a customer in the Mozin app, on app.gomozin.com, or by approving an online booking for a new customer. It is not sent for customers created through the Customer API, so a GoHighLevel → Mozin → GoHighLevel loop can’t happen, or by a file import.- If you already had a webhook, it keeps the events it had: the new events stay off until you tick them. A new webhook starts with all six ticked.
- Events are not backfilled: anything that happened before you saved the URL, or while webhooks were off, is never sent.
Payload
Every event starts with id, type, api_version, created_at and business. Job events add job and customer. This is a job.completed for a recurring visit:
{
"id": "6f1c2b9e-4a7d-4f3e-9c51-2d8e7a0b4c13",
"type": "job.completed",
"api_version": "2026-11-04",
"created_at": "2026-11-12T17:42:08.913274+00:00",
"business": {
"id": "3b0f6d2a-91c4-4e8b-a7f2-5c1d9e6b8a40",
"name": "Blue Peak Maids",
"time_zone": "America/New_York"
},
"job": {
"id": "a4e9c7b1-2f3d-4b6a-8e05-7d1c9b2f6e38",
"number": 1042,
"title": "Deep clean",
"service_key": "deep_cleaning",
"status": "completed",
"starts_at": "2026-11-12T14:00:00+00:00",
"ends_at": "2026-11-12T17:00:00+00:00",
"completed_at": "2026-11-12T17:42:08.401552+00:00",
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
},
"series": {
"id": "c2d8f1a6-5b3e-4c9d-b7a4-1e6f0d3c9b52",
"frequency": "weekly",
"interval_count": 2,
"end_mode": "never",
"until_date": null
}
},
"customer": {
"id": "e7b3a9d4-6c1f-4a2e-9d58-3f0b7c1e4a96",
"first_name": "Maria",
"last_name": "Silva",
"name": "Maria Silva",
"email": "maria.silva@example.com",
"phone": "+15085551234",
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
}
}
}| Field | Notes |
|---|---|
id | The event id. Same as the Mozin-Event-Id header and the same on every retry. Use it to drop duplicates. |
type | job.scheduled, job.completed, job.cancelled, invoice.sent, invoice.paid, customer.created or test. |
api_version | 2026-11-04. New fields may be added over time, so ignore fields you don’t know. |
created_at | When the event was created. |
business.time_zone | The business’s time zone (IANA name). Use it to show starts_at in local time. |
job.number | The job number shown in Mozin. |
job.title | The job title or custom service name. Can be null; job.service_key names the catalog service when one is set. |
job.status | scheduled in job.scheduled events, completed in job.completed events, cancelled in job.cancelled events. |
job.completed_at | null until the job is completed. |
job.address | Where the job takes place. unit and other parts can be null. |
job.series | null for a one-off job. For a recurring job: frequency (daily, weekly, monthly, yearly), interval_count (every N), end_mode (never or on_date) and until_date. |
customer | null if the job has no customer. address is the customer’s primary address. |
customer.phone | The number Mozin uses for reminders and invoices (billing number, else first mobile, else first). A 10-digit number is sent as +1 and its digits (+15085551234), an 11-digit number starting with 1 as + and its digits, and anything else as stored. Can be null. |
customer.email | The email Mozin sends invoices to. Can be null. |
Timestamps are ISO 8601 in UTC. Job and customer events never include prices, amounts, notes or internal fields. Invoice events include the invoice’s amounts (see below).
Cancelled jobs
job.cancelled has the same business, job and customer as other job events, plus a cancellation object. This one is “this and following” on a recurring job:
{
"id": "8a3d5f1c-2e7b-4c9a-b4d6-1f8e0c7a3b29",
"type": "job.cancelled",
"api_version": "2026-11-04",
"created_at": "2026-11-10T15:06:22.718340+00:00",
"business": {
"id": "3b0f6d2a-91c4-4e8b-a7f2-5c1d9e6b8a40",
"name": "Blue Peak Maids",
"time_zone": "America/New_York"
},
"job": {
"id": "a4e9c7b1-2f3d-4b6a-8e05-7d1c9b2f6e38",
"number": 1042,
"title": "Deep clean",
"service_key": "deep_cleaning",
"status": "cancelled",
"starts_at": "2026-11-12T14:00:00+00:00",
"ends_at": "2026-11-12T17:00:00+00:00",
"completed_at": null,
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
},
"series": {
"id": "c2d8f1a6-5b3e-4c9d-b7a4-1e6f0d3c9b52",
"frequency": "weekly",
"interval_count": 2,
"end_mode": "never",
"until_date": null
}
},
"customer": {
"id": "e7b3a9d4-6c1f-4a2e-9d58-3f0b7c1e4a96",
"first_name": "Maria",
"last_name": "Silva",
"name": "Maria Silva",
"email": "maria.silva@example.com",
"phone": "+15085551234",
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
}
},
"cancellation": {
"scope": "series",
"reason": "cancelled",
"visits": 6,
"cancelled_at": "2026-11-10T15:06:22.481907+00:00"
}
}| Field | Notes |
|---|---|
job | The cancelled job. For series, the earliest visit removed. job.completed_at is null. |
cancellation.scope | one_off, visit or series. |
cancellation.reason | cancelled or deleted. |
cancellation.visits | How many visits were removed. 1 unless scope is series. |
cancellation.cancelled_at | When the job was cancelled or deleted. |
Invoice events
invoice.sent and invoice.paid carry business, invoice and customer. customer has the same fields as in job events. This is an invoice.paid. An invoice.sent has the same shape, with status sent, amount_paid_cents 0, paid_at null and payment_method null.
{
"id": "4c7e1a9b-5d2f-4b8e-a3c6-9e0d2f5b7a14",
"type": "invoice.paid",
"api_version": "2026-11-04",
"created_at": "2026-11-13T13:18:48.012774+00:00",
"business": {
"id": "3b0f6d2a-91c4-4e8b-a7f2-5c1d9e6b8a40",
"name": "Blue Peak Maids",
"time_zone": "America/New_York"
},
"invoice": {
"id": "9d2b4f7e-3c8a-4e1b-b6d0-5a7f2c9e1b84",
"number": 2087,
"title": "Deep clean",
"status": "paid",
"issued_at": "2026-11-12",
"due_date": "2026-11-27",
"payment_terms": "net_15",
"sent_at": "2026-11-12T17:55:31.204118+00:00",
"paid_at": "2026-11-13T13:18:47.630295+00:00",
"currency": "usd",
"total_cents": 18500,
"amount_paid_cents": 20500,
"tip_cents": 2000,
"amount_due_cents": 0,
"total_formatted": "$185.00",
"amount_due_formatted": "$0.00",
"payment_method": "card",
"job_id": "a4e9c7b1-2f3d-4b6a-8e05-7d1c9b2f6e38",
"pay_url": "https://gomozin.com/i/Xq3v9KfT2bLm8Rw1Zc6Np4Hd"
},
"customer": {
"id": "e7b3a9d4-6c1f-4a2e-9d58-3f0b7c1e4a96",
"first_name": "Maria",
"last_name": "Silva",
"name": "Maria Silva",
"email": "maria.silva@example.com",
"phone": "+15085551234",
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
}
}
}| Field | Notes |
|---|---|
invoice.number | The invoice number shown in Mozin. |
invoice.status | sent or paid. |
invoice.issued_at, invoice.due_date | Dates (YYYY-MM-DD), not timestamps. The due date is the issue date plus the payment terms. |
invoice.payment_terms | due_on_receipt, net_15, net_30 or custom. |
invoice.sent_at, invoice.paid_at | Timestamps, or null. |
invoice.currency | Always usd. All amounts are whole cents: 18500 is $185.00. |
invoice.total_cents | The invoice total. |
invoice.amount_paid_cents | What the customer paid, including any tip. |
invoice.tip_cents | The tip, or 0. |
invoice.amount_due_cents | What’s still owed. 0 once the invoice is paid. |
invoice.total_formatted, invoice.amount_due_formatted | Ready-to-print text like $150.00, handy in SMS templates. |
invoice.payment_method | card, cash, check, zelle, venmo or other. null before payment. |
invoice.job_id | The linked job, or null. |
invoice.pay_url | The customer’s pay page, the same link as in the invoice email. Can be null. |
Customer events
customer.created carries business and customer.
{
"id": "2b9f6c3e-8a1d-4e7c-b5f2-0d4a8c6e1f37",
"type": "customer.created",
"api_version": "2026-11-04",
"created_at": "2026-11-03T19:24:10.903461+00:00",
"business": {
"id": "3b0f6d2a-91c4-4e8b-a7f2-5c1d9e6b8a40",
"name": "Blue Peak Maids",
"time_zone": "America/New_York"
},
"customer": {
"id": "e7b3a9d4-6c1f-4a2e-9d58-3f0b7c1e4a96",
"first_name": "Maria",
"last_name": "Silva",
"name": "Maria Silva",
"email": "maria.silva@example.com",
"phone": "+15085551234",
"address": {
"line1": "48 Elm Street",
"unit": "Apt 2",
"city": "Framingham",
"state": "MA",
"postal_code": "01701",
"country": "US"
},
"created_at": "2026-11-03T19:24:10.557812+00:00"
}
}| Field | Notes |
|---|---|
customer | The same fields as in job events. |
customer.created_at | When the customer was added. |
Test event
Same shape as a job event, with sample values and "test": true. business.time_zone is not included.
{
"id": "0d5e8f2a-7b1c-4e3d-a9f6-4c2b8e1d7a05",
"type": "test",
"test": true,
"api_version": "2026-11-04",
"created_at": "2026-11-04T18:20:41.512093+00:00",
"business": {
"id": "3b0f6d2a-91c4-4e8b-a7f2-5c1d9e6b8a40",
"name": "Blue Peak Maids"
},
"job": {
"id": "00000000-0000-0000-0000-000000000000",
"number": 1001,
"title": "Test job",
"service_key": null,
"status": "completed",
"starts_at": "2026-11-04T16:00:00+00:00",
"ends_at": "2026-11-04T18:00:00+00:00",
"completed_at": "2026-11-04T18:20:41.512093+00:00",
"address": {
"line1": "123 Main St",
"unit": null,
"city": "Boston",
"state": "MA",
"postal_code": "02110",
"country": "US"
},
"series": null
},
"customer": {
"id": "00000000-0000-0000-0000-000000000000",
"first_name": "Test",
"last_name": "Customer",
"name": "Test Customer",
"email": "test@example.com",
"phone": "+15555550100",
"address": {
"line1": "123 Main St",
"unit": null,
"city": "Boston",
"state": "MA",
"postal_code": "02110",
"country": "US"
}
}
}Headers and signatures
Each delivery is a POST with a JSON body and these headers:
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | Mozin-Webhooks/1 |
Mozin-Event-Id | The event id (same as id in the body). The same on every retry. |
Mozin-Event-Type | The event type (same as type). |
Mozin-Timestamp | Unix time in seconds when this attempt was signed. New on every retry. |
Mozin-Signature | v1= followed by the hex HMAC-SHA256 of timestamp + "." + raw body, keyed with your signing secret. |
POST /hooks/your-unique-url HTTP/1.1
Content-Type: application/json
User-Agent: Mozin-Webhooks/1
Mozin-Event-Id: 6f1c2b9e-4a7d-4f3e-9c51-2d8e7a0b4c13
Mozin-Event-Type: job.completed
Mozin-Timestamp: 1794505330
Mozin-Signature: v1=5d41c7a0f9e3b8d2c6a1e4f7b0d9c3a8e2f5b1d4c7a0e3f6b9d2c5a8e1f4b7d0
{"id":"6f1c2b9e-4a7d-4f3e-9c51-2d8e7a0b4c13","type":"job.completed", …}Verify a signature
Checking the signature is optional (the URL itself is a secret), but it proves the event came from Mozin and wasn’t changed. Most no-code triggers, like GoHighLevel’s Inbound Webhook, can’t check it, and that’s fine. In a Pipedream code step, an n8n Code node or your own code:
- Use the raw request body, byte for byte. Parsing the JSON and serializing it again changes the bytes and the signature won’t match.
- Use the whole secret as the key, including the
whsec_prefix. Don’t decode it. - Reject timestamps more than 5 minutes from your clock, and compare in constant time.
- Each attempt is signed with the secret that was current when Mozin picked it up to send. After you rotate, keep accepting the old secret for a few minutes.
import crypto from 'node:crypto';
const TOLERANCE_SECONDS = 5 * 60;
/**
* rawBody: the request body exactly as received (string or Buffer), before JSON parsing.
* headers: the request headers, lowercase names. secret: your full signing secret, including "whsec_".
*/
export function verifyMozinWebhook(rawBody, headers, secret) {
const timestamp = headers['mozin-timestamp'] ?? '';
const signature = headers['mozin-signature'] ?? '';
// 1. Reject missing or old timestamps (replay protection).
if (!/^[0-9]{1,12}$/.test(timestamp)) return false;
const age = Math.abs(Math.floor(Date.now() / 1000) - Number(timestamp));
if (age > TOLERANCE_SECONDS) return false;
// 2. Recompute the signature over `${timestamp}.${rawBody}`.
const expected =
'v1=' +
crypto
.createHmac('sha256', secret)
.update(`${timestamp}.`)
.update(rawBody)
.digest('hex');
// 3. Constant-time compare.
const a = Buffer.from(signature);
const b = Buffer.from(expected);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}import hashlib
import hmac
import re
import time
TOLERANCE_SECONDS = 5 * 60
def verify_mozin_webhook(raw_body: bytes, headers: dict, secret: str) -> bool:
"""raw_body: the request body exactly as received, before JSON parsing.
headers: the request headers, lowercase names. secret: your full signing
secret, including "whsec_"."""
timestamp = headers.get("mozin-timestamp", "")
signature = headers.get("mozin-signature", "")
# 1. Reject missing or old timestamps (replay protection).
if not re.fullmatch(r"[0-9]{1,12}", timestamp):
return False
if abs(time.time() - int(timestamp)) > TOLERANCE_SECONDS:
return False
# 2. Recompute the signature over f"{timestamp}.{raw_body}".
expected = "v1=" + hmac.new(
secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256
).hexdigest()
# 3. Constant-time compare.
return hmac.compare_digest(signature.encode(), expected.encode())Delivery and retries
- Events usually arrive within a minute or two. The test event is sent right away.
- Duplicates are possible. An event can arrive more than once (for example, if your platform timed out after it received the event). Drop duplicates by the event
idin the body (also sent asMozin-Event-Id). If you verify signatures, readidandtypefrom the verified body: only the timestamp and body are signed, not the other headers. Delivery isn’t guaranteed either: an event that fails all 6 attempts is marked failed, and in rare cases an internal error means an event is never queued. Don’t rely on webhooks as the only copy of your data. - Any 2xx response counts as delivered. Anything else, a timeout or a network error is a failure. Mozin doesn’t read or store your response body.
- Redirects are not followed. A 3xx response is a failure, so use the final URL.
- Each attempt times out after 10 seconds. Reply fast and do slow work afterwards.
- After a failure Mozin retries after 1 min, 5 min, 30 min, 2 h and 12 h (6 attempts, about 15 hours). Then the event is marked failed.
- Events can arrive out of order, especially after retries. Use
created_atandcompleted_at, not arrival order. - Recent deliveries (event, time, status, HTTP code) are listed under Integrations. History is kept for 30 days, then removed in the next cleanup.
- Changing the URL, or turning webhooks off, cancels every event still waiting in the queue. Those are not sent to the new URL. Deliveries Mozin already picked up keep the old URL and can still reach it, usually within a minute.
Allowed destinations
To keep customer data safe, Mozin only sends to these automation platforms (* means any subdomain). The URL must use https, with no custom port, no username or password, no IP address, and at most 2,048 characters.
| Platform | Host |
|---|---|
| GoHighLevel | services.leadconnectorhq.com |
| Zapier | hooks.zapier.com |
| Make | *.make.com |
| n8n Cloud | *.app.n8n.cloud |
| Pipedream | *.m.pipedream.net |
Need another platform, self-hosted n8n or your own server? Email hi@gomozin.com.
Coming soon
To send data into Mozin, for example creating a customer from a new GoHighLevel lead, use the Customer API.
Reading customers, jobs and invoices from Mozin is coming soon. Tell us what you need at hi@gomozin.com.