Create Workflow
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/workflows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "",
"allowed_agent_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows"
payload = {
"name": "<string>",
"description": "",
"allowed_agent_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '',
allowed_agent_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Workflows
Create Workflow
POST
/
api
/
v1
/
workflows
Create Workflow
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/workflows \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>",
"description": "",
"allowed_agent_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows"
payload = {
"name": "<string>",
"description": "",
"allowed_agent_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '',
allowed_agent_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));