What it means
The API answers with HTTP 410 Gone and the application/problem+json document below when the condition is Agent connection is expired. The document's type member is https://screenrig.ai/problems/agent-connection-expired, the address of this page, and its code member is agent_connection_expired.
What to do
This agent sign-in expired before it was approved. Start a new one (screenrig login) and approve it in the dashboard.
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 410 Gone
Content-Type: application/problem+json
{
"errors": [
{
"status": 410,
"code": "agent_connection_expired",
"type": "https://screenrig.ai/problems/agent-connection-expired",
"title": "Agent connection is expired",
"detail": "What went wrong in this request.",
"hint": "This agent sign-in expired before it was approved. Start a new one (screenrig login) and approve it in the dashboard."
}
],
"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_expired |
|---|---|
| HTTP status | 410 Gone |
| Type | https://screenrig.ai/problems/agent-connection-expired |
| Player action | none |