Skip to content

HTTP

The HTTP collector provides a base configuration for making HTTP requests to REST APIs.

  • base_url - Optional Template (string)

    BaseURL is the base URL for the HTTP collector, such as "https://api.example.com".

  • headers - Optional Template (map[string]string)

    Headers to include in all requests.

  • auth - Optional A HTTPAuth block as defined below.
  • timeout - Optional (int)

    Timeout is the request timeout in seconds.

  • insecure - Optional (bool)

    Insecure skips TLS certificate verification.

HTTPAuth

HTTPBasicAuth

  • username - Optional Template (string)
  • password - Optional Template (string)
  • encoded - Optional Template (string)

    Encoded is a pre-encoded Base64-encoded credentials.

collectors:
- id: api
http:
base_url: https://api.example.com
headers:
Accept: application/json
auth:
basic:
username: admin
password: secret
timeout: 30

Use the HTTP GET step to make requests via the HTTP collector. It is especially useful for external or internal services exposing a REST API.

  • path - Optional (string)

    Path is the request path.

  • headers - Optional Template (map[string]string)

    Headers to include in the request.

  • params - Optional Template (map[string]string)

    Query parameters to append to the request URL.

  • response_type - Optional (string)

    ResponseType is the format to parse the response as.

    Must be one of: json , raw .
steps:
- id: get-users
collector: api
http_get:
path: /users
params:
page: "1"
limit: "10"
response_type: json