> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-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-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=b48b29adbc8d5f53990069e9ef2c610a" 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-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=5f3e53e2c0847d1050bdcc730f353232 280w, https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=0a2bbdc27709abfceb71ee708073bf78 560w, https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=26d3ba27252ae004cfb5caae60a37507 840w, https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=ad182224afb3daa2312dfa91e7f25225 1100w, https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=1996c2e040b1dc2d447e59b27e4a9097 1650w, https://mintcdn.com/docs-dev-fix-docs-5546-update-db-search/MOuFgAV4P_A6Y1a0/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=MOuFgAV4P_A6Y1a0&q=85&s=536dd059f4c52e6b22289f3ca01e0d45 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-fix-docs-5546-update-db-search/-PxS5kpxsRrbIutG/docs/images/fr-ca/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=-PxS5kpxsRrbIutG&q=85&s=8e7fc49d22399022d7354cf04060ae91" 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
}
```
