Skip to main content
Beta. Melso does not send these events yet, and their fields can still change.
Melso sends an event to your endpoint whenever something changes in one of your firm’s companies: an incorporation moves forward, a company has everything it needs, a certificate is about to expire, a tax return waits for approval or has been filed. Use webhooks to react, and List events to reconcile. Both return the same objects.

Add an endpoint

Your firm’s owner or an admin adds endpoints in the Melso console, under Settings › Developers › Webhooks, or with Create a webhook endpoint:
secret appears only in this answer. Store it to verify signatures. An endpoint receives the events of every company of your firm.

The event object

Event types

Subscribe to a whole family with a wildcard, such as tax_return.*.

Verify the signature

Every request carries a Melso-Signature header:
v1 is the HMAC-SHA256 of t, a . and the raw request body, keyed with the endpoint’s secret. Compare it in constant time, and refuse a t older than five minutes.
Verify against the raw body, before any JSON parsing.

Respond, retries and order

  • Answer 2xx within 10 seconds, then do the work. Anything else is a failure.
  • Melso retries a failed event with exponential backoff for 3 days. An endpoint that keeps failing is disabled, and the firm’s owner and admins get an email.
  • Events can arrive more than once and out of order. Use id to skip duplicates, and read the current state with the object’s GET endpoint when order matters.

Replay and reconcile

List events returns the last 30 days of events for your firm, newest first. Filter by type, company_id or created_after. Use it to rebuild what an outage missed, or instead of webhooks if you prefer polling.

Test an endpoint

Send a test event from Settings › Developers › Webhooks, or with Send a test event. The console lists each endpoint’s recent deliveries, with their status and your response code, and can resend any of them.