Search
Search messages
Search messages across chats using Beeper's message index
Parameters
Limit search to specific account IDs.
Limit search to specific chat IDs.
Opaque pagination cursor; do not inspect. Use together with 'direction'.
Only include messages with timestamp strictly after this ISO 8601 datetime (e.g., '2024-07-01T00:00:00Z' or '2024-07-01T00:00:00+02:00').
Only include messages with timestamp strictly before this ISO 8601 datetime (e.g., '2024-07-31T23:59:59Z' or '2024-07-31T23:59:59+02:00').
Exclude messages marked Low Priority by the user. Default: true. Set to false to include all.
Include messages in chats marked as Muted by the user, which are usually less important. Default: true. Set to false if the user wants a more refined search.
Maximum number of messages to return.
Literal word search (NOT semantic). Finds messages containing these EXACT words in any order. Use single words users actually type, not concepts or phrases. Example: use "dinner" not "dinner plans", use "sick" not "health issues". If omitted, returns results filtered only by other parameters.
Returns
Search messages
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
page = client.messages.search()
page = page.items[0]
print(page.id)
{
"chats": {
"!signal_adamvy:local-signal.localhost": {
"id": "!signal_adamvy:local-signal.localhost",
"accountID": "local-signal_ba_7N74FrU29pxij_TnqfxeUHj53FY",
"network": "Signal",
"participants": {
"hasMore": false,
"items": [
{
"id": "@adamvy:local-signal.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Adam Van Ymeren",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "username"
},
{
"id": "@batuhan:local-signal.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"total": 2
},
"title": "Adam Van Ymeren",
"type": "single",
"unreadCount": 0,
"isArchived": false,
"isMuted": false,
"isPinned": true,
"lastActivity": "2025-08-31T17:38:20.393Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229720"
},
"!telegram_nick:local-telegram.localhost": {
"id": "!telegram_nick:local-telegram.localhost",
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"network": "Telegram",
"participants": {
"hasMore": false,
"items": [
{
"id": "@nick:local-telegram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Nick Mills-Barrett",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "nick"
},
{
"id": "@batuhan:local-telegram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
],
"total": 2
},
"title": "Nick Mills-Barrett",
"type": "single",
"unreadCount": 2,
"isArchived": false,
"isMuted": true,
"isPinned": false,
"lastActivity": "2025-08-31T16:45:10.123Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229721"
}
},
"hasMore": true,
"items": [
{
"id": "1343993",
"accountID": "local-signal_ba_7N74FrU29pxij_TnqfxeUHj53FY",
"chatID": "!signal_adamvy:local-signal.localhost",
"senderID": "@adamvy:local-signal.localhost",
"sortKey": "sortKey",
"timestamp": "2025-08-28T11:04:29.621Z",
"attachments": [
{
"type": "unknown",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL"
}
],
"isSender": false,
"isUnread": false,
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"senderName": "Adam Van Ymeren",
"text": "Hey, can we reschedule our meeting to 3pm?"
},
{
"id": "1343994",
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"chatID": "!telegram_nick:local-telegram.localhost",
"senderID": "@nick:local-telegram.localhost",
"sortKey": "sortKey",
"timestamp": "2025-08-28T14:22:15.432Z",
"attachments": [
{
"type": "unknown",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL"
}
],
"isSender": false,
"isUnread": true,
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"senderName": "Nick Mills-Barrett",
"text": "The deployment is complete, everything looks good"
}
],
"newestCursor": null,
"oldestCursor": "1756379069621"
}
Returns Examples
{
"chats": {
"!signal_adamvy:local-signal.localhost": {
"id": "!signal_adamvy:local-signal.localhost",
"accountID": "local-signal_ba_7N74FrU29pxij_TnqfxeUHj53FY",
"network": "Signal",
"participants": {
"hasMore": false,
"items": [
{
"id": "@adamvy:local-signal.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Adam Van Ymeren",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "username"
},
{
"id": "@batuhan:local-signal.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"total": 2
},
"title": "Adam Van Ymeren",
"type": "single",
"unreadCount": 0,
"isArchived": false,
"isMuted": false,
"isPinned": true,
"lastActivity": "2025-08-31T17:38:20.393Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229720"
},
"!telegram_nick:local-telegram.localhost": {
"id": "!telegram_nick:local-telegram.localhost",
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"network": "Telegram",
"participants": {
"hasMore": false,
"items": [
{
"id": "@nick:local-telegram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Nick Mills-Barrett",
"imgURL": "imgURL",
"isSelf": false,
"phoneNumber": "phoneNumber",
"username": "nick"
},
{
"id": "@batuhan:local-telegram.localhost",
"cannotMessage": false,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
],
"total": 2
},
"title": "Nick Mills-Barrett",
"type": "single",
"unreadCount": 2,
"isArchived": false,
"isMuted": true,
"isPinned": false,
"lastActivity": "2025-08-31T16:45:10.123Z",
"lastReadMessageSortKey": 449706228480,
"localChatID": "1229721"
}
},
"hasMore": true,
"items": [
{
"id": "1343993",
"accountID": "local-signal_ba_7N74FrU29pxij_TnqfxeUHj53FY",
"chatID": "!signal_adamvy:local-signal.localhost",
"senderID": "@adamvy:local-signal.localhost",
"sortKey": "sortKey",
"timestamp": "2025-08-28T11:04:29.621Z",
"attachments": [
{
"type": "unknown",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL"
}
],
"isSender": false,
"isUnread": false,
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"senderName": "Adam Van Ymeren",
"text": "Hey, can we reschedule our meeting to 3pm?"
},
{
"id": "1343994",
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"chatID": "!telegram_nick:local-telegram.localhost",
"senderID": "@nick:local-telegram.localhost",
"sortKey": "sortKey",
"timestamp": "2025-08-28T14:22:15.432Z",
"attachments": [
{
"type": "unknown",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL"
}
],
"isSender": false,
"isUnread": true,
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"senderName": "Nick Mills-Barrett",
"text": "The deployment is complete, everything looks good"
}
],
"newestCursor": null,
"oldestCursor": "1756379069621"
}