Browser Sandboxes
Browser-native sandboxes for automation, reconnect, and artifacts
List browser sandboxes
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/browser-sandboxes"[
{
"browserSandboxID": "string",
"sandboxID": "string",
"templateID": "string",
"browser": "chromium",
"status": "provisioning",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"connectURL": "string",
"cdpURL": "string",
"persistentProfile": true,
"profileVolumeID": "string",
"capabilities": [
"string"
],
"metadata": {
"property1": "string",
"property2": "string"
}
}
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Create a browser sandbox
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes" \ -H "Content-Type: application/json" \ -d '{}'{
"browserSandboxID": "string",
"sandboxID": "string",
"templateID": "string",
"browser": "chromium",
"status": "provisioning",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"connectURL": "string",
"cdpURL": "string",
"persistentProfile": true,
"profileVolumeID": "string",
"capabilities": [
"string"
],
"metadata": {
"property1": "string",
"property2": "string"
}
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Get browser sandbox detail
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/browser-sandboxes/string"{
"browserSandboxID": "string",
"sandboxID": "string",
"templateID": "string",
"browser": "chromium",
"status": "provisioning",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"connectURL": "string",
"cdpURL": "string",
"persistentProfile": true,
"profileVolumeID": "string",
"capabilities": [
"string"
],
"metadata": {
"property1": "string",
"property2": "string"
}
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Delete a browser sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://api.lelantos.ai/browser-sandboxes/string"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Suspend a browser sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/suspend"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Resume a browser sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/resume" \ -H "Content-Type: application/json" \ -d '{}'{
"browserSandboxID": "string",
"sandboxID": "string",
"templateID": "string",
"browser": "chromium",
"status": "provisioning",
"createdAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"connectURL": "string",
"cdpURL": "string",
"persistentProfile": true,
"profileVolumeID": "string",
"capabilities": [
"string"
],
"metadata": {
"property1": "string",
"property2": "string"
}
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Issue a reconnect token for a browser sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/reconnect"{
"connectURL": "string",
"cdpURL": "string",
"expiresAt": "2019-08-24T14:15:22Z"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Issue a preview session for a browser sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/preview-sessions"{
"previewSessionID": "string",
"protocol": "cdp-screencast",
"status": "pending",
"streamURL": "string",
"inspectorURL": "string",
"expiresAt": "2019-08-24T14:15:22Z",
"metadata": {
"property1": "string",
"property2": "string"
}
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Capture a screenshot from a browser sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/screenshot" \ -H "Content-Type: application/json" \ -d '{}'{
"artifactID": "string",
"kind": "screenshot",
"createdAt": "2019-08-24T14:15:22Z",
"downloadURL": "string",
"contentType": "string",
"sizeBytes": 0
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Render a PDF from a browser sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/pdf" \ -H "Content-Type: application/json" \ -d '{}'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}List browser sandbox artifacts
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/browser-sandboxes/string/artifacts"{
"artifacts": [
{
"artifactID": "string",
"kind": "screenshot",
"createdAt": "2019-08-24T14:15:22Z",
"downloadURL": "string",
"contentType": "string",
"sizeBytes": 0
}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}List replay timeline events for a browser sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/browser-sandboxes/string/replay-events"{
"events": [
{
"eventID": "string",
"kind": "lifecycle",
"message": "string",
"createdAt": "2019-08-24T14:15:22Z",
"metadata": {
"property1": "string",
"property2": "string"
}
}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Inject Playwright storageState (cookies + localStorage) into a browser sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/inject-storage" \ -H "Content-Type: application/json" \ -d '{}'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Export the current browser session (cookies + localStorage) and save it to the context
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/export-storage"{
"cookies": [
{}
],
"origins": [
{}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}