import requests
url = "https://form-fill-agent-backend.artpark.ai/api/v1/agents"
payload = {
"questions": [
{
"question": "<string>",
"advanced_instructions": "<string>",
"boolean_labels": {
"false": "<string>",
"true": "<string>"
},
"branch_id": "<string>",
"end_call_values": ["<string>"],
"name": "<string>",
"options": ["<string>"],
"required": True,
"retry_config": {
"allow_retries": True,
"exhausted_action": "skip",
"max_retries": 2,
"retry_messages": ["<string>"],
"until_answered": False
},
"script": "<string>",
"skip_message": "<string>",
"validation": {
"type": "<string>",
"rules": {}
}
}
],
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)