检索消息
GET
https://api.openai.com/v1/threads/{thread_id}/messages/{message_id }
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
thread_id
string
必需
message_id
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai.com/v1/threads//messages/'
返回响应
🟢200成功
application/json
Body
id
string
必需
object
string
必需
created_at
integer
必需
thread_id
string
必需
role
string
必需
content
array [object {2}]
必需
type
string
可选
text
object
可选
file_ids
array[string]
必需
assistant_id
null
必需
run_id
null
必需
metadata
object
必需
示例
{
"id": "string",
"object": "string",
"created_at": 0,
"thread_id": "string",
"role": "string",
"content": [
{
"type": "string",
"text": {
"value": "string",
"annotations": [
"string"
]
}
}
],
"file_ids": [
"string"
],
"assistant_id": null,
"run_id": null,
"metadata": {}
}
修改于 2024-06-28 05:43:44