Create an AI agent
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/ai-agents \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"active": true,
"model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"system_prompt": "",
"prompt": "<string>",
"tools": [],
"memory_dataset": "<string>",
"max_tokens": 1024
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
active: true,
model: '@cf/meta/llama-3.3-70b-instruct-fp8-fast',
system_prompt: '',
prompt: '<string>',
tools: [],
memory_dataset: '<string>',
max_tokens: 1024
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/ai-agents', 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}/ai-agents"
payload = {
"name": "<string>",
"active": True,
"model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"system_prompt": "",
"prompt": "<string>",
"tools": [],
"memory_dataset": "<string>",
"max_tokens": 1024
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"ok": true
}{
"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>"
}AI agents
Create an AI agent
POST
/
admin
/
api
/
projects
/
{project_id}
/
ai-agents
Create an AI agent
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/ai-agents \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"active": true,
"model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"system_prompt": "",
"prompt": "<string>",
"tools": [],
"memory_dataset": "<string>",
"max_tokens": 1024
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
active: true,
model: '@cf/meta/llama-3.3-70b-instruct-fp8-fast',
system_prompt: '',
prompt: '<string>',
tools: [],
memory_dataset: '<string>',
max_tokens: 1024
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/ai-agents', 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}/ai-agents"
payload = {
"name": "<string>",
"active": True,
"model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast",
"system_prompt": "",
"prompt": "<string>",
"tools": [],
"memory_dataset": "<string>",
"max_tokens": 1024
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"ok": true
}{
"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 validation.
Required string length:
1 - 120Only the literal false deactivates. An inactive agent makes an agent_call workflow step fail.
Workers AI model id. SILENTLY replaced by the default unless it starts with '@'.
prompt is accepted as an alias.
Maximum string length:
8000Alias for system_prompt.
Stored verbatim; reserved for tool-calling and not used at run time.
When set, each run's output is written there as a record for longer-term recall.
Pattern:
^[a-zA-Z][a-zA-Z0-9_]{0,62}$Clamped to 1..1024; a non-integer becomes 1024.