> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-docs-5546-update-db-search.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-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=3f2974cdb8cc6cbe80918ccd21f25537" 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-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=ae61a034e77fdb4ff8e9ba32128ce349 280w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=ce191dca2cea24e010a13bcd7d041d57 560w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=04dc16ae2f90c4ed02fd7e7e3e671818 840w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=a28bfb0833be8787106b9c9f4feab978 1100w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=431fe5c48ba208b36897fc35719b54ba 1650w, https://mintcdn.com/docs-staging-fix-docs-5546-update-db-search/QRIrBGhGww1mPlEX/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=QRIrBGhGww1mPlEX&q=85&s=12753ca797944f098828502ee3bc2bf9 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-staging-fix-docs-5546-update-db-search/jMEC5vMC53sOZ1e0/docs/images/fr-ca/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=jMEC5vMC53sOZ1e0&q=85&s=1df16cab1382d37c7f5ac0ab45379b0d" 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
}
```
