Skip to main content
POST

Path Parameters

string
required
Chat ID where the message will be created

Body Parameters

string
Optional message ID
string
required
Chat ID (must match path parameter)
string
required
Message role (e.g., “user”, “assistant”, “system”)
array
required
Array of message parts
array
Array of attachment IDs (strings)
object
Additional metadata for the message

Response

boolean
Indicates if the message was created successfully
string
Success or error message
object
The created message object