Search the AI call log
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/search/ai-calls \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"q": "<string>",
"source_id": "<string>",
"instance_id": "<string>",
"model": "<string>",
"since": "<string>",
"until": "<string>",
"limit": 25,
"offset": 0
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
source_id: '<string>',
instance_id: '<string>',
model: '<string>',
since: '<string>',
until: '<string>',
limit: 25,
offset: 0
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/search/ai-calls', 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}/search/ai-calls"
payload = {
"q": "<string>",
"source_id": "<string>",
"instance_id": "<string>",
"model": "<string>",
"since": "<string>",
"until": "<string>",
"limit": 25,
"offset": 0
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"entity": "ai_calls",
"count": 123,
"total": 123,
"limit": 123,
"offset": 123,
"results": [
{
"id": "<string>",
"source_kind": "trigger",
"source_id": "<string>",
"instance_id": "<string>",
"step": "<string>",
"model": "<string>",
"status": "ok",
"error": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"tokens_estimated": true,
"latency_ms": 123,
"created_at": "2023-11-07T05:31:56Z",
"instructions_truncated": true,
"input_truncated": true,
"output_truncated": true,
"output_preview": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Search
Search the AI call log
Every AI call an AI trigger, workflow call_ai step or agent_call step made in this project, including calls refused for being over the monthly AI token allowance. Newest first. Lists carry a preview of the output; GET one call for the full texts. Top-level alias: POST /admin/api/search/ai-calls.
POST
/
admin
/
api
/
projects
/
{project_id}
/
search
/
ai-calls
Search the AI call log
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/search/ai-calls \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"q": "<string>",
"source_id": "<string>",
"instance_id": "<string>",
"model": "<string>",
"since": "<string>",
"until": "<string>",
"limit": 25,
"offset": 0
}
'const options = {
method: 'POST',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
source_id: '<string>',
instance_id: '<string>',
model: '<string>',
since: '<string>',
until: '<string>',
limit: 25,
offset: 0
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/search/ai-calls', 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}/search/ai-calls"
payload = {
"q": "<string>",
"source_id": "<string>",
"instance_id": "<string>",
"model": "<string>",
"since": "<string>",
"until": "<string>",
"limit": 25,
"offset": 0
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"entity": "ai_calls",
"count": 123,
"total": 123,
"limit": 123,
"offset": 123,
"results": [
{
"id": "<string>",
"source_kind": "trigger",
"source_id": "<string>",
"instance_id": "<string>",
"step": "<string>",
"model": "<string>",
"status": "ok",
"error": "<string>",
"input_tokens": 123,
"output_tokens": 123,
"tokens_estimated": true,
"latency_ms": 123,
"created_at": "2023-11-07T05:31:56Z",
"instructions_truncated": true,
"input_truncated": true,
"output_truncated": true,
"output_preview": "<string>"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Authorizations
sessionbearerAuthapiKey
Headers
Body
application/json
All filters optional and ANDed.