HTTP Block

The HTTP Block makes HTTP requests to external services from within Scout Workflows. It allows you to interact with APIs and services by sending requests and handling responses.

Configuration (Required)

Method
selectRequired

Select the HTTP method to use for the request. Common methods include GET, POST, PUT, PATCH, and DELETE. Choose the method that corresponds to the action you wish to perform with the HTTP request.

URL
stringRequired

The URL specifies the endpoint to which the HTTP request will be sent. Ensure the URL is correctly formatted and points to the desired resource on the external service.

Request Body
stringRequired

The Request Body is the value that’s inserted into "body" value of the payload used in the POST, PUT, and PATCH requests.

Headers (Optional)

Key
stringRequired

The Key represents the header field name. Headers are used to pass additional information with the HTTP request, such as authentication tokens or content types.

Value
stringRequired

The Value is the corresponding value for the header Key. Ensure that the header values are accurate and meet the requirements of the API you are interacting with.

Best Practices

  • Secure Connections: Always use HTTPS for secure communication with external services, ensuring data integrity and confidentiality.
  • Error Handling: Implement error handling within your workflows to manage HTTP status codes and potential request failures gracefully.
  • Optimize Requests: Minimize data payloads and optimize request structures to improve performance and reduce latency in your workflows.