Apply a pending assistant proposal
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/assistant/{message_id}/confirm \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/assistant/{message_id}/confirm', 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/{message_id}/confirm"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true,
"secrets": [
{
"label": "<string>",
"value": "<string>"
}
],
"message": {}
}{
"ok": false,
"secrets": [
{}
],
"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>"
}Assistant
Apply a pending assistant proposal
POST
/
admin
/
api
/
projects
/
{project_id}
/
assistant
/
{message_id}
/
confirm
Apply a pending assistant proposal
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/assistant/{message_id}/confirm \
--cookie hookie_session=const options = {method: 'POST', headers: {cookie: 'hookie_session='}};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/assistant/{message_id}/confirm', 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/{message_id}/confirm"
headers = {"cookie": "hookie_session="}
response = requests.post(url, headers=headers)
print(response.text){
"ok": true,
"secrets": [
{
"label": "<string>",
"value": "<string>"
}
],
"message": {}
}{
"ok": false,
"secrets": [
{}
],
"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>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Id of one of this user's own assistant messages that carries a pending proposal.
Response
Every step applied. Each step is executed by re-invoking the real admin routes in process (same validation, SQL, RBAC and audit trail as the console), so the caller's role still governs what lands.