> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-fix-cli-comand.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SendGrid

> Découvrez comment configurer vos actions de flux SendGrid pour envoyer des courriels.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos actions SendGrid, vous aurez besoin d’une **clé API** :

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=1c0b55f4ed7499cf422fc5875db92db3" alt="Dashboard > Actions > Forms > Flows > actions > SendGrid" data-og-width="1404" width="1404" data-og-height="545" height="545" data-path="docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=76374e306c8e747293ecc84895843d50 280w, https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=2aebc8aeed651bdd1d116b24ebf00c56 560w, https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=54705d08f6093cb0036883abe449a3fb 840w, https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=fb61ac6805407a6bef228986c436c851 1100w, https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=3a3abb5bd0f4c0dadef9269cf86c4cbc 1650w, https://mintcdn.com/docs-dev-fix-cli-comand/EKvDxML7ZjaB2hSY/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=EKvDxML7ZjaB2hSY&q=85&s=037e6d85f83524ee833e2b9b08917f3a 2500w" />
</Frame>

Celle-ci peut être trouvée sur la page Settings (Réglages) du [tableau de bord SendGrid](https://app.sendgrid.com/settings/api_keys) sous les clés API.

## Send email (Envoyer un courriel)

Envoyer un courriel en utilisant SendGrid comme fournisseur de messagerie.

<Frame>
  <img src="https://mintcdn.com/docs-dev-fix-cli-comand/-FDueKhcoqP7UTKl/docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=-FDueKhcoqP7UTKl&q=85&s=f8c20cac81b79024587d7ba865014bc1" alt="" width="1398" height="1229" data-path="docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png" />
</Frame>

### Paramètres de saisie

| Paramètre                                      | Description                                                                                                                          |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Nom de l’expéditeur                            | Le nom de l’expéditeur                                                                                                               |
| Courriel de l’expéditeur (obligatoire)         | L’adresse courriel de l’expéditeur                                                                                                   |
| Nom du destinataire                            | Le nom du destinataire                                                                                                               |
| Adresse courriel du destinataire (obligatoire) | L’adresse courriel du destinataire                                                                                                   |
| Objet (obligatoire)                            | L’objet du courriel                                                                                                                  |
| Type de courriel (obligatoire)                 | Envoyer un courriel avec contenu HTML ou un modèle enregistré (optionnel)                                                            |
| Message (obligatoire)                          | Message en format HTML ou un modèle (optionnel).                                                                                     |
| ID du modèle (facultatif)                      | Si vous utilisez un modèle, son ID peut être trouvé dans le [ tableau de bord SendGrid ](https://mc.sendgrid.com/dynamic-templates). |
| Variables personnalisées (facultatif)          | Ajoutez des variables personnalisées à insérer dans votre modèle.                                                                    |

### Paramètres de sortie

Vous trouverez les codes de réponse et d’état attendus dans la [documentation de SendGrid](https://www.twilio.com/docs/sendgrid/api-reference/mail-send/mail-send).
