BotFrame

Data · Workflow node

HTTP Request

The HTTP Request node as it appears in the workflow editor.

What it does

Call an HTTPS API, optionally using a saved credential.

Typical use

Fetch a weather forecast or service status, then pass the response body to a JSON parser.

How to use it

  1. Add HTTP Request from DataSet the HTTPS URL, method and optional JSON request body.
  2. Choose an optional credentialAdd a key through the Variables / Credentials switch, then select it here. Never paste secret keys into ordinary variables, URLs or workflow content.
  3. Handle the responseConnect Flow and Response body to a JSON parser. Use HTTP status with a condition to handle non-success responses.
  4. Test without calling the APIExpand Simulator response and enter representative bodies and statuses. Simulation does not verify that the external API or key actually works.

Settings

These are the options shown when you add this node. A connected value can replace a setting when the workflow runs.

API credentials

  1. In the node library, switch from Variables to Credentials.
  2. Select New credential, name it, enter the API origin (for example https://api.example.com), and paste the key.
  3. Save it, then choose it in the HTTP Request inspector. Use Bearer for Authorization headers, or API key only for headers such as X-API-Key.

Saved keys cannot be viewed again and work only with the API origin you chose. To replace a key, add a new credential, select it in the affected nodes, deploy, then remove the old credential.

Request limits

Use a public HTTPS URL on port 443. Redirects are not followed. Requests time out after 15 seconds. Request and response bodies can each be up to 64 KiB.

Account allowances

Account limitFreePlusPro
HTTP requests / month1,00020,000100,000
Concurrent HTTP requests1310

Allowances are shared across your account and reset at the start of each UTC calendar month. Requests count even if the API returns an error or times out. Waiting requests and simulator tests do not use the allowance.

SettingStarting valueWhat it controls
Authentication headerAuthorizationAuthentication header name, usually Authorization or X-API-Key.
Key formatBearerBearer prefixes the key with Bearer and a space; raw sends only the key.
Request bodyEmptyOptional UTF-8 request body, sent with application/json content type; up to 64 KiB.
CredentialEmptyChoose a saved API key from this workspace, or leave empty if the API does not require one.
MethodGETGET, POST, PUT, PATCH, DELETE or HEAD.
Simulator response body{}Response body to use when testing this node in the simulator.
Simulator HTTP status200Mock HTTP status used only by the simulator.
URLhttps://example.com/apiPublic HTTPS endpoint on port 443. Can also come from a connected text value.

Value connections

Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.

Inputs

URLText
Required
Request bodyText
Optional

Outputs

Response bodyText
Optional
HTTP statusNumber
Optional

What happens when it runs

The workflow waits for the response before continuing. Response body is text; HTTP status is a number. Use a condition to handle error statuses such as 404 or 500. Connection failures and timeouts stop the run without automatically retrying. The simulator uses your mock response instead of contacting the API.

You can use this item in a published BotFrame workflow. You can also test it in the simulator.

These details match the node currently available in the BotFrame workflow editor.