List sessions
Operation description
List sessions
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
starops:ListThreads |
get |
*DigitalEmployee
|
None | None |
Request syntax
GET /digitalEmployee/{name}/threads HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the digital worker. |
test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| status |
string |
No |
The status of the thread. |
active |
| threadId |
string |
No |
The thread ID. |
thread-123123 |
| maxResults |
integer |
No |
The maximum number of results to return. Maximum value: 200. |
20 |
| nextToken |
string |
No |
The pagination token. |
xxxxxx |
| filter |
array<object> |
No |
Filters the results. If this parameter is omitted, the operation returns all threads in the instance. |
|
|
object |
No |
A filter object. |
||
| key |
string |
Yes |
The filter key. Supported values are title, workspace, and project. |
title |
| value |
string |
Yes |
The value for the filter key. |
test |
| includeMission |
boolean |
No |
Specifies whether to include threads created by missions. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
CD8BA7D6-995D-578D-9941-xxxx |
| threadId |
string |
The thread ID. |
thread-123123 |
| total |
integer |
The total number of threads. |
1 |
| maxResults |
integer |
The maximum number of results to return. The maximum value is 200. |
20 |
| threads |
array<object> |
A list of threads. |
|
|
array<object> |
A thread object. |
||
| threadId |
string |
The thread ID. |
thread-123123 |
| digitalEmployeeName |
string |
The digital employee name. |
test |
| title |
string |
The thread title. |
test |
| status |
string |
The thread status. |
active |
| version |
integer |
The thread version. |
123123 |
| variables |
object |
The thread variables. |
|
| workspace |
string |
The workspace. |
workspace |
| project |
string |
The project in SLS. |
project |
| createTime |
string |
The creation time of the thread, in ISO 8601 format. |
2025-12-19T15:19:55.040403272+08:00 |
| updateTime |
string |
The last update time of the thread, in ISO 8601 format. |
2025-12-19T15:19:55.040403272+08:00 |
| attributes |
object |
A map of key-value pairs that you can attach to the thread. |
|
|
string |
The attribute value. |
test |
|
| nextToken |
string |
A token to retrieve the next page of results. If this parameter is absent, no more results are available. |
xxxxxxxxxx |
Examples
Success response
JSON format
{
"requestId": "CD8BA7D6-995D-578D-9941-xxxx\n",
"threadId": "thread-123123\n",
"total": 1,
"maxResults": 20,
"threads": [
{
"threadId": "thread-123123\n",
"digitalEmployeeName": "test",
"title": "test",
"status": "active",
"version": 123123,
"variables": {
"workspace": "workspace",
"project": "project"
},
"createTime": "2025-12-19T15:19:55.040403272+08:00\n",
"updateTime": "2025-12-19T15:19:55.040403272+08:00\n",
"attributes": {
"key": "test"
}
}
],
"nextToken": "xxxxxxxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.