Call an HTTP API
Turn an HTTP address into a reusable node with Link endpoint and send data to it.
On this page
Link endpoint creates a component that calls one HTTP address. The component has two outputs: Output for a successful answer and Error for an answer with an error status, such as 400.
This example calls the endpoint from Create a POST endpoint.
Create the component
- Select Add (plus) in the toolbar, then Link endpoint.
- Set Name to
Orders API, Group name toMy APIs, HTTP method toPOST, Data serialization toJSONand URL address tohttp://localhost:8000/api/orders/. - Select CREATE.

The component appears in the list on the left under My APIs. You can use it as many times as you like.
| Field | What to enter |
|---|---|
| Name | The name of the component. Required. |
| Group name | The heading it appears under in the list. |
| Icon | The icon of the component. |
| HTTP method | POST, GET, PUT, PATCH or DELETE. |
| Data serialization | JSON or URL encode, for the body of the request. |
| URL address | The address to call. Required. |
| Custom headers | A header name and value. Press Enter to confirm each one. |
| Compress data via GZIP | Compresses the data you send. |
| Read me | A description, shown by Read information. |
Use it
- Drag Trigger, Orders API and two Print nodes onto the canvas.
- Connect Trigger to the input of Orders API, Output to the first Print and Error to the second Print.
- Double-click Trigger, choose Object, clear Random data, set Data to
{ product: 'Demo product', quantity: 3 }and select APPLY. - Select APPLY in the toolbar, then Continue.
- Select Run on the Trigger.
The first Print shows the answer of the API:
{"success":true,"product":"Demo product","quantity":3}
When the API answers with an error, the answer goes to the Error output. With { quantity: 1 } as Trigger data, the second Print shows:
{"error":"The product is required."}