Retrieve
Retrieve chat details
chats.retrieve(strchat_id, ChatRetrieveParams**kwargs) -> Chat
/v1/chats/{chatID}
Retrieve chat details including metadata, participants, and latest message
Parameters
chat_id: str
Unique identifier of the chat.
max_participant_count: Optional[int]
Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to 20.
minimum-1
maximum500
Returns
Retrieve chat details
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
chat = client.chats.retrieve(
chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
print(chat.id)
{
"id": "!instagram_mattwondra:local-instagram.localhost",
"accountID": "local-instagram_ba_eRfQMmnSNy_p7Ih7HL7RduRpKFU",
"network": "Instagram",
"participants": {
"hasMore": false,
"items": [
{
"id": "@mattwondra:local-instagram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Matt Wondra",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "mattwondra"
},
{
"id": "@batuhan:local-instagram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
],
"total": 2
},
"title": "Matt Wondra",
"type": "single",
"unreadCount": 0,
"isArchived": false,
"isMuted": false,
"isPinned": false,
"lastActivity": "2025-08-31T19:41:41.000Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229391"
}
Returns Examples
{
"id": "!instagram_mattwondra:local-instagram.localhost",
"accountID": "local-instagram_ba_eRfQMmnSNy_p7Ih7HL7RduRpKFU",
"network": "Instagram",
"participants": {
"hasMore": false,
"items": [
{
"id": "@mattwondra:local-instagram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Matt Wondra",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "mattwondra"
},
{
"id": "@batuhan:local-instagram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
],
"total": 2
},
"title": "Matt Wondra",
"type": "single",
"unreadCount": 0,
"isArchived": false,
"isMuted": false,
"isPinned": false,
"lastActivity": "2025-08-31T19:41:41.000Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229391"
}