Skip to main content
Hotmart is a digital product sales platform widely used in Brazil. Timely.ai lets you integrate Hotmart events with your AI agents — for example, automatically granting access to a group, sending a welcome message via WhatsApp, or updating a contact in the CRM every time a purchase is approved. The integration works in two models:
  1. Direct webhook: Hotmart sends events to a Timely endpoint (or your own server), which triggers automations in the workspace.
  2. Native integration: configure the webhook URL generated by your Timely agent directly in the Hotmart dashboard.

Configure the webhook URL in Hotmart

1

Access the Hotmart dashboard

Go to Tools → Webhooks in your Hotmart account (producer or co-producer).
2

Add a new webhook

Click Add webhook and enter the URL. To send events to a Timely agent, use the endpoint generated under Settings → Channels → Incoming Webhook in your workspace.
3

Select events

Select PURCHASE_COMPLETE, PURCHASE_CANCELED, PURCHASE_REFUNDED, SUBSCRIPTION_CANCELLATION, and others as needed.
4

Save and test

Use Hotmart’s Test button to send a sample payload to your endpoint.

Hotmart signature validation

Hotmart sends the X-Hotmart-Webhook-Token header with a fixed token you configure in the dashboard. This is not HMAC — it is a direct token comparison. For that reason, make sure to use HTTPS and keep the token secret.
Node.js
Because Hotmart does not use HMAC, any server with the token can forge a request. Use the token only over HTTPS, never over HTTP, and never expose the token in logs.

Event: PURCHASE_COMPLETE

Triggered when a purchase is approved (credit card, cleared bank slip, confirmed PIX).

Event: PURCHASE_CANCELED

Triggered when a purchase is canceled before compensation (expired bank slip, card definitively declined).

Event: PURCHASE_REFUNDED

Triggered when a refund is approved after the purchase was already completed.

Event: SUBSCRIPTION_CANCELLATION

Triggered when a recurring subscription is canceled (by the buyer or the producer).

Other available events

Key payload fields

Common automations with Hotmart

Welcome message via WhatsApp

On receiving PURCHASE_COMPLETE, send an automatic message via the Timely agent using the buyer’s phone.

Revoke access

On receiving SUBSCRIPTION_CANCELLATION, remove the contact from groups or mark them as inactive in Timely’s CRM.

Bank slip recovery

On receiving PURCHASE_EXPIRED, start a recovery flow with a message and a new payment link.

CRM update

Sync buyer data as a contact in Timely using the Contacts API.

Next steps

Contacts — API Reference

Create and update contacts programmatically when receiving Hotmart events.

Webhooks — API Reference

Configure endpoints to receive events from your Timely workspace.