Send a message to the configuration assistant
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/assistant \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"message": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({message: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/assistant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/assistant"
payload = { "message": "<string>" }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": {}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Assistant
Send a message to the configuration assistant
POST
/
admin
/
api
/
projects
/
{project_id}
/
assistant
Send a message to the configuration assistant
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/assistant \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"message": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({message: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/assistant', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/assistant"
payload = { "message": "<string>" }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": {}
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Body
application/json
Trimmed before use; must be non-blank. When a draft is in progress this is read deterministically as the answer to the pending field and costs no AI quota.
Required string length:
1 - 4000Response
The assistant's reply. Same message shape as getAssistantHistory. A reply carrying a proposal with proposal_status 'pending' must be confirmed explicitly — nothing is created by this call.
See getAssistantHistory for the full message shape.