Create a chat thread
curl --request POST \
--url https://aquila.attaxr.com/api/chat \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"title": "<string>",
"scanId": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', scanId: '<string>'})
};
fetch('https://aquila.attaxr.com/api/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat"
payload = {
"title": "<string>",
"scanId": "<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>"
}Chat
Create a chat thread
Creates a thread for the chat sidebar.
POST
/
api
/
chat
Create a chat thread
curl --request POST \
--url https://aquila.attaxr.com/api/chat \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"title": "<string>",
"scanId": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', scanId: '<string>'})
};
fetch('https://aquila.attaxr.com/api/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat"
payload = {
"title": "<string>",
"scanId": "<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

