Genie conversations
Get a Genie browser session
A browser session a Genie opened in a conversation: its status and, while live, its live view.
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_conversation_id*stringThe Genie conversation.
uuidsession_id*stringThe browser session, as the conversation's steps name it.
region*RegionsRegion of the genie: besg (Europe) or usnv (United States)
"besg""usnv"OK
application/json- response
session_id*Session Idstatus?|nulllive_view_url?|Absent once the live browser has expired
nullexpires_at?|nullcurl -X GET 'https://api.stacksync.com/v1/workspaces/0/genies/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/browser-sessions/string?region=besg'{ "session_id": "<session_id>", "status": "<status>", "live_view_url": "<live_view_url>", "expires_at": "<expires_at>"}GETGet a Genie tool execution
One tool run of a conversation (a step's execution_log_id): how the tool was called and what came back.
GETGet a Genie run
Returns the state of a run started with Run a Genie and, once the Genie has answered, its latest reply. Pass the region the run answer carried: the conversation is read from that data region. While the Genie works, status is processing and there is no result; completed carries the reply in result and its id in message_id; failed means the run could not finish.