See Stacksync in action with a solution architect. Book a demo ↗
Genies

Genies

List Genie logs

GET
/v1/workspaces/{workspace_id}/genies/{genie_id}/logs

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

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

genie_id*string

The Genie.

Formatuuid

Query Parameters

region*Regions

Data 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

Defaultnull
time_range_end?|

Only logs at or before this time, ISO 8601 UTC

Defaultnull

Response Body

OK

application/json
  1. response
data*array<>
List Genie logs
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          }        }      ]    }  ]}