LelantosLelantos

Browser Sandboxes

Browser-native sandboxes for automation, reconnect, and artifacts

List browser sandboxes

GET
/browser-sandboxes
X-API-Key<token>

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

POST
/browser-sandboxes
X-API-Key<token>

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

GET
/browser-sandboxes/{sandboxID}
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

DELETE
/browser-sandboxes/{sandboxID}
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

Response Body

application/json

application/json

application/json

curl -X DELETE "https://api.lelantos.ai/browser-sandboxes/string"
Empty
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}

Suspend a browser sandbox

POST
/browser-sandboxes/{sandboxID}/suspend
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

Response Body

application/json

application/json

application/json

curl -X POST "https://api.lelantos.ai/browser-sandboxes/string/suspend"
Empty
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}

Resume a browser sandbox

POST
/browser-sandboxes/{sandboxID}/resume
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body?unknown

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

POST
/browser-sandboxes/{sandboxID}/reconnect
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

POST
/browser-sandboxes/{sandboxID}/preview-sessions
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

POST
/browser-sandboxes/{sandboxID}/screenshot
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

POST
/browser-sandboxes/{sandboxID}/pdf
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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 '{}'
Empty
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}
{
  "code": 0,
  "message": "string"
}

List browser sandbox artifacts

GET
/browser-sandboxes/{sandboxID}/artifacts
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

GET
/browser-sandboxes/{sandboxID}/replay-events
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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

POST
/browser-sandboxes/{sandboxID}/inject-storage
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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 '{}'
Empty
{
  "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

POST
/browser-sandboxes/{sandboxID}/export-storage
X-API-Key<token>

In: header

Path Parameters

sandboxID*string

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"
}