Validate Workflow
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/workflows/validate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"draft": {
"nodes": [
{
"id": "<string>",
"type": "<string>",
"version": 1,
"name": "",
"config": {},
"position": {
"x": 123,
"y": 123
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"port": "next"
}
],
"input_schema": {},
"execution": "async"
}
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows/validate"
payload = { "draft": {
"nodes": [
{
"id": "<string>",
"type": "<string>",
"version": 1,
"name": "",
"config": {},
"position": {
"x": 123,
"y": 123
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"port": "next"
}
],
"input_schema": {},
"execution": "async"
} }
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({
draft: {
nodes: [
{
id: '<string>',
type: '<string>',
version: 1,
name: '',
config: {},
position: {x: 123, y: 123}
}
],
edges: [{source: '<string>', target: '<string>', port: 'next'}],
input_schema: {},
execution: 'async'
}
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Workflows
Validate Workflow
POST
/
api
/
v1
/
workflows
/
validate
Validate Workflow
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/workflows/validate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"draft": {
"nodes": [
{
"id": "<string>",
"type": "<string>",
"version": 1,
"name": "",
"config": {},
"position": {
"x": 123,
"y": 123
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"port": "next"
}
],
"input_schema": {},
"execution": "async"
}
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows/validate"
payload = { "draft": {
"nodes": [
{
"id": "<string>",
"type": "<string>",
"version": 1,
"name": "",
"config": {},
"position": {
"x": 123,
"y": 123
}
}
],
"edges": [
{
"source": "<string>",
"target": "<string>",
"port": "next"
}
],
"input_schema": {},
"execution": "async"
} }
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({
draft: {
nodes: [
{
id: '<string>',
type: '<string>',
version: 1,
name: '',
config: {},
position: {x: 123, y: 123}
}
],
edges: [{source: '<string>', target: '<string>', port: 'next'}],
input_schema: {},
execution: 'async'
}
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));