> For the complete documentation index, see [llms.txt](https://developer.gyfti.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.gyfti.fr/retrieve-data-from-campaigns/new-email.md).

# New email

## Retrieve from webhook every email sent with the gyfti app

<mark style="color:green;">`POST`</mark> `https://app.gyfti.fr/api/1.1/wf/new_hook_email/`

By using this call, you will send gyfti app your webhook url.

For each new email, your webhook will receive data

#### Headers

| Name                                            | Type   | Description             |
| ----------------------------------------------- | ------ | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | 'Bearer \[YOUR\_TOKEN]' |

#### Request Body

| Name                                      | Type   | Description          |
| ----------------------------------------- | ------ | -------------------- |
| hookUrl<mark style="color:red;">\*</mark> | String | {YOUR\_WEBHOOK\_URL} |
| user<mark style="color:red;">\*</mark>    | String | <user@email.com>     |

{% tabs %}
{% tab title="200: OK success" %}

```json
{
  "Email Status": "Relance 1",
  "Campaign Name": "Campaign test",
  "Sender Email": "senderemail@gyfti.fr",
  "Sender First Name": "Tom",
  "Sender Last Name": "Brok",
  "Subject": "New email test  Subject",
  "Message": "New email test message",
  "Recipient Email": "recipientemail@gyfti.fr",
  "Recipient First Name": "Recipient test FirstName",
  "Recipient Last Name": "Recipient test LastName",
  "Recipient Company": "Recipient test Company",
  "Send date": "2023-01-05"
}
```

{% endtab %}
{% endtabs %}
