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

# Requête HTTP

> Découvrez comment configurer vos actions de flux de requêtes HTTP pour envoyer des requêtes personnalisées à des services ou à des API externes.

## Configurer la connexion à votre coffre-fort

Pour configurer une connexion au coffre-fort pour vos actions de requête HTTP, vous aurez besoin d’un **jeton du porteur** :

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=2671b6c214ad9294b906d0be084e915c" alt="Dashboard > Actions > Forms > Flows > Actions > HTTP Request " data-og-width="1404" width="1404" data-og-height="551" height="551" data-path="docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=eafcf5590c5dfea5c8f3214e4574304e 280w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=334cfc67a8497c8c2e00b8b59a94f648 560w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=92bcd1b33d342f70243e53e9bdae0632 840w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=57a86b2abe8ae5cd8a5c4e3a415e5671 1100w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=cd95a950bcba93b6b33bfe3963badf9e 1650w, https://mintcdn.com/docs-dev-docs-event-stream-action-templates/lVJB7tEBqNNqsQHu/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=lVJB7tEBqNNqsQHu&q=85&s=ff3fda987a327a49cb9e6a49d2ad2786 2500w" />
</Frame>

## Requête HTTP

L’action de requête HTTP vous permet d’appeler un service ou une API externe et de traiter la réponse.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/1giWs3MwX5Akld9c/docs/images/fr-ca/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=1giWs3MwX5Akld9c&q=85&s=bd3c83c47ed61405d5454fc97a5c0845" alt="" width="812" height="511" data-path="docs/images/fr-ca/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png" />
</Frame>

### Paramètres de saisie

| Paramètre                          | Description                                                                                                                                                                     |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Méthode                            | La méthode HTTP. Les valeurs disponibles comprennent : <ul> <li>`GET`</li> <li>`POST`</li> <li>`PUT`</li> <li>`PATCH`</li> <li>`DELETE`</li> </ul>                              |
| Type de contenu                    | L’en-tête `Content-Type`. Les valeurs disponibles comprennent : <ul> <li>`application/json`</li> <li>`application/x-www-form-urlenconded`</li> <li>`application/xml`</li> </ul> |
| Corps                              | Le corps de la demande.                                                                                                                                                         |
| En-têtes                           | En-têtes de la demande.                                                                                                                                                         |
| Paramètres d’URL                   | Les paramètres d’URL. Ces paramètres seront automatiquement encodés URL.                                                                                                        |
| Activer l’authentification de base | Permet l’authentification avec nom d’utilisateur et mot de passe.                                                                                                               |

### Objet de sortie

| Propriété | Type    | Description                                                   |
| --------- | ------- | ------------------------------------------------------------- |
| `headers` | Objet   | Les en-têtes de la réponse.                                   |
| `body`    | Objet   | Le corps de la demande.                                       |
| `status`  | Nombre  | The code d’état de la réponse.                                |
| `success` | Booléen | Renvoie `true` ou `false` basé sur le `status` de la réponse. |

### Exemple d’objet de sortie

```javascript lines theme={null}
{
  "headers": {
    ...
  },
  "status": 200,
  "body": {
    ...
  },
  "success": true
}
```
