Skip to main content
POST
/
v1
/
agent
/
conversations
Create Conversation
curl --request POST \
  --url https://api.reportify.cn/v1/agent/conversations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": 11887655289749510,
  "title": "nvidia 最新业绩分析"
}
'
{
  "id": 123456789,
  "user_id": 987654321,
  "agent_id": 11887655289749510,
  "type": "agent_chat",
  "title": "nvidia 最新业绩分析",
  "status": "active",
  "created_at": 1765851195760,
  "updated_at": 1765851195768
}

创建智能体对话

URL: /v1/agent/conversations
方法: POST
描述: 创建一个新的智能体对话会话

请求参数

参数名类型必填描述
agent_idinteger智能体 ID
titlestring对话标题

响应参数

参数名类型描述
idinteger对话 ID
user_idinteger用户 ID
agent_idinteger智能体 ID
typestring对话类型
titlestring对话标题
statusstring对话状态
created_atinteger创建时间戳(毫秒)
updated_atinteger更新时间戳(毫秒)

请求示例

cURL
curl --request POST \
  --url https://api.reportify.cn/v1/agent/conversations \
  --header 'Authorization: Bearer YOUR_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": 11887655289749510,
  "title": "nvidia 最新业绩分析"
}'
Python
import requests

url = "https://api.reportify.cn/v1/agent/conversations"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}
payload = {
    "agent_id": 11887655289749510,
    "title": "nvidia 最新业绩分析"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())

响应示例

{
  "id": 123456789,
  "user_id": 987654321,
  "agent_id": 11887655289749510,
  "type": "agent_chat",
  "title": "nvidia 最新业绩分析",
  "status": "active",
  "created_at": 1765851195760,
  "updated_at": 1765851195768
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

创建 agent 对话请求

agent_id
integer
required

智能体 ID

Example:

11887655289749510

title
string

对话标题

Example:

"nvidia 最新业绩分析"

Response

Successful Response

创建 agent 对话响应

id
integer
required

对话 ID

Example:

123456789

user_id
integer
required

用户 ID

Example:

987654321

agent_id
integer
required

智能体 ID

Example:

11887655289749510

type
string
required

对话类型

Example:

"agent_chat"

status
string
required

对话状态

Example:

"active"

created_at
integer
required

创建时间戳(毫秒)

Example:

1765851195760

updated_at
integer
required

更新时间戳(毫秒)

Example:

1765851195768

title
string

对话标题

Example:

"nvidia 最新业绩分析"