Create a message with explicit chatId using API key authentication. MessageIndex is auto-calculated if not provided. Requires CHAT scope.
Enter your LeanMCP API key
Chat ID this message belongs to (UUID)
"c1a83d84-7154-464c-bd19-a9f10e0a067f"
Role of the message sender
system, assistant, user Message content/text
Pre-generated message ID (UUID). Auto-generated if not provided
"abc123-def456-789-ghi-012345678901"
Order of message in chat (0-based). Auto-calculated if not provided
x >= 00
Additional metadata for the message
Array of file IDs to associate with this message
[
"f1a83d84-7154-464c-bd19-a9f10e0a067f",
"f2b94e95-8265-575d-ce2a-b0f21f1b178g"
]Message created successfully
Unique message identifier (UUID)
Chat ID this message belongs to (UUID)
"c1a83d84-7154-464c-bd19-a9f10e0a067f"
User ID who owns this message
Role of the message sender
system, assistant, user Message content/text
Order of message in the chat (0-based)
x >= 0Timestamp when message was created
Timestamp when message was last updated
Additional metadata for the message