Endpoints relating to sessions (active instances that support WebSockets)
GET /sessions/:session_id
Params:
| Key | Description |
| session_id | The sessions id |
Response:
POST /sessions/:session_id/disconnect
Params:
| Key | Description |
| session_id | The sessions id |
Response:
POST /sessions/:session_id/message
Check out Session commands for how to make your script handle messages
Request will wait up to 60 seconds for a response from the client
Params:
| Key | Description |
| session_id | The sessions id |
Payload:
| Key | Type | Required |
| key | String | True |
| data | JSON | False |
Response:
POST /sessions/disconnect
Payload:
| Key | Type | Required |
| session_ids | Array<String> | True |
Response:
POST /sessions/message
Check out Session commands for how to make your script handle messages
Request will wait up to 60 seconds for a response from the client
Payload:
| Key | Type | Required |
| session_ids | Array<String> | True |
| key | String | True |
| data | JSON | False |
Response: