Skip to navigation

Webhooks

A webhook sends an HTTPS POST to your URL each time an event you subscribe to happens in your workspace. Use them to keep an accounting system, Zapier/Make scenario, or ERP in sync without polling.

Setting up an endpoint

Add an endpoint under Settings → Webhooks: enter the URL and choose the events to receive, or * for all of them. The signing secret is shown once, when you create the endpoint; rotate it from the same screen.

You can only subscribe to the events listed below. The API rejects any other name with 422, and GET /api/v1/webhooks/events returns the same list.

Events

CRM

EventWhen it is sent
lead.createdA lead was created.
lead.updatedA lead’s details were changed.
lead.deletedA lead was deleted.
contact.createdA contact was created.
contact.updatedA contact’s details were changed.
contact.deletedA contact was deleted.
account.createdAn account was created.
account.updatedAn account’s details were changed.
account.deletedAn account was deleted.
deal.createdA deal was created.
deal.updatedA deal’s details were changed.
deal.stage_updatedA deal moved to another pipeline stage.
deal.deletedA deal was deleted.
activity.createdAn activity (task, call, meeting) was created.
activity.completedAn activity was marked complete.
conversation.createdA new conversation was started.

Billing

EventWhen it is sent
invoice.createdAn invoice was created (as a draft).
invoice.sentAn invoice was issued to the customer (left draft/pending).
invoice.paidAn invoice became fully paid (by payments and/or credit notes).
invoice.voidedAn invoice was cancelled or voided.
payment.receivedA payment was recorded against an invoice.
credit_note.issuedA credit or debit note was issued against an invoice. The payload’s note_type is credit or debit.
quotation.sentA quotation was sent to the customer.
quotation.acceptedA quotation was accepted.
quotation.rejectedA quotation was rejected.

Expense

EventWhen it is sent
expense.submittedAn expense claim was submitted for approval.
expense.approvedAn expense claim was approved.
expense.rejectedAn expense claim was rejected.

Inventory

EventWhen it is sent
stock.adjustedA product’s stock quantity changed.
stock.below_reorder_pointA product’s stock dropped below its reorder point.

Workspace

EventWhen it is sent
subscription.changedThe workspace’s plan or modules changed.

Payload

Every delivery has the same envelope. The event’s own fields are in data.

{
"id": "5b7a0e8e-6a0c-4a51-9d1e-0f3b9a7c2d10",
"event": "invoice.paid",
"api_version": "2026-10-01",
"occurred_at": "2026-10-01T09:30:12.481Z",
"tenant_id": "0c1f6d2e-9a54-4b7e-8d3f-2b1a7e6c5d4f",
"data": {
"invoice_id": "9f2d4c1a-3b5e-4f6a-8c7d-1e2f3a4b5c6d",
"invoice_number": "INV-00042",
"account_id": "7a1b2c3d-4e5f-4a6b-8c9d-0e1f2a3b4c5d",
"status": "paid",
"previous_status": "sent",
"currency": "USD",
"total": "1200.00",
"amount_paid": "1200.00",
"amount_credited": "0.00",
"due_date": "2026-10-15"
}
}
  • id identifies the event. Retries of the same event reuse it, so use it to ignore duplicates.
  • Money amounts are strings, so no precision is lost.
  • The eight original CRM events (lead.created, contact.created, account.created, deal.created, deal.stage_updated, activity.created, activity.completed, conversation.created) also repeat their data fields at the top level, as they always have. Integrations built before api_version 2026-10-01 keep working.

Verifying a delivery

Each request carries these headers:

HeaderValue
X-Moyo-EventThe event name, e.g. invoice.paid
X-Moyo-DeliveryA unique id for this delivery attempt
X-Moyo-Signaturet=<unix timestamp>,v1=<signature>

The signature is an HMAC-SHA256, keyed with your endpoint’s secret, of <timestamp>.<raw request body>. Compute it over the exact bytes you received and compare it with v1 using a constant-time comparison. Reject requests whose timestamp is more than a few minutes old.

Retries

A delivery that doesn’t get a 2xx response is retried up to 6 times. The wait starts at 30 seconds and doubles after each attempt, up to 30 minutes. Each attempt is listed under the endpoint’s delivery history, where you can also redeliver it by hand.

Failing endpoints are switched off

If an endpoint’s last 5 deliveries all use up their retries without a 2xx, Moyo switches the endpoint off and emails the workspace owners with the endpoint, the last event and the last error. Events that happen while it is off are not replayed. Fix your receiver, turn the endpoint back on under Settings → Webhooks, and use Redeliver on any failed deliveries you still need.