AI
List published Playbook Versions
GET
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
versions
List published Playbook Versions
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/versionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/versions', 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}/versions"
response = requests.get(url)
print(response.text){
"items": [
{
"agent_id": "<string>",
"authoring_source": {
"document": {
"type": "<string>",
"json": "<unknown>",
"text": "<string>"
},
"execution_mode": "<string>",
"outcome": {
"goal": "<string>",
"terminal_outcomes": [
"<string>"
]
},
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"trigger": {
"conditions": [
{}
],
"examples": [
"<string>"
]
},
"guardrails": [
"<unknown>"
],
"legacy": {},
"success_checks": [
"<unknown>"
]
},
"compiled_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": [
{}
]
},
"compiler_version": "<string>",
"organization_id": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"published_at": "<string>",
"resource_manifest": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"source_hash": "<string>",
"validation_report": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"eval_policy": "<unknown>",
"notes": "<string>",
"published_by": "<string>",
"version_number": 123
}
]
}{
"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
List published Playbook Versions
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/versionsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/versions', 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}/versions"
response = requests.get(url)
print(response.text){
"items": [
{
"agent_id": "<string>",
"authoring_source": {
"document": {
"type": "<string>",
"json": "<unknown>",
"text": "<string>"
},
"execution_mode": "<string>",
"outcome": {
"goal": "<string>",
"terminal_outcomes": [
"<string>"
]
},
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"trigger": {
"conditions": [
{}
],
"examples": [
"<string>"
]
},
"guardrails": [
"<unknown>"
],
"legacy": {},
"success_checks": [
"<unknown>"
]
},
"compiled_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": [
{}
]
},
"compiler_version": "<string>",
"organization_id": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"published_at": "<string>",
"resource_manifest": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"source_hash": "<string>",
"validation_report": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"eval_policy": "<unknown>",
"notes": "<string>",
"published_by": "<string>",
"version_number": 123
}
]
}{
"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>"
}
}