Approve a pending action
curl --request POST \
--url https://aquila.attaxr.com/api/chat/{id}/approve \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"tool": "<string>",
"approved": true,
"plan": true
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({tool: '<string>', approved: true, plan: true})
};
fetch('https://aquila.attaxr.com/api/chat/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat/{id}/approve"
payload = {
"tool": "<string>",
"approved": True,
"plan": True
}
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
Approve a pending action
Records a human-in-the-loop decision: approve or reject a tool, or approve the submitted plan.
POST
/
api
/
chat
/
{id}
/
approve
Approve a pending action
curl --request POST \
--url https://aquila.attaxr.com/api/chat/{id}/approve \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"tool": "<string>",
"approved": true,
"plan": true
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({tool: '<string>', approved: true, plan: true})
};
fetch('https://aquila.attaxr.com/api/chat/{id}/approve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat/{id}/approve"
payload = {
"tool": "<string>",
"approved": True,
"plan": True
}
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.
Path Parameters
Response
The decision was recorded.

