Skip to main content
POST
Create socket session

Authorizations

Authorization
string
header
required

Workspace API key, sent as Authorization: Bearer <key>.

Body

application/json
app_ids
string[]
required

IDs of the apps the session may watch, up to 8. The key must be able to watch every one.

Required array length: 1 - 8 elements
Pattern: ^[0-9a-f]{24}$
Example:

Response

Session opened.

session_id
string
required

ID of the session, for changing its apps or ending it. Keep it on your server. It can't open a connection.

Example:

"3f9a1c0e7b2d4e8f9a6b5c4d3e2f1a0b"

session_token
string
required

Secret the browser connects with, as auth.session_token. Pass it to the browser and don't store it.

Example:

"b44ws_Jd8lQ2v0mX4rT9yK1pN6sB3hW7cF5gA0eZ2uL8oI4qR"

socket_url
string
required

Origin the browser connects to.

Example:

"https://ws.base44.com"

socket_path
string
required

Socket.IO path on that origin.

Example:

"/ws/socket.io/"

expires_in
integer
required

Seconds until the session and its token expire. A session is never extended.

Example:

3600