How to access and integrate a Flow?
Last updated
Last updated
curl --location '<Flow URL>' \ # Replace '<Flow URL>' with the actual URL of your Flow.
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 'API_KEY'' \
--data '{}const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer 'API_KEY'");
const raw = JSON.stringify({});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch('<Flow URL>', requestOptions) // Replace '<Flow URL>' with the actual URL of your Flow.
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));import requests
import json
url = '<Flow URL>' # Replace '<Flow URL>' with the actual URL of your Flow.
payload = json.dumps({})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer 'API_KEY''
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)