API Reference

Owner Assistant

The owner's assistant «رقيب»: threads, streamed replies and confirm cards (signed-in user only).

10 endpoints· Auth: JWT
post/api/v1/console/assistant/actions/{id}/approve JWT

Create approve

Confirms a waiting change: it runs once, and the answer continues when every card is decided.

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/assistant/actions/{id}/approve" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/assistant/actions/{id}/reject JWT

Declines a waiting change; nothing runs, and the assistant is told

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
Up to 500 characters.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/assistant/actions/{id}/reject" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/assistant/availability JWT

Whether the panel works now, and why not: switch, plan, subscription, credits, setup

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/assistant/availability" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/assistant/runs/{id}/cancel JWT

Stops an answer being written, or one waiting for a decision (its cards are closed)

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/assistant/runs/{id}/cancel" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/assistant/threads JWT

The owner's own threads, most recent first

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Query parameters

Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/assistant/threads" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/assistant/threads JWT

Create threads

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "title": "string"
}
title
string
Up to 120 characters; empty takes the first message's opening words.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/assistant/threads" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "title": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/assistant/threads/{id} JWT

One thread: its chat bubbles, waiting cards and the run in progress

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/assistant/threads/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
patch/api/v1/console/assistant/threads/{id} JWT

Update id

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "title": "string"
}
title
string
1 to 120 characters.

Responses

200Success
cURL
curl -X PATCH "https://staging-api.panoptesos.com/api/v1/console/assistant/threads/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "title": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
delete/api/v1/console/assistant/threads/{id} JWT

Delete id

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must 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/assistant/threads/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
post/api/v1/console/assistant/threads/{id}/messages JWT

Sends the owner's message and answers it

`clientMessageId` makes a retry safe: the same key returns the run it already started, as JSON.

Capability
view_profit
Signed-in user only
API keys and OAuth tokens are refused (403). Do this in the dashboard.
Plan feature
ai_assistant must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "content": "string",
  "clientMessageId": "string"
}
content
string
1 to `MaxMessageChars` (4,000).
clientMessageId
string
The client's key: the same key again returns the run it started (≤ 64).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/assistant/threads/{id}/messages" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "content": "string",
  "clientMessageId": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu