Problem type

Authentication is required

HTTP 401 · unauthorized

What it means

The API answers with HTTP 401 Unauthorized and the application/problem+json document below when the condition is Authentication is required. The document's type member is https://screenrig.ai/problems/unauthorized, the address of this page, and its code member is unauthorized.

What to do

The credential is missing, expired, or revoked, so retrying with it fails again. If a stored agent credential was rejected, sign this installation in again (screenrig login); enroll a new project only when the user asked for one.

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
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json

{
  "errors": [
    {
      "status": 401,
      "code": "unauthorized",
      "type": "https://screenrig.ai/problems/unauthorized",
      "title": "Authentication is required",
      "detail": "What went wrong in this request.",
      "hint": "The credential is missing, expired, or revoked, so retrying with it fails again. If a stored agent credential was rejected, sign this installation in again (screenrig login); enroll a new project only when the user asked for one."
    }
  ],
  "instance": "INSTANCE",
  "request_id": "REQUEST_ID",
  "server_time": "2026-01-01T00:00:00Z",
  "action": "remint"
}

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
HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json

{
  "type": "https://screenrig.ai/problems/unauthorized",
  "title": "Authentication is required",
  "status": 401,
  "detail": "What went wrong in this request.",
  "instance": "INSTANCE",
  "code": "unauthorized",
  "request_id": "REQUEST_ID",
  "action": "remint",
  "server_time": "2026-01-01T00:00:00Z",
  "errors": [],
  "hint": "The credential is missing, expired, or revoked, so retrying with it fails again. If a stored agent credential was rejected, sign this installation in again (screenrig login); enroll a new project only when the user asked for one."
}

In the API contract

The OpenAPI contract describes this problem in these words:

unauthorized — missing or wrong credentials, or an unknown trigger. WWW-Authenticate names the Basic realm.

unauthorized — missing or wrong credentials, or an unknown webhook. WWW-Authenticate names the Bearer and Basic realms.

Operations that name this problem

These operations name this problem in the API reference:

Player action

The Player action class is remint: Mint a new session, then continue.

Reference

Codeunauthorized
HTTP status401 Unauthorized
Typehttps://screenrig.ai/problems/unauthorized
Player actionremint