> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-update-domain-refs.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-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=d7e89bfe71b63b914c59e5ae76ef2800" 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-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=280&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=0dcdb199f9ff9af36e02662bbe7fa154 280w, https://mintcdn.com/docs-staging-fix-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=560&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=e976811b371f1114bc110ef6b114af57 560w, https://mintcdn.com/docs-staging-fix-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=840&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=079ea0f8e6ba32c9f8e45aea2b4764fa 840w, https://mintcdn.com/docs-staging-fix-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1100&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=70ce16373ac497df280afc1ed1b3a833 1100w, https://mintcdn.com/docs-staging-fix-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=1650&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=f19136cadd1b0e1bcb2c3abf10073084 1650w, https://mintcdn.com/docs-staging-fix-update-domain-refs/jKsSJKzkAcWazi_7/docs/images/ja-jp/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png?w=2500&fit=max&auto=format&n=jKsSJKzkAcWazi_7&q=85&s=76c15a0fa35b1a00175eefae4994f89a 2500w" />
</Frame>

## HTTP要求

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

<Frame>
  <img src="https://mintcdn.com/docs-staging-fix-update-domain-refs/VV6evNlM1WIi6cSu/docs/images/ja-jp/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png?fit=max&auto=format&n=VV6evNlM1WIi6cSu&q=85&s=8457a2078633022e37d1360ea810a74d" 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
}
```
