Create a screen link
A link to the VM's screen. Who has the link watches, and can take over the screen, until it expires.
POST /v1/tenants/{tenant}/vms/{name}/screen-links
curl -X POST "https://api.shako.dev/v1/tenants/acme/vms/web1/screen-links" \
-H "Authorization: Bearer $SHAKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"expires":900}'201 (excerpt)
{
"name": "web1",
"url": "https://workspace.shako.dev/live/Zk3...",
"expires": 1793492100
}Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.
Path parameters
tenantstringrequired- The tenant's name, from GET /v1/tenants.
namestringrequired- The VM's name.
Request body
expiresinteger, 60 to 3600default: 3600- How long the link works, in seconds: 60 to 3600.
Response
201 with the screen link object.
Behavior
Put the url in your own page, for example in an <iframe>.
The errors. All the endpoints of Screen links.