Request
The session ID to retrieve information for
Bearer token with your API key
Response
Unique session identifier
ISO 8601 timestamp when session was created
ISO 8601 timestamp when session will expire
ISO 8601 timestamp of last activity
Session state: “active”, “idle”, or “deep-sleep”
Number of files in /workspace
Number of running processes
Custom metadata attached to session
Example
curl https://api.buntime.sh/sessions/ses_abc123 \
-H "Authorization: Bearer $BUNTIME_API_KEY"
{
"sessionId": "ses_abc123def456",
"createdAt": "2024-01-19T10:30:00Z",
"expiresAt": "2024-01-20T10:30:00Z",
"lastActive": "2024-01-19T11:00:00Z",
"state": "active",
"filesCount": 12,
"activeProcesses": 1,
"metadata": {
"userId": "user_123"
}
}