> ## 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.

# 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-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=da39956c9f83e35a8b5e8371f9f17f7a" 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-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=5742156b05db839ddf869f85f6f1cc62 280w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=be492d209b0971b70f7cc22e95775ade 560w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=2683ddf2171020ca243c20ebad55c935 840w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=ece56f428eb02b8154f4a83720ea4bf5 1100w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=526f8f555f5effa9df4f6c05715b939a 1650w, https://mintcdn.com/docs-staging-chore-management-api-autoupdate/_ru1ObOfcXmS6vrF/docs/images/fr-ca/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=_ru1ObOfcXmS6vrF&q=85&s=2e2a10328c2e250b6706a08776676fb4 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-chore-management-api-autoupdate/8axLrtMwcJxHWeFR/docs/images/fr-ca/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=8axLrtMwcJxHWeFR&q=85&s=d7ba4e10c96ef60832bbecfcf4260538" 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
}
```
