HTTP Request

Send an RESTful HTTP request, i.e., GET, PUT, POST, PATCH, DELETE

by @pixiebrix

How to Use

This a generic HTTP request execution brick. Use this brick and put that address in the ‘url’ field, and set the request type.

You can either have parameters in the url or generate them automatically using the ‘params’ field.

Similarly the headers field is used for the headers you want attached, and the data field can be used for whatever data you want sent (building an object here will convert it to json when sent).

If there is an applicable service on Pixiebrix for the resource you’re making a request to, you can enter that in the service field to have the request also use headers etc from that service.

Additional resources

https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

https://www.w3schools.com/tags/ref_httpmethods.asp


Inputs

Name Required Type Description
url string The API endpoint URL
data unknown Supports a JSON payload provided by either a variable or an object
method string The HTTP method
params object Search/query params
headers object Additional request headers
service integration Optional. The integration configuration to authenticate the request, if authorization is required

Outputs

Name Required Type Description
No outputs for this brick defined.

Related Tags