AI
Get Playbook Draft
GET
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
draft
Get Playbook Draft
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/draftconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/draft', 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}/draft"
response = requests.get(url)
print(response.text){
"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>"
}{
"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
⌘I
Get Playbook Draft
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/draftconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/draft', 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}/draft"
response = requests.get(url)
print(response.text){
"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>"
}{
"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>"
}
}