YAML for HTTP Request

View as Markdown

Send an HTTP request to a specified URL.

YAML parameters for HTTP Request

PARAMETERS
notification_urlrequiredstring
The target URL.
typerequiredstring

Value: HTTP

actionrequiredstring
Unique identifier for the action within the pipeline.
contentstring
The content of the request.
methodstring enum
The desired HTTP method.
Allowed enum:
GET,
POST,
PUT,
PATCH,
DELETE
headersHeaderYaml[]
The headers that will be sent with the request.
portstring
The port for the connection.
loginstring
The username required to connect to the server.
passwordstring
The password for login. Required when login is set.
pathsstring[]
The list of paths for the request.
multipart_uploadboolean
Enables multipart upload for the request.
trigger_timestring enum
Specifies when the action should be executed. ON_SUCCESS actions run after every successful run, also one ended by an EARLY_EXIT action.
Allowed enum:
ON_EVERY_EXECUTION,
ON_SUCCESS,
ON_FAILURE,
ON_BACK_TO_SUCCESS,
ON_WARNING,
ON_WAIT_FOR_APPROVE,
ON_TERMINATE
loopstring[]
Names of the variables to loop over (IMAGES, not $IMAGES and not a value). The action runs once for each item of the value, and once for each combination of items when several variables are listed. The variable value is split into items by new lines, or by commas when it has no new lines (a single-line JSON object or key=value pairs stays one item). An item that is a JSON object or key=value pairs also sets one variable per key, named <VARIABLE>_<key>; an item that starts with EXTRACT: sets them as plain <key>.
run_only_on_first_failureboolean
When true, the action runs only on the first failure instead of on each failure. Used only when trigger_time is ON_FAILURE.
disabledboolean
When set to true the action is disabled. By default it is set to false.
timeoutinteger
The timeout in seconds. It cannot exceed the action time limit of the workspace plan; a higher value is rejected.
ignore_errorsboolean
If set to true the execution will proceed, mark action as a warning and jump to the next action. Doesn't apply to deployment actions.
retry_intervalinteger
Delay time between auto retries in seconds.
retry_countinteger
Number of retries if the action fails.

Constraints: ≤ 10

run_nextstring enum
Defines whether the action should run in parallel with the next one.
Allowed enum:
WAIT_ON_SUCCESS,
IN_SOFT_PARALLEL,
IN_HARD_PARALLEL
trigger_conditionsTriggerConditionYaml[]
The list of trigger conditions to meet so that the action can be triggered.
variablesVariableYaml[]
The list of variables you can use in the action.

Outputs for HTTP Request

OUTPUT VARIABLES
BUDDY_HTTP_ACTION_RESPONSE_STATUS
HTTP status code of the response. Exported also for error responses.

Example: 200

BUDDY_HTTP_ACTION_RESPONSE_HEADERS
Headers of the response, one per line.

Example: Content-Type: application/json

BUDDY_HTTP_ACTION_RESPONSE_BODY
Body of the response, truncated to the last 100000 characters.

Example: {"status":"ok"}

Last modified on Nov 19, 2026

YAML examples for HTTP Request

HTTP POST with custom headers

yaml
- action: HTTP Request Test
  type: HTTP
  trigger_time: ON_EVERY_EXECUTION
  timeout: 300
  disabled: false
  ignore_errors: false
  retry_count: 3
  retry_interval: 5
  content: '{"key": "value", "number": 123}'
  method: POST
  login: test_user
  password: secret_password
  port: '8080'
  notification_url: https://api.example.com/webhook
  headers:
    - name: Content-Type
      value: application/json
    - name: Authorization
      value: Bearer token123
    - name: X-Custom-Header
      value: custom-value
  paths:
    - /path/to/file1.txt
    - /path/to/file2.json
    - /uploads/data.csv
  multipart_upload: true

Simple HTTP request

yaml
- action: HTTP Request
  type: HTTP
  login: tester
  password: "$HTTP_PASSWORD"
  port: '81'
  notification_url: http://buddy.works
  headers:
    - name: headerKey1
      value: headerValue1
    - name: headerKey2
      value: headerValue2
    - name: headerKey3
      value: headerValue3
  paths:
    - /maxuavtjnt
  multipart_upload: true