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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
link_id | path | string | Yes |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
origin | string | Yes | A 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_s | integer | No | Default 30. From 1 to 60. |
Answer
201. The 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"
}| Field | Type | Always | What it is |
|---|---|---|---|
ticket | string | Yes | Single use, for one stream, for at most 60 seconds. Stored by Pod only as a SHA-256 hash. |
stream | "screen" | Yes | |
sandbox | string | Yes | |
mode | "watch" | "takeover" | Yes | |
organisation | string | Yes | |
project | string | Yes | |
origin | string | Yes | A 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_url | string | Yes | The address of a WebSocket stream: wss://, or ws:// only on a plain http:// development server. |
expires_at | string | Yes | RFC 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
| Client | Call |
|---|---|
| TypeScript | pod.watchLinks.ticket(linkId, { origin }) |
| Python | pod.watch_links.ticket(link_id, origin=…) |