Skip to main content

Create Session

POST /v1/sessions/session

Creates a new session for a user given an API key.

Args: api_key: User's API key vm_lifetime_seconds: How long the VM will live (in seconds) from spawn time. Min: 20s, Max: 86400s (24h), Default: 300s (5min)

Request Body

{
"$ref": "#/components/schemas/CreateSessionRequest"
}

Responses

200

Successful Response

{
"$ref": "#/components/schemas/CreateSessionResponse"
}

422

Validation Error

{
"$ref": "#/components/schemas/HTTPValidationError"
}