Skip to main content

List sessions

Call requirements, permissions, request fields, response fields, and error handling.

Request and permissions

GET https://openapi.qwenwork.ai/v1/session/sessions Authentication: Authorization: Bearer <access_token>; use an access token obtained through user OAuth authorization. Required business Scope: session.session.read Authorization methods declared by the contract: Organization authorization (organization), personal authorization (personal) The platform must enable the Scope for the application. The user must have the corresponding business permissions, and the target resource must be within their accessible scope. Whether personal or organization authorization is available to the application depends on the actual console configuration.

Behavior and limitations

Omitting session_type selects a cloud session. Every remote-control request must use session_type=remote and provide a nonempty device_id. Providing device_id for a cloud session, an empty or unknown type, or duplicate target parameters returns 422 VALIDATION_ERROR. Cross-device aggregated lists and automatic fallback to cloud are not provided. Both types use the same authentication chain; the open platform validates the corresponding Scope declared by each endpoint. Cloud sessions: Cursor-based pagination. Pass the returned next_cursor to the next call; stop when has_more is false. updated_since (RFC3339) limits results to sessions whose records changed after that instant. status can filter by starting, idle, running, action_required, or terminated. Filtering by action_required returns sessions waiting for an answer. List rows contain SessionSummary fields. Obtain pending_action and children from GET /sessions/{session_id}. Remote-control sessions: Shares public gateway authentication with cloud sessions; this endpoint requires the business Scope stated below. No controller device ID or pairing is required. The target remote-control master switch must be enabled. If explicitly disabled, returns 403 FORBIDDEN with detail.reason=ACP_HOST_DISABLED; rejected write requests return detail.acceptance=not_accepted. An explicitly nonexistent session returns 404 NOT_FOUND with detail.reason=SESSION_NOT_FOUND. Commands route only to target connections signed in to the currently authenticated account. Offline targets, unknown targets, and targets belonging to other accounts all return device unavailable. Unknown request body fields are rejected. Returns bounded pagination without a total count. Opaque cursors are bound to the authenticated account and target device. Call through the open platform, retaining the existing oauth_app Token, identity resolution, application IP restrictions, and resource ownership checks. Cloud and remote-control parameters retain their actual contract semantics. Short paths such as /sessions in this page are relative to the common prefix /v1/session. Use the full path at the top of this page for actual requests. Supported session types: cloud, remote In the full JSON, x-session-variants preserves the parameters, request bodies, and responses for cloud and remote-control sessions separately. Do not mix fields from the two branches.

Query parameters

ParameterTypeRequiredDescription and constraints
statusstringNoReturn only sessions with this status. Filter by action_required for sessions waiting for an answer.
Supported only for cloud sessions; passing this parameter for remote control returns 422.
Return only sessions with this status. Filter by action_required for sessions waiting for an answer.
Allowed values: ["starting", "idle", "running", "action_required", "terminated"]
updated_sincestringNoRFC3339 timestamp. Return only sessions whose records changed after that instant.
Supported only for cloud sessions; passing this parameter for remote control returns 422.
RFC3339 timestamp. Return only sessions whose records changed after that instant.
cursorstringNoOpaque pagination cursor. Omit for the first page.
Remote-control sessions: an opaque string cursor bound to the account and device.
Pass unchanged as a string in HTTP parameters: a decimal sequence number for cloud sessions, an opaque cursor for remote control. The service validates it according to session type.
Maximum length: 8192
limitintegerNoPage size.
Cloud: default 20, range 1 to 100. Remote control: default 50, range 1 to 100.
Number of entries per page.
Format: "int64"
Minimum (inclusive): 1
Maximum (inclusive): 100
session_typestringNoOmitting session_type selects a cloud session. Every remote-control request must use session_type=remote and provide a nonempty device_id. Providing device_id for a cloud session, an empty or unknown type, or duplicate target parameters returns 422 VALIDATION_ERROR. Cross-device aggregated lists and automatic fallback to cloud are not provided. Both types use the same authentication chain; the open platform validates the corresponding Scope declared by each endpoint.
Default: "cloud"
Allowed values: ["cloud", "remote"]
device_idstringNoRequired only for remote control. An opaque target device identifier from device discovery; it must be URL-encoded. The target connection must be signed in to the currently authenticated account.
Minimum length: 1
Maximum length: 256

Request body

The public contract declares no request body. Do not add identity fields or undeclared business fields.

