---
title: "GET /p2p.info"
method: GET
path: "/p2p.info"
tags: ["p2p"]
---

# GET /p2p.info

`GET /p2p.info`

返回一个 P2P 聊天会话的完整信息。

## Query parameters

- `p2p_channel_id` string, required

## Response `200`

request success

- P2PChannel
  - `id` string, required
  - `team_id` string, required
  - `vchannel_id` string, required — 聊天会话 id
  - `type` 'normal' | 'session' | 'p2p', required — 聊天会话类型
  - `is_active` boolean, required — 会话是否有效
  - `is_member` boolean, required — 当前用户是否为对话成员？
  - `member_uids` ResponseObjectId[], required — P2P 对话成员 id 列表
  - `latest_ts` integer, required — P2P 对话最新一条消息的 ts

## Other responses

- `default` — request fail

## Changes

- **2018-10-11** `ba66de15d4cf` — 1 breaking
  - added the new required `query` request parameter `p2p_channel_id`
- **2017-04-19** `fd4c7a508190` — 1 info
  - api tag `p2p` added
- **2017-04-18** `b37660ad33e5` — 1 info
  - api tag `p2p` removed
- **2017-04-04** `4751e3946b90` — 1 info
  - api tag `p2p` added
- **2017-03-13** `ef71aa691171` — 1 warning, 1 info
  - deleted the `query` request parameter `p2p_channel_id`
  - api tag `p2p` removed

[Change history](https://skmtc.dev/bearyinnovative/apis/beary-openapi/changes/p2p.info/get.md)

---

[API](https://skmtc.dev/bearyinnovative/apis/beary-openapi.md) · [All operations](https://skmtc.dev/bearyinnovative/apis/beary-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bearyinnovative/beary-openapi/revisions/6e42a0e2d730/schema)
