curl --request POST \
--url https://api.example.com/runs/{id}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"port": 3000,
"expires_in_secs": 3600
}
'{
"url": "https://preview.example.com/sb-a1b2c3d4/3000"
}Generates a time-limited preview URL for a port exposed by the run’s sandbox environment.
curl --request POST \
--url https://api.example.com/runs/{id}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"port": 3000,
"expires_in_secs": 3600
}
'{
"url": "https://preview.example.com/sb-a1b2c3d4/3000"
}JWT bearer token issued by fabro-web. See the Authentication guide for details.
Unique run identifier (ULID).
Preview URL created
Response containing the generated preview URL.
Time-limited preview URL.
"https://preview.example.com/sb-a1b2c3d4/3000"