Skip to content
Download Beeper

Chats

Manage chats

Retrieve chat details
client.Chats.Get(ctx, chatID, query) (*Chat, error)
get/v1/chats/{chatID}
Create a chat
client.Chats.New(ctx, body) (*ChatNewResponse, error)
post/v1/chats
List chats
client.Chats.List(ctx, query) (*CursorNoLimit[ChatListResponse], error)
get/v1/chats
Search chats
client.Chats.Search(ctx, query) (*CursorSearch[Chat], error)
get/v1/chats/search
Archive or unarchive a chat
client.Chats.Archive(ctx, chatID, body) error
post/v1/chats/{chatID}/archive
ModelsExpand Collapse
type Chat struct{…}
ID string

Unique identifier of the chat across Beeper.

AccountID string

Account ID this chat belongs to.

DeprecatedNetwork string

Display-only human-readable network name (e.g., 'WhatsApp', 'Messenger').

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 booloptional

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 stringoptional

Email address if known. Not guaranteed verified.

FullName stringoptional

Display name as shown in clients (e.g., 'Alice Example'). May include emojis.

ImgURL stringoptional

Avatar image URL if available. May be temporary or local-only to this device; download promptly if durable access is needed.

IsSelf booloptional

True if this user represents the authenticated account's own identity.

PhoneNumber stringoptional

User's phone number in E.164 format (e.g., '+14155552671'). Omit if unknown.

Username stringoptional

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.

Type ChatType

Chat type: 'single' for direct messages, 'group' for group chats.

Accepts one of the following:
const ChatTypeSingle ChatType = "single"
const ChatTypeGroup ChatType = "group"
UnreadCount int64

Number of unread messages.

Description stringoptional

Description of the chat.

IsArchived booloptional

True if chat is archived.

IsMuted booloptional

True if the chat is muted.

IsPinned booloptional

True if the chat is pinned.

LastActivity Timeoptional

Timestamp of last activity.

formatdate-time
LastReadMessageSortKey stringoptional

Last read message sortKey.

LocalChatID stringoptional

Local chat ID specific to this Beeper Desktop installation.

Title stringoptional

Display title of the chat.

ChatsReminders

Manage reminders for chats

Create a chat reminder
client.Chats.Reminders.New(ctx, chatID, body) error
post/v1/chats/{chatID}/reminders
Delete a chat reminder
client.Chats.Reminders.Delete(ctx, chatID) error
delete/v1/chats/{chatID}/reminders