Skip to content
  • Auto
  • Light
  • Dark
Download Beeper

Chats

Chats

Chats operations

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

Unique identifier of the chat (room/thread ID, same as id) across Beeper.

AccountID string

Beeper account ID this chat belongs to.

Network 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.

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.

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

Number of unread messages.

IsArchived booloptional

True if chat is archived.

IsMuted booloptional

True if chat notifications are muted.

IsPinned booloptional

True if chat is pinned.

LastActivity Timeoptional

Timestamp of last activity. Chats with more recent activity are often more important.

formatdate-time
LastReadMessageSortKey ChatLastReadMessageSortKeyUnionoptional

Last read message sortKey (hsOrder). Used to compute 'isUnread'.

Accepts one of the following:
int64
string
LocalChatID stringoptional

Local chat ID specific to this Beeper Desktop installation.

ChatsReminders

Reminders operations

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