cURL
curl --request GET \ --url https://api.bctrl.ai/v1/sessions/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "hostId": "<string>", "status": "<string>", "storageWorkspace": "<string>" }
Get details of an existing session
import { Bctrl } from '@bctrl/sdk'; const bctrl = new Bctrl({ apiKey: process.env.BCTRL_API_KEY! }); const info = await bctrl.sessions.get('sess_abc123');
{ "id": "sess_abc123", "hostId": "host_1", "status": "active" }