Retrieve a message
client.message.retrieve(stringid, RequestOptionsoptions?): MessageRetrieveResponse { id, accessLevel, createdAt, 6 more }
GET/v1/messages/{id}
Retrieves a single message by its ID. The message text is redacted based on the caller-specific channel-visibility resolution, and the response includes a read-only accessLevel. Attachment file IDs are exposed via relationships.$attachment (same shape as email attachments); fetch their contents with GET /v1/files/{id}/url.
Required scope: messages:read
Rate limit category: Read
Retrieve a message
import Lightfield from 'lightfield';
const client = new Lightfield({
apiKey: 'My API Key',
});
const messageRetrieveResponse = await client.message.retrieve('id');
console.log(messageRetrieveResponse.id);{
"id": "msg_cm0abc456def789",
"accessLevel": "FULL",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$text": {
"value": "Thanks — pushed the fix, should be live shortly.",
"valueType": "TEXT"
},
"$sentAt": {
"value": "2026-05-01T08:59:30.000Z",
"valueType": "DATETIME"
},
"$provider": {
"value": "SLACK",
"valueType": "TEXT"
},
"$providerThreadId": {
"value": "1714553970.123456",
"valueType": "TEXT"
},
"$editedAt": {
"value": "string",
"valueType": "DATETIME"
}
},
"httpLink": null,
"objectType": "message",
"relationships": {
"$channel": {
"cardinality": "has_one",
"objectType": "channel",
"values": [
"chn_cm2def456ghi789"
]
},
"$attachment": {
"cardinality": "has_many",
"objectType": "file",
"values": [
"fil_cm3attach789xyz012"
]
}
},
"updatedAt": "2026-05-01T09:00:00.000Z",
"externalId": "externalId"
}Returns Examples
{
"id": "msg_cm0abc456def789",
"accessLevel": "FULL",
"createdAt": "2026-05-01T09:00:00.000Z",
"fields": {
"$text": {
"value": "Thanks — pushed the fix, should be live shortly.",
"valueType": "TEXT"
},
"$sentAt": {
"value": "2026-05-01T08:59:30.000Z",
"valueType": "DATETIME"
},
"$provider": {
"value": "SLACK",
"valueType": "TEXT"
},
"$providerThreadId": {
"value": "1714553970.123456",
"valueType": "TEXT"
},
"$editedAt": {
"value": "string",
"valueType": "DATETIME"
}
},
"httpLink": null,
"objectType": "message",
"relationships": {
"$channel": {
"cardinality": "has_one",
"objectType": "channel",
"values": [
"chn_cm2def456ghi789"
]
},
"$attachment": {
"cardinality": "has_many",
"objectType": "file",
"values": [
"fil_cm3attach789xyz012"
]
}
},
"updatedAt": "2026-05-01T09:00:00.000Z",
"externalId": "externalId"
}