Open a watch link (a person it names)

For the dashboard's watch page: a signed-in person the link names (by email, or as a member of the project when it names nobody) gets the link, the screen and a first watch ticket bound to `origin`.

POST/v1/screen/watch-links/{link_id}/open

Not available yet The API does not serve a screen's tree, live stream, takeovers, watch links or recordings yet.

For the dashboard's watch page: a signed-in person the link names (by email, or as a member of the project when it names nobody) gets the link, the screen and a first watch ticket bound to origin. Anyone else is forbidden; a link that is unknown, expired or revoked is not_found. The link carries its own scope, so the person needs no role in the organization. The answer holds a ticket: no-store, no Idempotency-Key.

For people only: a signed-in person's token makes this call. An API key is refused with person_required.

Request

curl -X POST "https://api.pod.mapier.ai/v1/screen/watch-links/wlk_3ahrz6dmv29gqy5ckt18fpx4b/open" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"origin":"example"}'

Parameters

NameInTypeRequiredWhat it is
link_idpathstringYes

Body

FieldTypeRequiredWhat it is
originstringYesA browser origin as the browser sends it in Origin (RFC 6454): scheme, host and port, no path and no default port. https://, or http:// on loopback for development.
ttl_sintegerNoDefault 30. From 1 to 60.

Answer

200. The link, its screen and a ticket.

200
{
  "link": {
    "id": "wlk_3ahrz6dmv29gqy5ckt18fpx4b",
    "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
    "project": "prj_3ahrz6dmv29gqy5ckt18fp",
    "viewers": ["example"],
    "bearer": false,
    "url": "https://app.example.com",
    "created_by": "example",
    "created_at": "2026-11-23T12:00:00.000Z",
    "expires_at": "2026-11-23T12:00:00.000Z",
    "revoked_at": null
  },
  "screen": {
    "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
    "system": "linux",
    "unavailable": null,
    "width": null,
    "height": null,
    "input": false,
    "tree": false,
    "image_formats": ["png"],
    "frame_seq": null,
    "tee": false,
    "recording": {
      "on": false,
      "mask_typing": false,
      "recording": null
    },
    "takeover": null,
    "watchers": 0
  },
  "ticket": {
    "ticket": "pod_3ahrz6dmv29gqy5ckt18fpx4bjs07enw3ahrz6dm",
    "stream": "screen",
    "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
    "mode": "watch",
    "organisation": "org_3ahrz6dmv29gqy5ckt18fp",
    "project": "prj_3ahrz6dmv29gqy5ckt18fp",
    "origin": "example",
    "stream_url": "wss://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/exec/op_3ahrz6dmv29gqy5ckt18fpx4b/stream",
    "expires_at": "2026-11-23T12:00:00.000Z"
  }
}
FieldTypeAlwaysWhat it is
linkWatchLinkYes
screenScreenYes
ticketScreenStreamTicketYesA ticket for one sandbox's screen stream. ticket is a secret: hand it only to the page at origin, which offers it with pod.stream.v1 as the WebSocket's subprotocols.

Errors

The refusals this call is known for: invalid, person_required, forbidden, not_found, in_other_cell, rate_limited. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.watchLinks.open(linkId, { origin })
Pythonpod.watch_links.open(link_id, origin=…)