AI
Derived read-only graph from validated Draft Plan
GET
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
plan-graph
Derived read-only graph from validated Draft Plan
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graphconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graph"
response = requests.get(url)
print(response.text){
"graph": {
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"label": "<string>"
}
],
"nodes": [
{
"id": "<string>",
"kind": "<string>",
"label": "<string>",
"data": {},
"source_node_id": "<string>"
}
]
},
"identity": {
"compiler_version": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"source_hash": "<string>",
"deployment_id": "<string>",
"plan_step_id": "<string>",
"playbook_release_id": "<string>",
"playbook_version_id": "<string>",
"source_node_id": "<string>"
},
"plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Derived read-only graph from validated Draft Plan
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graphconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graph', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/plan-graph"
response = requests.get(url)
print(response.text){
"graph": {
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"label": "<string>"
}
],
"nodes": [
{
"id": "<string>",
"kind": "<string>",
"label": "<string>",
"data": {},
"source_node_id": "<string>"
}
]
},
"identity": {
"compiler_version": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"source_hash": "<string>",
"deployment_id": "<string>",
"plan_step_id": "<string>",
"playbook_release_id": "<string>",
"playbook_version_id": "<string>",
"source_node_id": "<string>"
},
"plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}