Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sam-shervin/space7/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Sends a new message to the specified space. Messages can contain text content, a media attachment, or both. At least one ofcontent or media must be provided.
Endpoint
Requires authentication
Request
Path parameters
The unique identifier of the space to post the message to.
Body parameters
The request body must be sent asmultipart/form-data.
The text content of the message. Required if no media is attached.
A media file to attach to the message. Accepted types: image, video, audio. Required if no
content is provided.The type of media being uploaded. Accepted values:
"image", "video", "audio". Required when media is provided.At least one of
content or media must be included in the request. Sending a request with neither will result in an error.Response
Returns the createdMessage object.
Unique identifier for the newly created message.
Identifier of the space the message was posted to.
Identifier of the user who sent the message.
Text content of the message.
URL of the uploaded media file, or
null if no media was attached.Type of the attached media, or
null if no media was attached.Number of words in the message content.
Profile information of the message sender.
Array of likes on the message. Will be empty for a newly created message.
Total number of appreciations. Will be
0 for a newly created message.ISO 8601 timestamp of when the message was created.
Example
TypeScript
