Make a watch ticket through a watch link

A fresh `watch` ticket for a link already opened, when the page's first was spent or expired.

POST/v1/screen/watch-links/{link_id}/stream-ticket

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

A fresh watch ticket for a link already opened, when the page's first was spent or expired. The same people may ask as for openWatchLink, with the same refusals.

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/stream-ticket" \
  -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

201. The ticket.

201
{
  "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
ticketstringYesSingle use, for one stream, for at most 60 seconds. Stored by Pod only as a SHA-256 hash.
stream"screen"Yes
sandboxstringYes
mode"watch" | "takeover"Yes
organisationstringYes
projectstringYes
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.
stream_urlstringYesThe address of a WebSocket stream: wss://, or ws:// only on a plain http:// development server.
expires_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.

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.ticket(linkId, { origin })
Pythonpod.watch_links.ticket(link_id, origin=…)