HTTP Request

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


Demos & Screenshots

No screenshots provided yet. Have some video demos or screenshots of this brick in the wild?
Send them over to [email protected]!


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.

Examples

...

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 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 service to authenticate the request, if authorization is required

Outputs

Name Required Type Description
No outputs for this brick defined.

Details

ID @pixiebrix/http
Author @pixiebrix
Version 1.7.0
Created Aug. 17, 2021
Updated June 13, 2022