Messages(函数调用)
方法: POST路径: /v1/messages
请求参数
Header 参数
text
Content-Type
string
可选
示例:
application/json
Accept
string
可选
示例:
*/*
x-api-key
string
可选
示例:
{{key}}
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}Body 参数 application/json
text
object
示例
{
}请求示例代码
Shell
bash
curl --location --request POST '/v1/messages' \
--header 'Accept: */*' \
--header 'x-api-key: {{key}}' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{}'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{}