> For the complete documentation index, see [llms.txt](https://www.docpartner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.docpartner.dev/api/voice-partner/gestion-des-webhooks.md).

# Webhooks

Recevoir les statuts de vos campagnes vocales

{% hint style="info" %}

#### À noter

Pour recevoir les statuts, vous devez paramétrer votre URL de retour (**notifyUrl**) dans la requête API
{% endhint %}

## Récupération des statuts des dépôts répondeurs

Après l’envoi d’une campagne VoicePartner vous permet de recevoir les statuts de vos campagnes.\
Pour en savoir plus, [**contactez nous**](https://www.smspartner.fr/contact).

**Exemple de statut envoyé en GET**

```
notifyUrl?campaign_token=oiTCpIVk2jvIY3xcfg&campaign_id=NDA_20230111_00811&delivered_quantity=1&total_quantity=1
```

## Récupération des statuts des SMS vocaux

**Exemple de réponse JSON envoyé en POST**

<pre class="language-json"><code class="lang-json"><strong>{
</strong>  "campaignId": "XHa7GXvhy6zkhQEf4HtHG",
  "status": "delivered",
  "additionnal_status": "VOICE_ANSWERED",
  "phoneNumber": "006.........",
  "sendAt": "2026-01-13 11:35:00",
  "doneAt": "2026-01-13 11:35:12",
  "duration": 6,
  //Si un fichier audio a été ajouté à la requête
  "audioFileComplementaire": {
    "status": "Deposit"
  }
}

</code></pre>

**status**

`pending`**`:`**` `` ``En attente du statut `

`delivered: l'appel a été transmit`

`undelivered: L'appel n'a pas été transmit`

**additionnal\_status**

`VOICE_ANSWERED: L'appel a été décroché`

`VOICE_NOT_ANSWERED: Appel non décroché`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.docpartner.dev/api/voice-partner/gestion-des-webhooks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
