Create session
import requests

url = 'https://api.simplex.sh/create_session'
headers = {
    'X-API-Key': 'your_api_key_here'
}
data = {
    'proxies': True,  # Optional, default is True
    'workflow_name': 'my_workflow',  # Optional
    'timeout': 1200  # Optional, default is 1200 seconds
}

response = requests.post(url, headers=headers, data=data)
result = response.json()
print(f"Session ID: {result['session_id']}")
print(f"Livestream URL: {result['livestream_url']}")
{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "livestream_url": "https://simplex.sh/livestream?sess=b1b61345-9800-4808-9973-dbc2fv3f98af&url=BECEA37AJRLD6AB7244C4C11E13606E99"
}
Creates a new browser session that can be controlled remotely.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

application/json

Response

Create Session response

The response is of type object.