Generate scan goals (stream)
curl --request POST \
--url https://aquila.attaxr.com/api/ai/generate-goals \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"scope": [
{
"type": "<string>",
"value": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({scope: [{type: '<string>', value: '<string>'}]})
};
fetch('https://aquila.attaxr.com/api/ai/generate-goals', 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-goals"
payload = { "scope": [
{
"type": "<string>",
"value": "<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 scan goals (stream)
Streams NDJSON frames (chunk, final, error) as the model generates.
POST
/
api
/
ai
/
generate-goals
Generate scan goals (stream)
curl --request POST \
--url https://aquila.attaxr.com/api/ai/generate-goals \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"scope": [
{
"type": "<string>",
"value": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({scope: [{type: '<string>', value: '<string>'}]})
};
fetch('https://aquila.attaxr.com/api/ai/generate-goals', 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-goals"
payload = { "scope": [
{
"type": "<string>",
"value": "<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.

