What it means
The API answers with HTTP 401 Unauthorized and the application/problem+json document below when the condition is Screen link is not valid. The document's type member is https://screenrig.ai/problems/screen-link-invalid, the address of this page, and its code member is screen_link_invalid.
What to do
This screen link was replaced, turned off or never issued. Show the screen's current link (screenrig screen link show SCREEN_ID) and open that address instead.
Should you retry?
The retryable member appears only on HTTP 5xx problems, so this one has none. Follow the steps under What to do before sending the request again.
Example response
Most routes answer with the error in the first entry of errors, and the document members instance and request_id beside it. The type, code, title and status of this problem type are fixed; detail varies per request, and hint is the registry default unless the handler sets a more specific one.
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json
{
"errors": [
{
"status": 401,
"code": "screen_link_invalid",
"type": "https://screenrig.ai/problems/screen-link-invalid",
"title": "Screen link is not valid",
"detail": "What went wrong in this request.",
"hint": "This screen link was replaced, turned off or never issued. Show the screen's current link (screenrig screen link show SCREEN_ID) and open that address instead."
}
],
"instance": "INSTANCE",
"request_id": "REQUEST_ID",
"server_time": "2026-01-01T00:00:00Z",
"action": "clear_lkg"
}Player-facing routes (the screen and media routes, the pairing streams and the probe routes) answer with the same members flat at the top level:
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json
{
"type": "https://screenrig.ai/problems/screen-link-invalid",
"title": "Screen link is not valid",
"status": 401,
"detail": "What went wrong in this request.",
"instance": "INSTANCE",
"code": "screen_link_invalid",
"request_id": "REQUEST_ID",
"action": "clear_lkg",
"server_time": "2026-01-01T00:00:00Z",
"errors": [],
"hint": "This screen link was replaced, turned off or never issued. Show the screen's current link (screenrig screen link show SCREEN_ID) and open that address instead."
}In the API contract
The OpenAPI contract describes this problem in these words:
A replaced, deleted or unknown link is screen_link_invalid (401, action clear_lkg). A present host replaces the stored host hint; player replaces the stored player.
Operations that name this problem
These operations name this problem in the API reference:
- Create Screen Link Runtime Session
POST /screen/link-sessions
Player action
The Player action class is clear_lkg: Drop the last-known-good content and show the no-content screen.
Reference
| Code | screen_link_invalid |
|---|---|
| HTTP status | 401 Unauthorized |
| Type | https://screenrig.ai/problems/screen-link-invalid |
| Player action | clear_lkg |