AI
Validate Playbook Draft and return Plan preview
POST
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
validate
Validate Playbook Draft and return Plan preview
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/validateconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/validate', 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}/validate"
response = requests.post(url)
print(response.text){
"compiler_version": "<string>",
"draft": {
"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>"
]
},
"created_at": "<string>",
"organization_id": "<string>",
"plain_instructions": "<string>",
"playbook_id": "<string>",
"revision": 123,
"schema_version": 123,
"source_hash": "<string>",
"updated_at": "<string>",
"description": "<string>",
"last_validation": "<unknown>",
"name": "<string>",
"status": "<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": [
{}
]
},
"plan_hash": "<string>",
"references": [
{
"kind": "<string>",
"label_snapshot": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"source_node_id": "<string>"
}
],
"source_hash": "<string>",
"validation": {
"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>"
}
}{
"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>"
}
}Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Validate Playbook Draft and return Plan preview
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/validateconst options = {method: 'POST'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/validate', 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}/validate"
response = requests.post(url)
print(response.text){
"compiler_version": "<string>",
"draft": {
"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>"
]
},
"created_at": "<string>",
"organization_id": "<string>",
"plain_instructions": "<string>",
"playbook_id": "<string>",
"revision": 123,
"schema_version": 123,
"source_hash": "<string>",
"updated_at": "<string>",
"description": "<string>",
"last_validation": "<unknown>",
"name": "<string>",
"status": "<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": [
{}
]
},
"plan_hash": "<string>",
"references": [
{
"kind": "<string>",
"label_snapshot": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"source_node_id": "<string>"
}
],
"source_hash": "<string>",
"validation": {
"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>"
}
}{
"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>"
}
}