Skip to main content
Fetch Message
Returns a single ChatMessage by ID, fully populated with user, quotedMessage, files (images with their variants), reactionCounts, and userReactions. The caller must be a member of the conversation. A deleted or removed message is returned as a placeholder, not a 404; a removed message is returned in full to its author. The same goes for quotedMessage. See Deleted and removed messages. In a space chat, the caller must also be an active member of the chat’s space and able to see it (visibility). Anyone else, including a pending, rejected or banned member and someone who left or was removed from the space, gets 403 chat/not-a-member, as a non-member does, even while they still hold a conversation membership. Deleting their own messages, leaving the conversation and muting it stay allowed: they need the conversation membership and sight of the space, not an active space membership.

Path Parameters

string
required
The ID of the conversation.
string
required
The ID of the message to fetch.

Query Parameters

string
Extra fields to include, as a comma-separated value or repeated params. The only value is:The message’s files are always returned, so files is not an include here. Matching ignores case. An unknown value, files included, returns 400 chat/invalid-query.
string
Service key only, and required with one: the user this request acts as. Must be a member of the conversation. The response is what that user’s own access token would get, moderation details (moderationReason, moderatedById, moderatedByType) included only where that user may see them. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Space-scoped reputation

This endpoint has a space in context, so it accepts the opt-in reputation params. They add a spaceReputation field to the message sender’s user, alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model for the full contract.

Response

Returns a ChatMessage with all populated fields including reactionCounts and userReactions for the requesting user.

Error Responses

A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
A service key sent no actingUserId.
Returned for an unknown include value, including files.
Also returned to a former member (who left, was removed or was banned) for a message sent after they left.