v1

latestSwagger 2.02026-07-17443368.1 KB
p2p

创建一个 P2P 聊天会话。

post/p2p.create

Request body

user_idstring required

P2P 聊天另外一方的用户 id

Example request

{
  "user_id": "=bw52O"
}

Response

request success

idstring required
team_idstring required
vchannel_idstring required

聊天会话 id

type'normal' | 'session' | 'p2p' required

聊天会话类型

is_activeboolean required

会话是否有效

is_memberboolean required

当前用户是否为对话成员?

member_uidsResponseObjectId[] required

P2P 对话成员 id 列表

latest_tsinteger required

P2P 对话最新一条消息的 ts