Dashboard
Machines

Machine Preview

Machine Preview

GET/v2/machines/{machine_id}/preview

Return 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 · uuidrequired

Query Parameters

portintegeroptional

Port 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"
}