Sessions
Get one captured UI state of a session
The UI tree the agent saw at one step of the run, as the JSON array
of nodes it was captured as. file is the step index followed by
.json, for example 0.json. Content follows the workspace’s
history window: a state older than the window returns 404.
GET
/
v1
/
sessions
/
{id}
/
ui-states
/
{file}
Get one captured UI state of a session
curl --request GET \
--url https://api.lusor.ai/v1/sessions/{id}/ui-states/{file} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/ui-states/{file}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/{id}/ui-states/{file}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{}
]{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Workspace API key, created in the dashboard under Settings → API Keys.
Path Parameters
Session ID.
Step index plus .json, for example 3.json.
Pattern:
^[0-9]+\.json$Query Parameters
Workspace the request is scoped to. Optional for API keys: a key is bound to one workspace when it is created, and naming any other workspace returns an opaque 404.
Response
The UI nodes captured at this step
Was this page helpful?
⌘I
Get one captured UI state of a session
curl --request GET \
--url https://api.lusor.ai/v1/sessions/{id}/ui-states/{file} \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/ui-states/{file}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/sessions/{id}/ui-states/{file}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{}
]{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}