Successful responses

Preserve the original response structure of each business endpoint; do not add a common code/msg/data wrapper.

HTTP 200

Success Response type: application/json
FieldTypeRequiredDescription and constraints
$schemastringNoAt least one of: branch 1
URL of the JSON Schema for this object.
Format: "uri"
has_morebooleanYesAt least one of: branch 1
true means another page exists. This is the authoritative signal for whether to keep paginating—a full page alone does not mean more data exists.
itemsarrayYesAt least one of: branch 1
One row per session, newest first. An empty array, never null, when no sessions exist.
items[]objectNoAt least one of: branch 1
Additional fields: false
items[].clientstringNoAt least one of: branch 1
Immutable creation source; later prompts do not change it.
items[].created_atstringYesAt least one of: branch 1
When the session was created. ISO 8601, with microseconds and timezone.
items[].end_reasonstring | nullYesAt least one of: branch 1
Why it ended, or null if it has not ended. Populated only when status is terminated.
items[].extra_dataobjectNoAt least one of: branch 1
Public creation metadata. An opaque creation context string is not inherited by later prompts.
items[].modestringYesAt least one of: branch 1
The capability tier this session runs on.
items[].namestringYesAt least one of: branch 1
Display name.
items[].operation_controlobject | nullNoAt least one of: branch 1
—
items[].operation_controlobjectNoAt least one of: branch 1 At least one of: branch 1
Additional fields: false
items[].operation_control.owner_typestringYesAt least one of: branch 1 At least one of: branch 1
Allowed values: ["personal_assistant", "user"]
items[].operation_control.release_atstring | nullNoAt least one of: branch 1 At least one of: branch 1
—
items[].operation_control.revisionstringYesAt least one of: branch 1 At least one of: branch 1
—
items[].operation_control.session_statusstringYesAt least one of: branch 1 At least one of: branch 1
—
items[].operation_controlnullNoAt least one of: branch 1 At least one of: branch 2
—
items[].session_idstringYesAt least one of: branch 1
Session id. Use GET /sessions/{session_id} for full details.
items[].session_typestringYesAt least one of: branch 1
Allowed values: ["cloud"]
items[].statusstringYesAt least one of: branch 1
Current status. Filter the list with ?status=action_required to return sessions in that state.
items[].updated_atstringYesAt least one of: branch 1
When the session record last changed. ISO 8601.
next_cursorintegerYesAt least one of: branch 1
Pass back as ?cursor= to get the next page. 0 means no next page. Always check has_more rather than whether this value is 0.
Format: "int64"
$schemastringNoAt least one of: branch 2
URL of the JSON Schema for this object.
Format: "uri"
has_morebooleanYesAt least one of: branch 2
—
itemsarrayYesAt least one of: branch 2
—
items[]objectNoAt least one of: branch 2
Additional fields: false
items[].clientstringNoAt least one of: branch 2
Immutable creation source; later prompts do not change it.
items[].created_atstringYesAt least one of: branch 2
—
items[].device_idstringYesAt least one of: branch 2
—
items[].extra_dataobjectNoAt least one of: branch 2
Display-compatibility metadata confirmed as saved by the target desktop. Absent if the marker was not saved.
Additional fields: false
items[].extra_data.eva_audio_streamobjectNoAt least one of: branch 2
Pass {} to set the EVA voice display-compatibility marker for the session. QwenWork hides background_hint blocks in requests and tts_summary blocks in responses. Omit for normal session display. Only an empty object is accepted, not null.
Additional fields: false
items[].modestring | nullYesAt least one of: branch 2
—
items[].namestring | nullYesAt least one of: branch 2
—
items[].operation_controlobject | nullNoAt least one of: branch 2
—
items[].operation_controlobjectNoAt least one of: branch 2 At least one of: branch 1
Additional fields: false
items[].operation_control.owner_typestringYesAt least one of: branch 2 At least one of: branch 1
Allowed values: ["personal_assistant", "user"]
items[].operation_control.release_atstring | nullNoAt least one of: branch 2 At least one of: branch 1
—
items[].operation_control.revisionstringYesAt least one of: branch 2 At least one of: branch 1
—
items[].operation_control.session_statusstringYesAt least one of: branch 2 At least one of: branch 1
—
items[].operation_controlnullNoAt least one of: branch 2 At least one of: branch 2
—
items[].session_idstringYesAt least one of: branch 2
—
items[].session_typestringYesAt least one of: branch 2
Allowed values: ["remote"]
items[].statusstringYesAt least one of: branch 2
Desktop running state. An open set; callers must tolerate unknown values.
items[].updated_atstringYesAt least one of: branch 2
—
next_cursorstring | nullYesAt least one of: branch 2
—

