Generic HTTP
Call any HTTP API with shared auth and paging
Call any REST API with absolute URLs, auth set once in the configuration, and automatic paging.
generic-http_3.1.1.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Configuration · 10 fields
- Server URL
server_urltextBase URL prepended to relative request paths. Leave blank if every action will use absolute URLs.
- Port
portintegerOptional port appended to the Server URL when the URL does not already specify one.
- Authentication Type
auth_typeselect requiredDefault authentication method. Per-action override is supported.
Options NoneBasicBearer TokenAPI Key HeaderAPI Key Query ParamOAuth2 Client CredentialsToken LoginWhen Authentication Type is Basic
- Username
basic_usernametext required - Password
basic_passwordpassword required
When Authentication Type is Bearer Token
- Bearer Token
bearer_tokenpassword requiredSent as 'Authorization: Bearer <token>'.
When Authentication Type is API Key Header
- Header Name
api_key_header_nametext required - API Key
api_keypassword required
When Authentication Type is API Key Query Param
- Query Param Name
api_key_param_nametext required - API Key
api_keypassword required
When Authentication Type is OAuth2 Client Credentials
- Token URL
oauth_token_urltext required - Client ID
oauth_client_idtext required - Client Secret
oauth_client_secretpassword required - Scope (Optional)
oauth_scopetext
When Authentication Type is Token Login
- Login URL
login_urltext requiredEndpoint to POST credentials to. Relative paths join the Server URL.
- Login Body Type
login_body_typeselectjson: send username/password as a JSON body. header_only: send no body, so credentials go in Login Request Headers only (e.g. Yeti x-yeti-apikey).
Default
jsonOptions jsonheader_only - Login Request Headers
login_request_headerspasswordJSON object of headers to send on the login request. Required for header_only body type. Also accepted for json mode (merged with the credential body).
- Username
login_usernametextRequired for json body type. Leave blank when using header_only.
- Password
login_passwordpasswordRequired for json body type. Leave blank when using header_only.
- Username Field
login_username_fieldtextJSON body key for the username. Default 'username'.
Default
username - Password Field
login_password_fieldtext - Token Response Path
login_token_pathtextDot-path inside the JSON login response. Leave blank if the response body is the bare token string (e.g. filebrowser).
- Auth Header Name
login_header_nametextHeader to send the token on. e.g. 'X-Auth' (filebrowser), 'Authorization' (with Bearer prefix).
- Auth Header Prefix
login_header_prefixtextOptional prefix prepended to the token. e.g. 'Bearer ' (note trailing space).
- Default Custom Headers
default_headersjsonNon-sensitive headers attached to every request. Values are stored in plaintext.
- Request Timeout (seconds)
timeoutintegerDefault
60 - Max Retries
max_retriesintegerNumber of automatic retries on transient failures. 0 disables retry.
Default
0 - Retry Backoff Factor
backoff_factortexturllib3 backoff factor. Sleep between retries = factor * (2^(retry-1)).
Default
0.5 - Retry On Status
retry_on_statustextComma-separated HTTP status codes to retry.
Default
429,500,502,503,504 - Return On HTTP Error
return_on_errorcheckboxWhen true, non-2xx responses are returned to the playbook (status_code + body) instead of raising.
Default
true - Verify SSL
verify_sslcheckboxDefault
true
Operations · 12
HTTP Request (Any Method) 10 params
http_requesthttp_requestPerform an HTTP request with a user-selected method. Most flexible action.
- Method
methodselect requiredHTTP verb to use for this request.
Default
GETOptions GETPOSTPUTPATCHDELETEHEADOPTIONS - URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
noneOptions nonejsonformrawmultipart - Body
datajsonBody payload. Shape depends on Body Type. For 'raw' a string is accepted. For 'multipart' use a dict of fields.
- Timeout (seconds, override)
timeoutintegerPer-request timeout in seconds. Overrides the connection-level timeout for this step only.
- Follow Redirects
follow_redirectscheckboxWhen enabled, HTTP 3xx redirects are followed automatically. Disable to inspect the redirect response directly.
Default
true - Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
- Raw Response (binary-safe)
raw_responsecheckboxReturn content as base64 instead of parsing. Use for binary downloads.
Default
false
Returnsstatus_codeheadersbodyHTTP GET 7 params
http_gethttp_getPerform an HTTP GET request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Timeout (seconds, override)
timeoutintegerPer-request timeout in seconds. Overrides the connection-level timeout for this step only.
- Follow Redirects
follow_redirectscheckboxWhen enabled, HTTP 3xx redirects are followed automatically. Disable to inspect the redirect response directly.
Default
true - Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
- Raw Response (binary-safe)
raw_responsecheckboxReturn raw bytes as base64 instead of parsing the body. Use for binary downloads, PDFs, or responses with non-JSON content types.
Default
false
Returnsstatus_codeheadersbodyHTTP POST 9 params
http_posthttp_postPerform an HTTP POST request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
jsonOptions nonejsonformrawmultipart - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Timeout (seconds, override)
timeoutintegerPer-request timeout in seconds. Overrides the connection-level timeout for this step only.
- Follow Redirects
follow_redirectscheckboxWhen enabled, HTTP 3xx redirects are followed automatically. Disable to inspect the redirect response directly.
Default
true - Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
- Raw Response (binary-safe)
raw_responsecheckboxReturn raw bytes as base64 instead of parsing the body. Use for binary downloads, PDFs, or responses with non-JSON content types.
Default
false
Returnsstatus_codeheadersbodyHTTP PUT 6 params
http_puthttp_putPerform an HTTP PUT request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
jsonOptions nonejsonformrawmultipart - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
Returnsstatus_codeheadersbodyHTTP PATCH 6 params
http_patchhttp_patchPerform an HTTP PATCH request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
jsonOptions nonejsonformrawmultipart - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
Returnsstatus_codeheadersbodyHTTP DELETE 6 params
http_deletehttp_deletePerform an HTTP DELETE request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
noneOptions nonejsonformraw - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
Returnsstatus_codeheadersbodyHTTP HEAD 2 params
http_headhttp_headPerform an HTTP HEAD request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
Returnsstatus_codeheadersHTTP OPTIONS 2 params
http_optionshttp_optionsPerform an HTTP OPTIONS request.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
Returnsstatus_codeheadersbodyHTTP Paginate 12 params
http_paginatehttp_paginateWalk a paginated endpoint and concatenate the results. Supports RFC 5988 Link header, next-URL-in-body, and bumped page-param modes.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Method
methodselectHTTP verb to use for this request.
Default
GETOptions GETPOST - Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
noneOptions nonejsonformraw - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Pagination Mode
pagination_modeselect requiredHow to advance through pages. link_header = follow RFC 5988 Link: <url>; rel=next header. next_url_path = next URL is at a dot-path inside the JSON body. page_param = increment a numeric query parameter.
Default
link_headerOptions link_headernext_url_pathpage_param - Items Path
items_pathtextDot/bracket path to the list of records inside each page's response body. e.g. 'data.results'. Leave blank if the body itself is the list.
- Next URL Path (next_url_path mode)
next_url_pathtextDot/bracket path inside the response body where the next-page URL is found. Only used in next_url_path mode. e.g. 'links.next' or 'meta.nextUrl'.
- Page Param Name (page_param mode)
page_param_nametextQuery parameter name to increment for each page. Only used in page_param mode. e.g. 'page' or 'offset'.
Default
page - Start Page
start_pageintegerStarting page number for page_param mode.
Default
1 - Max Pages
max_pagesintegerMaximum number of pages to fetch before stopping, regardless of whether more pages exist. Guards against runaway pagination.
Default
50
Returnsitemspages_fetchedtruncatedFetch Records (Ingestion) 11 params
fetch_recordsfetch_recordsCalls a configured endpoint, optionally paginates, plucks records via response_path, and returns them as a flat list. Used by scheduled data ingestion and available on-demand.
- Fetch URL
fetch_urltext requiredAbsolute URL or path to call for each scheduled ingestion run. Overrides the connection-level Fetch URL if set.
- Method
methodselectHTTP verb to use for this request.
Default
GETOptions GETPOST - Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
noneOptions nonejsonformraw - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
- Pagination Mode
pagination_modeselectHow to advance through pages. link_header = follow RFC 5988 Link: <url>; rel=next header. next_url_path = next URL is at a dot-path inside the JSON body. page_param = increment a numeric query parameter.
Default
noneOptions nonelink_headernext_url_pathpage_param - Next URL Path (next_url_path mode)
next_url_pathtextDot/bracket path inside the response body where the next-page URL is found. Only used in next_url_path mode. e.g. 'links.next' or 'meta.nextUrl'.
- Page Param Name (page_param mode)
page_param_nametextQuery parameter name to increment for each page. Only used in page_param mode. e.g. 'page' or 'offset'.
Default
page - Max Pages
max_pagesintegerMaximum number of pages to fetch before stopping, regardless of whether more pages exist. Guards against runaway pagination.
Default
50
ReturnsrecordscountUpload File 16 params
upload_fileupload_fileStream-upload a file to an arbitrary HTTP endpoint. Accepts a FortiSOAR attachment @id, file IRI, or attachment record. Supports multipart and raw-body modes; never buffers the file through the playbook engine.
- URL or Path
rest_apitext requiredDestination. {filename} placeholder is substituted with the source file's name (URL-encoded).
- Method
methodselectHTTP verb to use for this request.
Default
POSTOptions POSTPUT - Attachment @id / IRI
attachment_idtextPass the attachment's @id, file IRI, or an attachment record object.
- File IRI (alternative)
file_iritextFortiSOAR File IRI (e.g. /api/3/files/<uuid>). Alternative to Attachment @id. Use when you already have a direct file reference.
- Local File Path (advanced)
file_pathtextOptional. Absolute path on the integration agent; bypasses attachment lookup.
- Filename Override
filenametext - Upload Mode
upload_modeselectmultipart = standard form-file upload. raw_body = file bytes are the request body (filebrowser, S3 PUT, etc.).
Default
multipartOptions multipartraw_body - Multipart Field Name
field_nametextMultipart form field name for the file part. Default is 'file'. Only applies in multipart mode.
Default
file - Extra Multipart Fields
extra_fieldsjsonAdditional form fields to send alongside the file (multipart mode only).
- Content Type
content_typetextMIME type sent as the file's Content-Type. e.g. 'text/csv', 'application/pdf'. Defaults to application/octet-stream.
Default
application/octet-stream - Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Timeout (seconds, override)
timeoutintegerPer-request timeout in seconds. Overrides the connection-level timeout for this step only.
Default
300 - Follow Redirects
follow_redirectscheckboxWhen enabled, HTTP 3xx redirects are followed automatically. Disable to inspect the redirect response directly.
Default
true - Response Path
response_pathtextDot/bracket path to pluck from the JSON response body before returning. e.g. 'data.results' or 'items[0].id'. Leave blank to return the full body.
- Raw Response (binary-safe)
raw_responsecheckboxReturn raw bytes as base64 instead of parsing the body. Use for binary downloads, PDFs, or responses with non-JSON content types.
Default
false
Returnsstatus_codeheadersbodyuploadedDownload File 13 params
download_filedownload_fileDownload a remote URL and save the response body as a FortiSOAR attachment (or to disk on the integration agent). Streams bytes, so large files never go through the playbook engine. The reverse of Upload File.
- URL or Path
rest_apitext requiredAbsolute URL or path relative to the configured Server URL. e.g. /api/v1/things or https://other.example.com/endpoint
- Method
methodselectGET for normal downloads. POST only if the endpoint requires a request body to produce the file.
Default
GETOptions GETPOST - Create FortiSOAR Attachment
create_attachmentcheckboxWhen true (default), creates an Attachment record visible in File Management. When false, leaves the file on the integration agent and returns its path.
Default
true - Attachment Name
attachment_nametextDisplay name for the Attachment record. Defaults to the resolved filename.
- Description
descriptiontextDescription stored on the Attachment record in FortiSOAR.
- Filename Override
filenametextForce a specific filename. Otherwise the connector uses Content-Disposition, then the URL basename, then 'download.bin'.
- Max Size (MB)
max_size_mbintegerSafety cap: abort the download and clean up the staged file if the response body exceeds this many megabytes. 0 (default) means unlimited.
Default
0 - Query Parameters
parameterjsonKey/value pairs appended to the URL as query string. Accepts {"key":"value"} or [{"key":"k","value":"v"}] format.
- Headers
headerjsonAdditional HTTP headers for this request. Merged with Default Custom Headers from the connection config; per-call values win on conflict.
- Body Type
body_typeselectHow to encode the request body. json = JSON-encoded object. form = URL-encoded form fields. raw = send the string as-is. multipart = multipart/form-data (file upload). none = no body.
Default
noneOptions nonejsonformraw - Body
datajsonRequest body payload. Shape depends on Body Type. For json/form pass a dict; for raw pass a string; for multipart pass a dict of field names to values.
- Timeout (seconds, override)
timeoutintegerPer-request timeout in seconds. Overrides the connection-level timeout for this step only.
Default
300 - Follow Redirects
follow_redirectscheckboxWhen enabled, HTTP 3xx redirects are followed automatically. Disable to inspect the redirect response directly.
Default
true
Returnsstatus_codeheadersdownloaded