Skip to main content
Threads

检索线程

根据 ID 检索指定的线程。

GET
/threads/{thread_id}
cURL
curl --request GET \
  --url 'https://dashscope.aliyuncs.com/api/v1/threads/{thread_id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
{
  "id": "thread_c7ebb0ca-2e4f-43e5-b223-6e1f8c6fccc7",
  "object": "thread",
  "created_at": 1711507920700,
  "metadata": {},
  "request_id": "4d4e73ad-15fb-96ac-9262-0643a0fdb5ca"
}

Authorizations

string
header
required

DashScope API Key,在控制台 API Key 页面(https://bailian.console.aliyun.com/settings/apikey)获取。请求头格式:Authorization: Bearer $DASHSCOPE_API_KEY。

Path Parameters

string
required

待检索的 thread ID。

Response

200-application/json
Managed Agent API
Flow Agent API
RAG API
Connector API
框架集成
  • 框架
Assistant API(下线中)