brackets-curlyThreads

The Threads API is very useful for creating a chat-like experience with a relatively large message history

API Reference

删除话题。

delete

删除话题,永久删除对话。

路径参数
threadIdstring必填
响应
chevron-right
200成功
application/json
delete
/threads/{threadId}
200成功

创建新的对话主题。

post

创建新线程,发起对话或互动。

请求体
messagesstring[]必填
metadataobject可选
响应
chevron-right
200成功
application/json
post
/threads
200成功

获取特定线程的详细信息。

get

通过 ID 检索单个线程,提供对其详细信息和消息的访问。

路径参数
threadIdstring必填
响应
chevron-right
200成功
application/json
get
/threads/{threadId}
200成功

更新主题的信息。

post

更新现有线程的信息或上下文。

路径参数
threadIdstring必填
请求体
metadataobject可选
响应
chevron-right
200成功
application/json
post
/threads/{threadId}
200成功

Example

最后更新于