Retrieve
Retrieve chat details including metadata, participants, and latest message
Parameters
chatID string
Unique identifier of the chat.
Returns
Retrieve chat details
package main
import (
"context"
"fmt"
"github.com/beeper/desktop-api-go"
"github.com/beeper/desktop-api-go/option"
)
func main() {
client := beeperdesktopapi.NewClient(
option.WithAccessToken("My Access Token"),
)
chat, err := client.Chats.Get(
context.TODO(),
"!NCdzlIaMjZUmvmvyHU:beeper.com",
beeperdesktopapi.ChatGetParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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"
}