Machines
Machine Preview
Machine Preview
GET
/v2/machines/{machine_id}/previewReturn a preview link to ``port`` on the machine. Side effect: a sleeping machine is transparently resumed first (a preview is only meaningful on a running box), so this can take a few seconds on a cold sandbox.
Path Parameters
machine_idstring · uuidrequiredQuery Parameters
portintegeroptionalPort on the machine to expose. Defaults to 8000.
Request
curl --request GET \
--url https://api.brainbaselabs.com/v2/machines/{machine_id}/preview \
--header 'Authorization: Bearer YOUR_API_KEY'Response
json{
"url": "string",
"port": 0,
"token": "string"
}