API Reference
AI Agent
The inbox AI agent that replies to guests: its settings, hand-over rules and activity.
11 endpoints· Auth: JWT or API Key
get
/api/v1/console/messaging/ai-agent JWT API KeyGet ai-agent
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/messaging/ai-agent JWT API KeyUpdate ai-agent
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"isEnabled": false,
"providerCode": "string",
"modelCode": "string",
"keyMode": "string",
"apiKey": "string",
"persona": "string",
"instructions": "string",
"businessInfo": "string",
"allowOrders": false,
"orderChannelId": "00000000-0000-0000-0000-000000000000",
"maxRepliesPerConversationPerHour": 0,
"deliveryEnabled": false,
"deliveryAreas": "string",
"deliveryFeeProductId": "00000000-0000-0000-0000-000000000000",
"agentName": "string",
"greeting": "string",
"activeMode": "string",
"workStartMinutes": 0,
"workEndMinutes": 0,
"handoffKeywords": [
"string"
]
}| isEnabled boolean | — |
| providerCode string | `anthropic` | `openai`. |
| modelCode string | An enabled catalogue model the plan allows (ADR-P011). |
| keyMode string | Optional, and only ever `platform`. `byo` is refused 422 `AI_OWN_KEY_REMOVED`: own keys were removed (2026-11-26). |
| apiKey string | Never stored. Any non-blank value is refused 422 `AI_OWN_KEY_REMOVED`. |
| persona string | — |
| instructions string | — |
| businessInfo string | — |
| allowOrders boolean | — |
| orderChannelId string (uuid) | — |
| maxRepliesPerConversationPerHour integer (int32) | — |
| deliveryEnabled boolean | Kept when left out. |
| deliveryAreas string | One area per line or comma-separated; empty delivers anywhere. Kept when left out. |
| deliveryFeeProductId string (uuid) | A product of the branch charged as the delivery fee; null charges none. Kept when left out. |
| agentName string | The name the agent introduces itself by, up to 60 characters. Kept when left out. |
| greeting string | How the agent answers a bare greeting, up to 300 characters. Kept when left out. |
| activeMode string | `always` | `outside_hours`. Kept when left out. |
| workStartMinutes integer (int32) | The staff's working window, minutes after midnight in Baghdad (0 to 1439). Kept when left out. |
| workEndMinutes integer (int32) | — |
| handoffKeywords string[] | The branch's own hand-off phrases: up to 50, each up to 100 characters. Kept when left out. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"isEnabled": false,
"providerCode": "string",
"modelCode": "string",
"keyMode": "string",
"apiKey": "string",
"persona": "string",
"instructions": "string",
"businessInfo": "string",
"allowOrders": false,
"orderChannelId": "00000000-0000-0000-0000-000000000000",
"maxRepliesPerConversationPerHour": 0,
"deliveryEnabled": false,
"deliveryAreas": "string",
"deliveryFeeProductId": "00000000-0000-0000-0000-000000000000",
"agentName": "string",
"greeting": "string",
"activeMode": "string",
"workStartMinutes": 0,
"workEndMinutes": 0,
"handoffKeywords": [
"string"
]
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/messaging/ai-agent/analytics JWT API KeyGet analytics
Replies, hand-offs, orders, timings, tokens and staff ratings over a range of business days.
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/analytics" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/messaging/ai-agent/knowledge JWT API KeyGet knowledge
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/knowledge" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/messaging/ai-agent/knowledge JWT API KeyCreate knowledge
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"type": "string",
"title": "string",
"body": "string",
"isEnabled": false,
"sortOrder": 0
}| type string | `faq` | `policy` | `note`. |
| title string | — |
| body string | — |
| isEnabled boolean | Null keeps the stored value (on). |
| sortOrder integer (int32) | Null keeps the stored order; a new item goes last. |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/knowledge" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"type": "string",
"title": "string",
"body": "string",
"isEnabled": false,
"sortOrder": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/messaging/ai-agent/knowledge/{id} JWT API KeyUpdate id
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"type": "string",
"title": "string",
"body": "string",
"isEnabled": false,
"sortOrder": 0
}| type string | `faq` | `policy` | `note`. |
| title string | — |
| body string | — |
| isEnabled boolean | Null keeps the stored value (on). |
| sortOrder integer (int32) | Null keeps the stored order; a new item goes last. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/knowledge/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"type": "string",
"title": "string",
"body": "string",
"isEnabled": false,
"sortOrder": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
delete
/api/v1/console/messaging/ai-agent/knowledge/{id} JWT API KeyDelete id
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/knowledge/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/messaging/ai-agent/models JWT API KeyThe catalogue models this branch's plan allows, with their credit prices
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/models" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/messaging/ai-agent/test JWT API KeyCreate test
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"message": "string"
}| message string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/test" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"message": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/messaging/ai-agent/test-chat JWT API KeyCreate test-chat
A multi-turn rehearsal: orders and hand-offs are simulated, and nothing is stored but the token meter.
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"messages": [
{
"role": "string",
"content": "string"
}
]
}| messages AiTestChatTurnRequest[] | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/test-chat" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"messages": [
{
"role": "string",
"content": "string"
}
]
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/messaging/ai-agent/usage JWT API KeyGet usage
- Capability
manage_messaging- API key scope
cap:manage_messaging(the key's owner must also hold the capability)- Plan feature
ai_agentmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/messaging/ai-agent/usage" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu