Render a conversation flow
curl --request POST \
--url https://api.pineyard.ai/agents/studio/flow/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flowGraph": {
"nodes": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>"
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"condition": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flowGraph: {
nodes: [{id: '<string>', title: '<string>', detail: '<string>'}],
edges: [
{id: '<string>', source: '<string>', target: '<string>', condition: '<string>'}
]
}
})
};
fetch('https://api.pineyard.ai/agents/studio/flow/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/studio/flow/render"
payload = { "flowGraph": {
"nodes": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>"
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"condition": "<string>"
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"text": "<string>"
}Agent studio
Render a conversation flow
Serialize a flow-canvas graph into routed CONVERSATION FLOW prompt text (deterministic)
POST
/
agents
/
studio
/
flow
/
render
Render a conversation flow
curl --request POST \
--url https://api.pineyard.ai/agents/studio/flow/render \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flowGraph": {
"nodes": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>"
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"condition": "<string>"
}
]
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flowGraph: {
nodes: [{id: '<string>', title: '<string>', detail: '<string>'}],
edges: [
{id: '<string>', source: '<string>', target: '<string>', condition: '<string>'}
]
}
})
};
fetch('https://api.pineyard.ai/agents/studio/flow/render', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pineyard.ai/agents/studio/flow/render"
payload = { "flowGraph": {
"nodes": [
{
"id": "<string>",
"title": "<string>",
"detail": "<string>"
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"condition": "<string>"
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"text": "<string>"
}Required scope:
agents.edit
