Threads, REST: Thread.Get
Retrieve details of a specific thread by its ID.
HTTP request
GET https://rest-assistant.api.cloud.yandex.net/assistants/v1/threads/{threadId}
Path parameters
Request message for retrieving a thread by ID.
Field |
Description |
threadId |
string Required field. ID of the thread to retrieve. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"folderId": "string",
"name": "string",
"description": "string",
"defaultMessageAuthorId": "string",
"createdBy": "string",
"createdAt": "string",
"updatedBy": "string",
"updatedAt": "string",
"expirationConfig": {
"expirationPolicy": "string",
"ttlDays": "string"
},
"expiresAt": "string",
"labels": "object"
}
Field |
Description |
id |
string Unique identifier of the thread. |
folderId |
string ID of the folder that the thread belongs to. |
name |
string Name of the thread. |
description |
string Description of the thread. |
defaultMessageAuthorId |
string Default user ID that will be used as the author for thread messages if no other author is specified. |
createdBy |
string Identifier of the subject who created this thread. |
createdAt |
string (date-time) Timestamp representing when the thread was created. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedBy |
string Identifier of the subject who last updated this thread. |
updatedAt |
string (date-time) Timestamp representing the last time this thread was updated. String in RFC3339 To work with values in this field, use the APIs described in the |
expirationConfig |
Configuration for the expiration of the thread, defining when and how the thread will expire. |
expiresAt |
string (date-time) Timestamp representing when the thread will expire. String in RFC3339 To work with values in this field, use the APIs described in the |
labels |
object (map<string, string>) Set of key-value pairs that can be used to organize and categorize the thread. |
ExpirationConfig
Field |
Description |
expirationPolicy |
enum (ExpirationPolicy)
|
ttlDays |
string (int64) |