Error responses

HTTPDescription and handling
defaultError. Branch on code, not just the HTTP status code—multiple conditions can share the same status code.
Retain the request ID and error fields in the response for troubleshooting. A write operation may already have taken effect after a timeout or disconnection. Do not automatically retry merely because no successful response was received.

Full field contract

The JSON below contains the complete request, response, and error schemas, nested constraints, and public extension definitions for this endpoint. Copy it for verification. Success examples not declared in the contract are not inferred.
{
  "components": {
    "schemas": {
      "SessionPublicCreateSessionExtraData": {
        "additionalProperties": false,
        "properties": {
          "eva_audio_stream": {
            "$ref": "#/components/schemas/SessionPublicEvaAudioStream",
            "description": "Pass {} to set the EVA voice display-compatibility marker for the session. QwenWork hides background_hint blocks in requests and tts_summary blocks in responses. Omit for normal session display. Only an empty object is accepted, not null."
          }
        },
        "type": "object"
      },
      "SessionPublicErrorBody": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "Stable machine-readable error code. Branch on it rather than the HTTP status code, because different conditions can share the same status. New codes may be added; treat unrecognized values as unexpected errors in that HTTP status class.",
            "examples": [
              "VALIDATION_ERROR"
            ],
            "type": "string"
          },
          "detail": {
            "description": "Structured context whose shape depends on code—for example, the fields rejected by validation. null when no additional information is available."
          },
          "message": {
            "description": "Human-readable explanation for logs and error displays. The wording is not part of the contract and may change without a version increment.",
            "examples": [
              "Request validation failed"
            ],
            "type": "string"
          },
          "trace_id": {
            "description": "W3C trace id for this request. Include it when reporting problems—it locates the request in platform logs. If the request carried no trace context, this is 32 zero characters.",
            "examples": [
              "00000000000000000000000000000000"
            ],
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "detail",
          "trace_id"
        ],
        "type": "object"
      },
      "SessionPublicEvaAudioStream": {
        "additionalProperties": false,
        "type": "object"
      },
      "SessionPublicOperationControl": {
        "additionalProperties": false,
        "properties": {
          "owner_type": {
            "enum": [
              "personal_assistant",
              "user"
            ],
            "type": "string"
          },
          "release_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "revision": {
            "type": "string"
          },
          "session_status": {
            "type": "string"
          }
        },
        "required": [
          "owner_type",
          "session_status",
          "revision"
        ],
        "type": "object"
      },
      "SessionPublicRemoteSession": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "description": "Immutable creation source; later prompts do not change it.",
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "device_id": {
            "type": "string"
          },
          "extra_data": {
            "$ref": "#/components/schemas/SessionPublicCreateSessionExtraData",
            "description": "Display-compatibility metadata confirmed as saved by the target desktop. Absent if the marker was not saved."
          },
          "mode": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "operation_control": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionPublicOperationControl"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_id": {
            "type": "string"
          },
          "session_type": {
            "enum": [
              "remote"
            ],
            "type": "string"
          },
          "status": {
            "description": "Desktop running state. An open set; callers must tolerate unknown values.",
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "session_type",
          "session_id",
          "device_id",
          "name",
          "mode",
          "status",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "SessionPublicRemoteSessionList": {
        "additionalProperties": false,
        "properties": {
          "$schema": {
            "description": "URL of the JSON Schema for this object.",
            "examples": [
              "https://example.com/schemas/RemoteSessionList.json"
            ],
            "format": "uri",
            "readOnly": true,
            "type": "string"
          },
          "has_more": {
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/SessionPublicRemoteSession"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next_cursor",
          "has_more"
        ],
        "type": "object"
      },
      "SessionPublicSessionListResponse": {
        "additionalProperties": false,
        "properties": {
          "$schema": {
            "description": "URL of the JSON Schema for this object.",
            "examples": [
              "https://example.com/schemas/SessionListResponse.json"
            ],
            "format": "uri",
            "readOnly": true,
            "type": "string"
          },
          "has_more": {
            "description": "true means another page exists. This is the authoritative signal for whether to keep paginating—a full page alone does not mean more data exists.",
            "type": "boolean"
          },
          "items": {
            "description": "One row per session, newest first. An empty array, never null, when no sessions exist.",
            "items": {
              "$ref": "#/components/schemas/SessionPublicSessionSummary"
            },
            "type": "array"
          },
          "next_cursor": {
            "description": "Pass back as ?cursor= to get the next page. 0 means no next page. Always check has_more rather than whether this value is 0.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "items",
          "next_cursor",
          "has_more"
        ],
        "type": "object"
      },
      "SessionPublicSessionSummary": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "description": "Immutable creation source; later prompts do not change it.",
            "type": "string"
          },
          "created_at": {
            "description": "When the session was created. ISO 8601, with microseconds and timezone.",
            "examples": [
              "2026-08-24T09:15:04.123456+00:00"
            ],
            "type": "string"
          },
          "end_reason": {
            "description": "Why it ended, or null if it has not ended. Populated only when status is terminated.",
            "examples": [
              "completed"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "extra_data": {
            "description": "Public creation metadata. An opaque creation context string is not inherited by later prompts.",
            "type": "object"
          },
          "mode": {
            "description": "The capability tier this session runs on.",
            "examples": [
              "flash"
            ],
            "type": "string"
          },
          "name": {
            "description": "Display name.",
            "examples": [
              "Summarise sales.csv"
            ],
            "type": "string"
          },
          "operation_control": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SessionPublicOperationControl"
              },
              {
                "type": "null"
              }
            ]
          },
          "session_id": {
            "description": "Session id. Use GET /sessions/{session_id} for full details.",
            "examples": [
              "0b9f2c14-6d3a-4f18-9c27-8ae5d1b47f30"
            ],
            "type": "string"
          },
          "session_type": {
            "enum": [
              "cloud"
            ],
            "type": "string"
          },
          "status": {
            "description": "Current status. Filter the list with ?status=action_required to return sessions in that state.",
            "examples": [
              "idle"
            ],
            "type": "string"
          },
          "updated_at": {
            "description": "When the session record last changed. ISO 8601.",
            "examples": [
              "2026-08-24T09:16:22.905311+00:00"
            ],
            "type": "string"
          }
        },
        "required": [
          "session_type",
          "session_id",
          "status",
          "name",
          "mode",
          "end_reason",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "SessionRelayError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "error_description": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "error_description",
          "error_code"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "OpenPlatformBearer": {
        "description": "Authorization: Bearer <access_token>; JSON Content-Type: application/json; charset=utf-8. The current CN Review temporarily allows access only for routing debugging.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/session/sessions": {
      "get": {
        "description": "Omitting session_type selects a cloud session. Every remote-control request must use session_type=remote and provide a nonempty device_id. Providing device_id for a cloud session, an empty or unknown type, or duplicate target parameters returns 422 VALIDATION_ERROR. Cross-device aggregated lists and automatic fallback to cloud are not provided. Both types use the same authentication chain; the open platform validates the corresponding Scope declared by each endpoint.\n\nCloud sessions:\nCursor-based pagination. Pass the returned `next_cursor` to the next call; stop when `has_more` is false.\n\n`updated_since` (RFC3339) limits results to sessions whose records changed after that instant.\n\n`status` can filter by `starting`, `idle`, `running`, `action_required`, or `terminated`. Filtering by `action_required` returns sessions waiting for an answer.\n\nList rows contain `SessionSummary` fields. Obtain `pending_action` and `children` from `GET /sessions/{session_id}`.\n\nRemote-control sessions:\nShares public gateway authentication with cloud sessions; this endpoint requires the business Scope stated below. No controller device ID or pairing is required. The target remote-control master switch must be enabled. If explicitly disabled, returns 403 FORBIDDEN with detail.reason=ACP_HOST_DISABLED; rejected write requests return detail.acceptance=not_accepted. An explicitly nonexistent session returns 404 NOT_FOUND with detail.reason=SESSION_NOT_FOUND. Commands route only to target connections signed in to the currently authenticated account. Offline targets, unknown targets, and targets belonging to other accounts all return device unavailable. Unknown request body fields are rejected. Returns bounded pagination without a total count. Opaque cursors are bound to the authenticated account and target device.\nCall through the open platform, retaining the existing oauth_app Token, identity resolution, application IP restrictions, and resource ownership checks. Cloud and remote-control parameters retain their actual contract semantics.",
        "operationId": "publishedList-sessions",
        "parameters": [
          {
            "description": "Return only sessions with this status. Filter by action_required for sessions waiting for an answer.\nSupported only for cloud sessions; passing this parameter for remote control returns 422.",
            "explode": false,
            "in": "query",
            "name": "status",
            "schema": {
              "description": "Return only sessions with this status. Filter by action_required for sessions waiting for an answer.",
              "enum": [
                "starting",
                "idle",
                "running",
                "action_required",
                "terminated"
              ],
              "type": "string"
            }
          },
          {
            "description": "RFC3339 timestamp. Return only sessions whose records changed after that instant.\nSupported only for cloud sessions; passing this parameter for remote control returns 422.",
            "explode": false,
            "in": "query",
            "name": "updated_since",
            "schema": {
              "description": "RFC3339 timestamp. Return only sessions whose records changed after that instant.",
              "type": "string"
            }
          },
          {
            "description": "Opaque pagination cursor. Omit for the first page.\nRemote-control sessions: an opaque string cursor bound to the account and device.\nPass unchanged as a string in HTTP parameters: a decimal sequence number for cloud sessions, an opaque cursor for remote control. The service validates it according to session type.",
            "explode": false,
            "in": "query",
            "name": "cursor",
            "schema": {
              "maxLength": 8192,
              "type": "string"
            }
          },
          {
            "description": "Page size.\nCloud: default 20, range 1 to 100. Remote control: default 50, range 1 to 100.",
            "explode": false,
            "in": "query",
            "name": "limit",
            "schema": {
              "description": "Number of entries per page.",
              "format": "int64",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Omitting session_type selects a cloud session. Every remote-control request must use session_type=remote and provide a nonempty device_id. Providing device_id for a cloud session, an empty or unknown type, or duplicate target parameters returns 422 VALIDATION_ERROR. Cross-device aggregated lists and automatic fallback to cloud are not provided. Both types use the same authentication chain; The upstream does not validate OAuth session scope; the open platform validates the corresponding Scope according to the manifest.",
            "in": "query",
            "name": "session_type",
            "schema": {
              "default": "cloud",
              "enum": [
                "cloud",
                "remote"
              ],
              "type": "string"
            }
          },
          {
            "description": "Required only for remote control. An opaque target device identifier from device discovery; it must be URL-encoded. The target connection must be signed in to the currently authenticated account.",
            "in": "query",
            "name": "device_id",
            "schema": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionPublicSessionListResponse"
                    },
                    {
                      "$ref": "#/components/schemas/SessionPublicRemoteSessionList"
                    }
                  ]
                }
              }
            },
            "description": "Success",
            "headers": {
              "X-Request-ID": {
                "description": "Request ID generated by the open platform for each HTTP request, for log correlation and troubleshooting. Retries generate new IDs; this is not an idempotency key or distributed Trace ID.",
                "schema": {
                  "pattern": "^[0-9a-f]{32}$",
                  "type": "string"
                }
              },
              "X-Trace-ID": {
                "description": "OpenTelemetry TraceID for the current open-platform request, correlated with X-Request-ID through request logs. A complete trace may be unavailable if the sample was not retained.",
                "schema": {
                  "pattern": "^[0-9a-f]{32}$",
                  "type": "string"
                }
              }
            }
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionPublicErrorBody"
                    },
                    {
                      "$ref": "#/components/schemas/SessionRelayError"
                    }
                  ]
                }
              }
            },
            "description": "Error. Branch on `code`, not just the HTTP status code—multiple conditions can share the same status code.",
            "headers": {
              "X-Request-ID": {
                "description": "Request ID generated by the open platform for each HTTP request, for log correlation and troubleshooting. Retries generate new IDs; this is not an idempotency key or distributed Trace ID.",
                "schema": {
                  "pattern": "^[0-9a-f]{32}$",
                  "type": "string"
                }
              },
              "X-Trace-ID": {
                "description": "OpenTelemetry TraceID for the current open-platform request, correlated with X-Request-ID through request logs. A complete trace may be unavailable if the sample was not retained.",
                "schema": {
                  "pattern": "^[0-9a-f]{32}$",
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OpenPlatformBearer": []
          }
        ],
        "summary": "List sessions",
        "tags": [
          "会话管理"
        ],
        "x-session-variants": {
          "cloud": {
            "summary": "List sessions",
            "description": "Cursor-based pagination. Pass the returned `next_cursor` to the next call; stop when `has_more` is false.\n\n`updated_since` (RFC3339) limits results to sessions whose records changed after that instant.\n\n`status` can filter by `starting`, `idle`, `running`, `action_required`, or `terminated`. Filtering by `action_required` returns sessions waiting for an answer.\n\nList rows contain `SessionSummary` fields. Obtain `pending_action` and `children` from `GET /sessions/{session_id}`.",
            "parameters": [
              {
                "description": "Return only sessions with this status. Filter by action_required for sessions waiting for an answer.",
                "explode": false,
                "in": "query",
                "name": "status",
                "schema": {
                  "description": "Return only sessions with this status. Filter by action_required for sessions waiting for an answer.",
                  "enum": [
                    "starting",
                    "idle",
                    "running",
                    "action_required",
                    "terminated"
                  ],
                  "type": "string"
                }
              },
              {
                "description": "RFC3339 timestamp. Return only sessions whose records changed after that instant.",
                "explode": false,
                "in": "query",
                "name": "updated_since",
                "schema": {
                  "description": "RFC3339 timestamp. Return only sessions whose records changed after that instant.",
                  "type": "string"
                }
              },
              {
                "description": "Opaque pagination cursor. Omit for the first page.",
                "explode": false,
                "in": "query",
                "name": "cursor",
                "schema": {
                  "description": "Opaque pagination cursor. Omit for the first page.",
                  "format": "int64",
                  "minimum": 0,
                  "type": "integer"
                }
              },
              {
                "description": "Number of entries per page.",
                "explode": false,
                "in": "query",
                "name": "limit",
                "schema": {
                  "default": 20,
                  "description": "Number of entries per page.",
                  "format": "int64",
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                }
              }
            ],
            "requestBody": null,
            "responses": {
              "200": {
                "content": {
                  "application/json": {
                    "schema": {
                      "$ref": "#/components/schemas/SessionPublicSessionListResponse"
                    }
                  }
                },
                "description": "Success"
              }
            }
          },
          "remote": {
            "summary": "List unarchived sessions on a remote-control device",
            "description": "Shares public gateway authentication with cloud sessions; this endpoint requires the business Scope stated below. No controller device ID or pairing is required. The target remote-control master switch must be enabled. If explicitly disabled, returns 403 FORBIDDEN with detail.reason=ACP_HOST_DISABLED; rejected write requests return detail.acceptance=not_accepted. An explicitly nonexistent session returns 404 NOT_FOUND with detail.reason=SESSION_NOT_FOUND. Commands route only to target connections signed in to the currently authenticated account. Offline targets, unknown targets, and targets belonging to other accounts all return device unavailable. Unknown request body fields are rejected. Returns bounded pagination without a total count. Opaque cursors are bound to the authenticated account and target device.",
            "parameters": [
              {
                "description": "Opaque target device identifier, possibly including suffixes such as :dev. The target connection must belong to the currently authenticated account.",
                "explode": false,
                "in": "query",
                "name": "device_id",
                "required": true,
                "schema": {
                  "description": "Opaque target device identifier, possibly including suffixes such as :dev. The target connection must belong to the currently authenticated account.",
                  "maxLength": 256,
                  "type": "string"
                }
              },
              {
                "explode": false,
                "in": "query",
                "name": "limit",
                "schema": {
                  "default": 50,
                  "format": "int64",
                  "maximum": 100,
                  "minimum": 1,
                  "type": "integer"
                }
              },
              {
                "explode": false,
                "in": "query",
                "name": "cursor",
                "schema": {
                  "maxLength": 8192,
                  "type": "string"
                }
              }
            ],
            "requestBody": null,
            "responses": {
              "200": {
                "content": {
                  "application/json": {
                    "schema": {
                      "$ref": "#/components/schemas/SessionPublicRemoteSessionList"
                    }
                  }
                },
                "description": "Success"
              }
            }
          }
        },
        "x-supported-session-types": [
          "cloud",
          "remote"
        ]
      }
    }
  },
  "info": {
    "title": "List sessions",
    "version": "2026-11-24"
  },
  "servers": [
    {
      "url": "https://openapi.qwenwork.ai"
    }
  ]
}
Back to the OpenAPI overview.