# API - HOTMART: Enviando evento de Carrinho abandonado para SprintHub via Make

Você está com **Carrinhos Abandonados** no **Hotmart** e gostaria de automatizar processos de vendas para Recuperar este carrinho abandonado. Uma das estratégias que você pode fazer é criar uma Oportunidade dentro de um funil do CRM no SprintHub, e criar automações para enviar WhatsApp/Email/Comunicação para este Lead para tentar recuperar este carrinho, ou seja, fazer o Lead voltar e finalizar a compra.

O Make.com fará a PONTE entre o **Hotmart** e o **SprintHub**.

Os passos são:

#### Passo 1: Gerar seu API Token dentro do SprintHub

Entre em Configurações > Sistema > Documentação e Chaves API

No final da Tela, clique em **Solicitar nova chave.**

#### Passo 2: Entre no Make.com e gere um novo "Scenario" com um trigger de webhook

<figure><img src="https://3534414179-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&#x26;token=ac05eef3-4d25-42e2-b12f-a0763f87c4b9" alt="" width="563"><figcaption></figcaption></figure>

#### Passo 3: Cadastre um novo webhook no Hotmart

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

Após seguir os passos acima, basta assistir ao vídeo a seguir. Em resumo, você irá enviar um POST por dentro do **Hotmart** para a URL gerada pelo **Make.com**.

O Make.com irá pegar o resultado deste POST e fazer um novo POST no módulo HTTP que será enviado para o **SprintHub**. Para fazer isso, basta seguir [**ESTE TUTORIAL**](https://docs.sprinthub.com/topicos/api/api-criando-lead-e-oportunidade-ao-mesmo-tempo). Leia [**ESTE TUTORIAL**](https://docs.sprinthub.com/topicos/api/api-criando-lead-e-oportunidade-ao-mesmo-tempo) antes de completar o tutorial do vídeo a seguir.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/topicos/api/api-hotmart-enviando-evento-de-carrinho-abandonado-para-sprinthub-via-make.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
