Genies
Genies
List Genie logs
GET
A Genie's logs by conversation: per message, what it was asked, what it answered, the tools it called and the tokens and cost used.
Authorization
AuthorizationstringheaderrequiredBearer <key>, where <key> is a workspace API key or a user API key. See Authentication.
workspace_id*integerThe workspace. List the ones your key can reach with GET /v1/workspaces.
genie_id*stringThe Genie.
Format
uuidregion*RegionsData region of the resources: besg (Europe) or usnv (United States), as GET /v1/regions lists them.
Value in
"besg""usnv"time_range_start?|Only logs at or after this time, ISO 8601 UTC
Default
nulltime_range_end?|Only logs at or before this time, ISO 8601 UTC
Default
nullOK
application/json- response
data*array<>curl -X GET 'https://api.stacksync.com/v1/workspaces/0/genies/497f6eca-6276-4993-bfeb-53cbbbba6f08/logs?region=besg'{ "data": [ { "conversation_id": "<conversation_id>", "name": "<name>", "status": "<status>", "created_at": "<created_at>", "updated_at": "<updated_at>", "tool_costs": 0, "token_costs": { "tokens_in": 0, "tokens_in_cached": 0, "tokens_out": 0, "tokens_thoughts": 0, "cost": 0 }, "messages": [ { "message_id": "<message_id>", "prompt": "<prompt>", "response": "<response>", "started_at": "<started_at>", "finished_at": "<finished_at>", "llm_call_count": 0, "tool_calls": 0, "tools_called": [ "<tools_called>" ], "tool_costs": 0, "token_costs": { "tokens_in": 0, "tokens_in_cached": 0, "tokens_out": 0, "tokens_thoughts": 0, "cost": 0 } } ] } ]}