Retrieve a message
messages.retrieve(strmessage_id, MessageRetrieveParams**kwargs) -> Message
GET/v1/chats/{chatID}/messages/{messageID}
Retrieve a message by final message ID, pendingMessageID, or Matrix event ID. Chat ID may be a Beeper chat ID or local chat ID.
Retrieve a message
import os
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
)
message = client.messages.retrieve(
message_id="1343993",
chat_id="!NCdzlIaMjZUmvmvyHU:beeper.com",
)
print(message.id){
"id": "241392",
"accountID": "discordgo",
"chatID": "!discord_109876543210987654:beeper.com",
"senderID": "@discord_221590782384013314:beeper.com",
"sortKey": "455171049984",
"timestamp": "2026-05-05T20:20:12.497Z",
"attachments": [
{
"type": "unknown",
"id": "id",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL",
"transcription": {
"engine": "engine",
"transcription": "transcription",
"language": "language"
}
}
],
"editedTimestamp": "2025-08-31T23:30:12.520Z",
"isDeleted": false,
"isHidden": true,
"isSender": false,
"isUnread": false,
"linkedMessageID": "1343993",
"links": [
{
"title": "title",
"url": "url",
"favicon": "favicon",
"img": "img",
"imgSize": {
"height": 0,
"width": 0
},
"originalURL": "originalURL",
"summary": "summary"
}
],
"mentions": [
"@discord_337451892017545216:beeper.com"
],
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"seen": true,
"senderName": "Kishan Bagaria",
"sendStatus": {
"status": "SUCCESS",
"timestamp": "2025-08-31T23:30:12.520Z",
"deliveredToUsers": [
"string"
],
"internalError": "internalError",
"message": "message",
"reason": "reason"
},
"text": "The OAuth fix is deployed. Can you verify the desktop flow?",
"type": "TEXT"
}Returns Examples
{
"id": "241392",
"accountID": "discordgo",
"chatID": "!discord_109876543210987654:beeper.com",
"senderID": "@discord_221590782384013314:beeper.com",
"sortKey": "455171049984",
"timestamp": "2026-05-05T20:20:12.497Z",
"attachments": [
{
"type": "unknown",
"id": "id",
"duration": 0,
"fileName": "fileName",
"fileSize": 0,
"isGif": true,
"isSticker": true,
"isVoiceNote": true,
"mimeType": "mimeType",
"posterImg": "posterImg",
"size": {
"height": 0,
"width": 0
},
"srcURL": "srcURL",
"transcription": {
"engine": "engine",
"transcription": "transcription",
"language": "language"
}
}
],
"editedTimestamp": "2025-08-31T23:30:12.520Z",
"isDeleted": false,
"isHidden": true,
"isSender": false,
"isUnread": false,
"linkedMessageID": "1343993",
"links": [
{
"title": "title",
"url": "url",
"favicon": "favicon",
"img": "img",
"imgSize": {
"height": 0,
"width": 0
},
"originalURL": "originalURL",
"summary": "summary"
}
],
"mentions": [
"@discord_337451892017545216:beeper.com"
],
"reactions": [
{
"id": "id",
"participantID": "participantID",
"reactionKey": "reactionKey",
"emoji": true,
"imgURL": "imgURL"
}
],
"seen": true,
"senderName": "Kishan Bagaria",
"sendStatus": {
"status": "SUCCESS",
"timestamp": "2025-08-31T23:30:12.520Z",
"deliveredToUsers": [
"string"
],
"internalError": "internalError",
"message": "message",
"reason": "reason"
},
"text": "The OAuth fix is deployed. Can you verify the desktop flow?",
"type": "TEXT"
}