Generate a workflow plan (stream)
curl --request POST \
--url https://aquila.attaxr.com/api/ai/generate-workflow-plan \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({description: '<string>'})
};
fetch('https://aquila.attaxr.com/api/ai/generate-workflow-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/ai/generate-workflow-plan"
payload = { "description": "<string>" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}AI
Generate a workflow plan (stream)
Streams NDJSON frames (chunk, final, error) as the model generates.
POST
/
api
/
ai
/
generate-workflow-plan
Generate a workflow plan (stream)
curl --request POST \
--url https://aquila.attaxr.com/api/ai/generate-workflow-plan \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"description": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({description: '<string>'})
};
fetch('https://aquila.attaxr.com/api/ai/generate-workflow-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/ai/generate-workflow-plan"
payload = { "description": "<string>" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
apiKeyCookieapiKeyHeaderbearerAuth
Browser session cookie set by Better Auth sign-in.
Body
application/json
Response
NDJSON stream: chunk, final and error frames.

