> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-docs-5615-oin-update.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP要求

> 外部のAPIまたはサービスにカスタム要求を送信するHTTP要求フローのアクションを構成する方法を説明します。

## Vault接続を構成する

HTTP要求アクションにVault接続を構成するには、 **［Bearer token（ベアラートークン）］** が必要です。

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=493fc862a709f578f206d76342cb09d7" alt="Dashboard > Actions > Forms > Flows > Actions > HTTP Request " data-og-width="1404" width="1404" data-og-height="551" height="551" data-path="docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=82d7acb1a80925d85109a2326e8fc7d1 280w, https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=3f1d450594e23767fc5f08e8443ccfdd 560w, https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=d776a64d522f091a9dff6858b389f08f 840w, https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=444ef321d4584f890d29c19b8851a52a 1100w, https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=94d6a2b1b31d8f5cfa69a388c4e8b702 1650w, https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/BVXoUC9cGAat-65C/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=BVXoUC9cGAat-65C&q=85&s=708e2a44f04c1e68105d4d6cc7062297 2500w" />
</Frame>

## HTTP要求

HTTP要求アクションでは、外部のAPIまたはサービスを呼び出して、応答を処理することができます。

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-docs-5615-oin-update/36RbhDJreqKWnTes/docs/images/ja-jp/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=36RbhDJreqKWnTes&q=85&s=7409c859268f10057faad683ebdb713d" alt="" width="812" height="511" data-path="docs/images/ja-jp/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png" />
</Frame>

### 入力設定

| パラメーター                           | 説明                                                                                                                                                |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Method（メソッド）                     | HTTPメソッドです。以下の値を使用できます。 <ul> <li>`GET`</li> <li>`POST`</li> <li>`PUT`</li> <li>`PATCH`</li> <li>`DELETE`</li> </ul>                               |
| Content type（コンテンツタイプ）           | `Content-Type`ヘッダーです。以下の値を使用できます。 <ul> <li>`application/json`</li> <li>`application/x-www-form-urlenconded`</li> <li>`application/xml`</li> </ul> |
| Body（ボディー）                       | 要求本文です。                                                                                                                                           |
| Headers（ヘッダー）                    | 要求のヘッダーです。                                                                                                                                        |
| URL params（URLパラメーター）            | URLパラメーターです。これらのパラメーターは自動的にURLエンコードされます。                                                                                                          |
| Enable Basic Auth（Basic認証を有効にする） | ユーザー名とパスワードでの認証を有効にします。                                                                                                                           |

### 出力オブジェクト

| プロパティ     | タイプ    | 説明                                     |
| --------- | ------ | -------------------------------------- |
| `headers` | オブジェクト | 応答のヘッダー。                               |
| `body`    | オブジェクト | 応答の本文。                                 |
| `status`  | 数値     | 応答のステータスコード。                           |
| `success` | ブール値   | 応答の`status`に応じて、`true`または`false`を返します。 |

### 出力オブジェクトの例

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