cURL
curl --request POST \ --url https://api.bctrl.ai/v1/profiles/{id}/connect \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "driver": "<string>" } '
{ "profileId": "<string>", "sessionId": "<string>", "hostId": "<string>", "driver": "<string>", "reused": true, "driverChanged": true }
Connect a browser driver to a running profile
playwright
puppeteer
stagehand
selenium
import { Bctrl } from '@bctrl/sdk'; const bctrl = new Bctrl({ apiKey: process.env.BCTRL_API_KEY! }); const result = await bctrl.profiles.connect('prof_abc123');