Create Message
This API endpoint creates a Message in a Thread using the POST
method.
Body
Role used to send a Message (e.g., “user” or “assistant”).
A Message to be posted to a Thread.
Response
Unique identifier for the created message.
ID of the assistant, if applicable.
Any attachments associated with the message.
Timestamp when the message was completed.
Content of the message, including text and annotations.
Timestamp when the message was created.
Timestamp when the message became incomplete, if applicable.
Details on why the message was incomplete.
Additional metadata about the message.
Type of the object.
The role that generated the message.
Run ID associated with the message.
Status of the message.
ID of the thread the message belongs to.
Authorization
A valid API key must be passed in the Authorization
header:
Generate your API key here.
Path Parameters
Id of the Thread to post the message to.