> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/api/api-hotmart-sending-abandoned-cart-event-to-sprinthub-via-make.md).

# API - HOTMART: Sending abandoned cart event to SprintHub via Make

You have **Abandoned Carts** in the **Hotmart** and would like to automate sales processes to recover this abandoned cart. One of the strategies you can use is to create an Opportunity within a CRM funnel in SprintHub, and create automations to send WhatsApp/Email/Communication to this Lead to try to recover this cart, that is, make the Lead come back and complete the purchase.

Make.com will be the BRIDGE between the **Hotmart** and the **SprintHub**.

The steps are:

#### Step 1: Generate your API Token within SprintHub

Go to Settings > System > Documentation and API Keys

At the bottom of the screen, click **Request new key.**

#### Step 2: Go to Make.com and create a new "Scenario" with a webhook trigger

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FAU7x369C9zTq3ZZMmacS%2FCaptura%20de%20Tela%202023-11-13%20a%CC%80s%2016.16.16.png?alt=media&amp;token=ac05eef3-4d25-42e2-b12f-a0763f87c4b9" alt="" width="563"><figcaption></figcaption></figure>

#### Step 3: Register a new webhook in Hotmart

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FDFjSqqoenblrD3AEsEkr%2Fpasted%20image%200.gif?alt=media&amp;token=0e81b277-b175-4553-b821-d41f20af5e3b" alt=""><figcaption></figcaption></figure>

After following the steps above, just watch the following video. In summary, you will send a POST inside the **Hotmart** to the URL generated by the **Make.com**.

Make.com will take the result of this POST and make a new POST in the HTTP module that will be sent to the **SprintHub**. To do this, just follow [**THIS TUTORIAL**](https://docs.sprinthub.com/en/topics/api/api-creating-a-lead-and-opportunity-at-the-same-time.md). Read [**THIS TUTORIAL**](https://docs.sprinthub.com/en/topics/api/api-creating-a-lead-and-opportunity-at-the-same-time.md) before completing the tutorial in the following video.

{% embed url="<https://www.youtube.com/watch?v=drzRbYxk_9o>" %}
