What it means
The API answers with HTTP 404 Not Found and the application/problem+json document below when the condition is Agent connection is invalid. The document's type member is https://screenrig.ai/problems/agent-connection-invalid, the address of this page, and its code member is agent_connection_invalid.
What to do
This agent sign-in is not recognized. Start a new one (screenrig login).
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 404 Not Found
Content-Type: application/problem+json
{
"errors": [
{
"status": 404,
"code": "agent_connection_invalid",
"type": "https://screenrig.ai/problems/agent-connection-invalid",
"title": "Agent connection is invalid",
"detail": "What went wrong in this request.",
"hint": "This agent sign-in is not recognized. Start a new one (screenrig login)."
}
],
"instance": "INSTANCE",
"request_id": "REQUEST_ID",
"server_time": "2026-01-01T00:00:00Z"
}In the API contract
The OpenAPI contract describes this problem in these words:
Resolves the user code of a pending device sign-in (`screenrig login`), as typed or prefilled on the connect page, to its connection, whose approval view then shows it. Approves nothing. Separators, spaces and case are ignored. An unknown, used or invalid code is agent_connection_invalid; an expired one agent_connection_expired.
Operations that name this problem
These operations name this problem in the API reference:
- Lookup Dashboard Agent Connection
POST /api/agent-connections/lookup
Player action
This problem defines no Player action class. It belongs to a project, pairing or account flow that an agent or the dashboard drives.
Reference
| Code | agent_connection_invalid |
|---|---|
| HTTP status | 404 Not Found |
| Type | https://screenrig.ai/problems/agent-connection-invalid |
| Player action | none |