Sessions
Get session artifacts (screenshots + ui-states + output)
GET
/
v1
/
sessions
/
{id}
/
artifacts
Get session artifacts (screenshots + ui-states + output)
curl --request GET \
--url https://api.lusor.ai/v1/sessions/{id}/artifacts \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/artifacts', 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}/artifacts"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sessionId": "<string>",
"output": {},
"screenshots": [
{
"id": "<string>",
"r2Key": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"stepIndex": 123
}
],
"uiStates": [
{
"id": "<string>",
"type": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {},
"stepIndex": 123
}
]
}{
"error": "<string>",
"message": "<string>"
}Authorizations
ApiKeyBearerAuth
Workspace API key, created in the dashboard under Settings → API Keys.
Path Parameters
Session ID.
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.
Was this page helpful?
⌘I
Get session artifacts (screenshots + ui-states + output)
curl --request GET \
--url https://api.lusor.ai/v1/sessions/{id}/artifacts \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/sessions/{id}/artifacts', 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}/artifacts"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"sessionId": "<string>",
"output": {},
"screenshots": [
{
"id": "<string>",
"r2Key": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"stepIndex": 123
}
],
"uiStates": [
{
"id": "<string>",
"type": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {},
"stepIndex": 123
}
]
}{
"error": "<string>",
"message": "<string>"
}
