HTTP Node (type = "http")
Calls external HTTP services.
Schema
- See: HttpNode.json
- Key fields:
data.api.method: HTTP method (GET/POST/PUT/DELETE, etc.)data.api.url: URL template (supports template variables like{{start_0.path}})data.body: request body (JSON / TEXT / FORM, etc.)data.headersValues/data.paramsValues: supportref/constant/expressiondata.outputs: oftenbody/headers/statusCode
Example
Use Start’s query as HTTP parameter:
{
"nodes": [
{
"id": "start_0",
"type": "start",
"data": { "outputs": { "type": "object", "properties": { "query": { "type": "string" } } } }
},
{
"id": "http_0",
"type": "http",
"data": {
"title": "HTTP",
"api": {
"method": "GET",
"url": { "type": "constant", "content": "https://example.com/search" }
},
"paramsValues": {
"q": { "type": "ref", "content": ["start_0", "query"] }
}
}
}
],
"edges": [{ "sourceNodeID": "start_0", "targetNodeID": "http_0" }]
}