How delivery works
Heymarket sends an HTTPSPOST request to your configured webhook URL. Your receiver should parse the JSON body, validate the token for the webhook configuration, persist what it needs, and return a 2xx response quickly.
If processing may take more than a short moment, acknowledge the webhook first and move the work to a queue. Make processing idempotent with type plus a stable ID inside event_data when one is present, so repeated deliveries do not create duplicate work.
Steps
Create an HTTPS receiver
Create a public HTTPS endpoint that accepts
POST requests with JSON bodies.webhook receiver
Configure the webhook URL
Add the HTTPS endpoint in the Heymarket app webhook settings. Store the webhook verification token from that configuration and compare it with the Webhook URLs are configured in the Heymarket app. The public REST API reference documents webhook payloads, but it does not provide a webhook-management endpoint.
token value in every payload.For app configuration steps, see the Heymarket Help Center article: Getting Started with Webhooks.
Event types
Webhooktype values include:
message_sentmessage_recievedchat_reassignedchat_closedchat_openedchat_pendingchat_transferredtarget_opt_outtarget_opt_intarget_double_opt_intarget_double_opt_restrictedincoming_call
The current API spelling is
message_recieved. Match that exact value when branching on inbound-message events.Security
- Keep webhook URLs private.
- Validate the
tokenvalue before processing the event. - Do not expose webhook URLs in client-side code or public repositories.
- Use separate webhook URLs for separate environments.
- Log event type, webhook ID, and processing outcome for troubleshooting.
Related pages
Webhooks concept
Understand where webhooks fit with REST API calls.
Messages reference
Send follow-up messages after webhook events.
Webhook event reference
Review the generated webhook payload schema.