Invoke workflow
curl --request POST \
--url https://api.pipedream.com/v1/workflows/{workflow_id}/invoke \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipedream.com/v1/workflows/{workflow_id}/invoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pipedream.com/v1/workflows/{workflow_id}/invoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://api.pipedream.com/v1/workflows/{workflow_id}/invoke")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pipedream.com/v1/workflows/{workflow_id}/invoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Invoke workflow
POST
/
workflows
/
{workflow_id}
/
invoke
Invoke workflow
curl --request POST \
--url https://api.pipedream.com/v1/workflows/{workflow_id}/invoke \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.pipedream.com/v1/workflows/{workflow_id}/invoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pipedream.com/v1/workflows/{workflow_id}/invoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.post("https://api.pipedream.com/v1/workflows/{workflow_id}/invoke")
.header("Authorization", "Bearer <token>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pipedream.com/v1/workflows/{workflow_id}/invoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}You can invoke workflows by making an HTTP request to a workflow’s HTTP trigger. See the docs on authorizing requests and invoking workflows for more detail.
Was this page helpful?
⌘I