> ## Documentation Index
> Fetch the complete documentation index at: https://auth0-cq3uo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP Request

## Configure your Vault connection

To configure a Vault connection for your HTTP Request actions, you will need a **Bearer token:**

<Frame>![Dashboard > Actions > Forms > Flows > Actions > HTTP Request ](https://images.ctfassets.net/cdy7uua7fh8z/3X0Qbe9o1bx8q9ctxYZTO2/468b4d9b81bad93ab38b0b01dc773788/http-vault-connection.png)</Frame>

## HTTP Request

The HTTP request action lets you call an external API or service, and process the response.

<Frame>![](https://images.ctfassets.net/cdy7uua7fh8z/6eIOv07XenyaazzKixigei/2e9efd632137829a8ddb03aacd3197df/http-request-action.png)</Frame>

### Input settings

<table class="table">
  <thead>
    <tr>
      <th><b>Parameter</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Method</td>

      <td>
        The HTTP method. Available values include:

        <ul>
          <li><code>GET</code></li>
          <li><code>POST</code></li>
          <li><code>PUT</code></li>
          <li><code>PATCH</code></li>
          <li><code>DELETE</code></li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>Content type</td>

      <td>
        The <code>Content-Type</code> header. Available values include:

        <ul>
          <li><code>application/json</code></li>
          <li><code>application/x-www-form-urlenconded</code></li>
          <li><code>application/xml</code></li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>Body</td>

      <td>
        The body of the request.
      </td>
    </tr>

    <tr>
      <td>Headers</td>

      <td>
        The headers of the request.
      </td>
    </tr>

    <tr>
      <td>URL params</td>

      <td>
        The URL parameters. These parameters will be automatically URL-encoded.
      </td>
    </tr>

    <tr>
      <td>Enable Basic Auth</td>

      <td>
        Enables authentication with username and password.
      </td>
    </tr>
  </tbody>
</table>

### Output object

<table class="table">
  <thead>
    <tr>
      <th><b>Property</b></th>
      <th><b>Type</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td><code>headers</code></td>

      <td>
        Object
      </td>

      <td>
        The headers of the response.
      </td>
    </tr>

    <tr>
      <td><code>body</code></td>

      <td>
        Object
      </td>

      <td>
        The body of the response.
      </td>
    </tr>

    <tr>
      <td><code>status</code></td>

      <td>
        Number
      </td>

      <td>The status code of the response.</td>
    </tr>

    <tr>
      <td><code>success</code></td>

      <td>
        Boolean
      </td>

      <td>
        Returns <code>true</code> or <code>false</code> based on the <code>status</code> of the response.
      </td>
    </tr>
  </tbody>
</table>

### Output object example

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