Skip to main content

REST Client

The REST Client activity sends HTTP requests to external REST APIs and returns the response.

Configuring the REST Client Activity

To configure the REST Client activity, fill in the required fields in the activity panel.

Configuration

FieldRequiredDescriptionExample
NameOptionalName of the step, should be unique within this workflow.MyActivity
DescriptionOptionalDescribe the purpose or function of this step.Reads a file from S3
SchemeOptionalScheme to use for request (mapping supported) Options: HTTP, HTTPS.
URIOptionalURI of the resource, optionally containing {} for path parameters and & to separate query parameters (mapping supported).
HostOptionalDomain name or IP address of the target server (mapping supported).sftp.example.com
PortOptionalPort number to connect to on the server (mapping supported).22
MethodOptionalHTTP method to use for the request (mapping supported) Options: GET, POST, PUT, PATCH, DELETE.GET
Select Auth ContextOptionalAuthorization context used to authenticate the request.

Advanced

FieldRequiredDescriptionExample
Enable CachingOptionalIf checked response will be cached
Cache TTLOptionalTime to Live (in minutes) for cached response, after which it will be evicted
TimeoutOptionalMaximum time (in milliseconds) to wait for a response from the server. If the server does not respond within this time, the request will be terminated and marked as a timeout error. Increase this value only for slower services or large payloads.Timeout value for this call
Send to EngageOptionalIndicates if the result should be forwarded to Engage.
Select Engage ContextOptionalEngage context for reporting this event.
Select Engage EventOptionalSelect Event data to map for sending to engage
Enable RetryOptionalRetry after Failure.
Retry Policy ResourceOptionalDrag and drop a Retry Policy resource from the workspace.

Input

FieldRequiredData TypeDescriptionExample
MethodOptionalStringHTTP method to use for the request (e.g., GET, POST, PUT).GET
SchemeOptionalStringProtocol scheme to use for the request.
HostOptionalStringHostname or IP address of the target service.sftp.example.com
PortOptionalIntegerPort number to connect to on the server22
UriOptionalStringURI of the resource, optionally containing {} for path parameters and & to separate query parameters.
TimeoutOptionalIntegerMaximum time (in milliseconds) to wait for a response from the server. If the server does not respond within this time, the request will be terminated and marked as a timeout error. Increase this value only for slower services or large payloads.15000
HeadersOptionalObjectStandard HTTP headers to include in the request.{"Content-Type": "application/json"}
Additional HeadersOptionalArrayList of additional headers to include in the request.
Query ParamsOptionalObjectQuery parameters to be appended to the request URL.
Path ParamsOptionalObjectPath parameters used to dynamically populate URI segments.
BodyOptionalObjectPayload body for requests that support it (e.g., POST, PUT).

Output

FieldRequiredData TypeDescriptionExample
StatusOptionalObjectHTTP response status details.
HeadersOptionalObjectHTTP response headers.{"Content-Type": "application/json"}
Additional HeadersOptionalArrayList of custom response headers returned by the server.
BodyOptionalObjectParsed body of the HTTP response. Can be any valid JSON value.