core.http_request
Perform a HTTP request to a given URL.
Secrets
Optional secrets:mtls: required valuesTLS_CERTIFICATE,TLS_PRIVATE_KEY.ca_cert: required valuesCA_CERTIFICATE.
Inputs
HTTP request methodAllowed values:
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.The destination of the HTTP request
Basic auth credentials with
username and password keysDefault: null.Base64 encode the raw response body before returning. Use this for binary downloads to prevent corruption from text decoding.Default:
false.Files to upload using multipart/form-data. The dictionary key is the form field name. The value can be a simple base64 encoded string (filename defaults to form field name), or a dictionary with ‘filename’, ‘content_base64’, and optional ‘content_type’.Default:
null.Follow HTTP redirectsDefault:
false.Form encoded data in request body (POST, PUT, and PATCH)Default:
null.HTTP request headersDefault:
null.If specified, these status codes will not be treated as errors. Defaults to None.Default:
null.Maximum number of redirectsDefault:
20.URL query parametersDefault:
null.JSON serializable data in request body (POST, PUT, and PATCH)Default:
null.Timeout in secondsDefault:
10.0.Verify SSL certificates. Defaults to True, disable at own risk.Default:
true.Examples
Basic requestcore.http_poll
Perform a HTTP request to a given URL with optional polling.
Secrets
Optional secrets:mtls: required valuesTLS_CERTIFICATE,TLS_PRIVATE_KEY.ca_cert: required valuesCA_CERTIFICATE.
Inputs
HTTP request methodAllowed values:
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.The destination of the HTTP request
Basic auth credentials with
username and password keysDefault: null.Follow HTTP redirectsDefault:
false.Form encoded data in request body (POST, PUT, and PATCH)Default:
null.HTTP request headersDefault:
null.Maximum number of redirectsDefault:
20.URL query parametersDefault:
null.JSON serializable data in request body (POST, PUT, and PATCH)Default:
null.Python lambda function when evaluated to True, stops polling. The function receives a dict with
headers, data, and status_code fields.Default: null.Interval in seconds between polling attempts. If not specified, defaults to polling with exponential wait.Default:
null.Maximum number of polling attempts. If set to 0, the action will poll indefinitely (until timeout).Default:
10.Status codes on which the action will retry. Ignored if
poll_condition is provided. If neither are specified, an error will be raised.Default: null.Timeout in secondsDefault:
10.0.Verify SSL certificates. Defaults to True, disable at own risk.Default:
true.Examples
Poll until completecore.http_paginate
Paginate through a HTTP response.
Inputs
HTTP request methodAllowed values:
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.Python lambda function that returns the next request as a JSON of
url, method, headers, params, payload, form_data to paginate to. The function receives a dict with headers, data, and status_code fields.Python lambda function that determines when pagination should STOP. The function receives a dict with
headers, data, and status_code fields.The destination of the HTTP request
Basic auth credentials with
username and password keysDefault: null.Follow HTTP redirectsDefault:
false.Form encoded data in request body (POST, PUT, and PATCH)Default:
null.HTTP request headersDefault:
null.JSONPath expression that evaluates to the items to paginate through.Default:
null.Maximum number of items to paginate through. Defaults to 1000.Default:
1000.Maximum number of redirectsDefault:
20.URL query parametersDefault:
null.JSON serializable data in request body (POST, PUT, and PATCH)Default:
null.Timeout in secondsDefault:
10.0.Verify SSL certificates. Defaults to True, disable at own risk.Default:
true.