Get Session Status
GET /v1/sessions/status/{session_id}
Check whether one of your sessions exists and whether its VM is alive. Returns
exists, vm_assigned, vm_alive (true while the VM's status is active),
vm_status, vm_id, uptime_seconds and expires_in_seconds (while the VM is
alive) and created_at. An unknown session_id returns 200 with exists false.
Authentication
Requires authentication via: OAuth2PasswordBearer.
Parameters
| Name | In | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
session_id | path | string | Yes | ||
X-API-Key | header | string | null | No | nullable |
Responses
200
Successful Response
application/json
Resolved schema:
{
"properties": {
"session_id": {
"type": "string",
"title": "Session Id"
},
"exists": {
"type": "boolean",
"title": "Exists"
},
"vm_assigned": {
"type": "boolean",
"title": "Vm Assigned"
},
"vm_status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vm Status"
},
"vm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Vm Id"
},
"vm_alive": {
"type": "boolean",
"title": "Vm Alive",
"default": false
},
"uptime_seconds": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Uptime Seconds"
},
"expires_in_seconds": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"title": "Expires In Seconds"
},
"created_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "Created At"
},
"env_status": {
"type": "string",
"title": "Env Status",
"default": "none"
},
"env_error": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Env Error"
}
},
"type": "object",
"required": [
"session_id",
"exists",
"vm_assigned"
],
"title": "SessionStatusResponse",
"description": "Response model for session status check."
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
session_id | string | Yes | ||
exists | boolean | Yes | ||
vm_assigned | boolean | Yes | ||
vm_status | string | null | No | nullable | |
vm_id | string | null | No | nullable | |
vm_alive | boolean | No | default=false | |
uptime_seconds | number | null | No | nullable | |
expires_in_seconds | number | null | No | nullable | |
created_at | string | null | No | format=date-time, nullable | |
env_status | string | No | default="none" | |
env_error | string | null | No | nullable |
400
session_id is not a valid UUID.
No response body.
401
No credentials, or the Bearer token / X-API-Key is invalid.
No response body.
403
The account is disabled, or a guest token was used; or the session belongs to another account.
No response body.
422
Validation Error
application/json
Resolved schema:
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
detail | array<object> | No | ||
detail[] | object | No | ||
detail[].loc | array<string | integer> | No | ||
detail[].loc[] | string | integer | No | ||
detail[].msg | string | No | ||
detail[].type | string | No |