## Retrieve `client.Chats.Get(ctx, chatID, query) (*Chat, error)` **get** `/v1/chats/{chatID}` Retrieve chat details including metadata, participants, and latest message ### Parameters - `chatID string` Unique identifier of the chat. - `query ChatGetParams` - `MaxParticipantCount param.Field[int64]` Maximum number of participants to return. Use -1 for all; otherwise 0–500. Defaults to all (-1). ### Returns - `type Chat struct{…}` - `ID string` Unique identifier of the chat across Beeper. - `AccountID string` Account ID this chat belongs to. - `Participants ChatParticipants` Chat participants information. - `HasMore bool` True if there are more participants than included in items. - `Items []User` Participants returned for this chat (limited by the request; may be a subset). - `ID string` Stable Beeper user ID. Use as the primary key when referencing a person. - `CannotMessage bool` True if Beeper cannot initiate messages to this user (e.g., blocked, network restriction, or no DM path). The user may still message you. - `Email string` Email address if known. Not guaranteed verified. - `FullName string` Display name as shown in clients (e.g., 'Alice Example'). May include emojis. - `ImgURL string` Avatar image URL if available. May be temporary or local-only to this device; download promptly if durable access is needed. - `IsSelf bool` True if this user represents the authenticated account's own identity. - `PhoneNumber string` User's phone number in E.164 format (e.g., '+14155552671'). Omit if unknown. - `Username string` Human-readable handle if available (e.g., '@alice'). May be network-specific and not globally unique. - `Total int64` Total number of participants in the chat. - `Title string` Display title of the chat as computed by the client/server. - `Type ChatType` Chat type: 'single' for direct messages, 'group' for group chats. - `const ChatTypeSingle ChatType = "single"` - `const ChatTypeGroup ChatType = "group"` - `UnreadCount int64` Number of unread messages. - `IsArchived bool` True if chat is archived. - `IsMuted bool` True if chat notifications are muted. - `IsPinned bool` True if chat is pinned. - `LastActivity Time` Timestamp of last activity. - `LastReadMessageSortKey string` Last read message sortKey. - `LocalChatID string` Local chat ID specific to this Beeper Desktop installation. ### Example ```go package main import ( "context" "fmt" "github.com/beeper/desktop-api-go" ) func main() { client := beeperdesktopapi.NewClient( ) chat, err := client.Chats.Get( context.TODO(), "!NCdzlIaMjZUmvmvyHU:beeper.com", beeperdesktopapi.ChatGetParams{ }, ) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", chat.ID) } ```