> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-chore-management-api-autoupdate.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-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=111f58fd304bb4cef41f7d1d2622459b" 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-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=280&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=e25128d2b6de6d1d5e6800cf29ff5598 280w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=560&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=152da53723e020b62d2b84e58c96ffa3 560w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=840&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=fd9cd6b340b989beee007b7e6eb2ad51 840w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1100&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=b6bd5fa1c6c61c6dd5a2882926086501 1100w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=1650&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=722126afebc64d7d970f3b328b9ee7a7 1650w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/VcguN1hPh1g5jh20/docs/images/fr-ca/cdy7uua7fh8z/7qruolnilHd2RUvA3dGKfV/a278873b5b0564364bfdd9e15ca1d5cf/sendgrid-vault-connection.png?w=2500&fit=max&auto=format&n=VcguN1hPh1g5jh20&q=85&s=83e774d6df2dc9d64ad8df7700a1584c 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-staging-chore-management-api-autoupdate/uQSRvf_6WJ3qvjbX/docs/images/fr-ca/cdy7uua7fh8z/3pT7MZCTVhcL9ueeke0HqQ/8583aedc27af021fe6a62430c6d59adf/sendGrid.png?fit=max&auto=format&n=uQSRvf_6WJ3qvjbX&q=85&s=75b44bb9e5852de16c41894ef25bb5a1" 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).
