v6
latestSwagger 2.02026-07-1340109191.2 KBCreates a new message on a specified thread.
Path parameters
The ID of the thread to create the new message on.
Request body
The possible values for roles attributed to messages in a thread.
The textual content of the initial message. Currently, robust input including images and annotated text may only be provided via a separate call to the create message API.
A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.
Response
A representation of the new message.
The identifier, which can be referenced in API endpoints.
The object type, which is always 'thread.message'.
The Unix timestamp, in seconds, representing when this object was created.
The ID of the thread that this message belongs to.
The possible execution status values for a thread message.
The Unix timestamp (in seconds) for when the message was completed.
The Unix timestamp (in seconds) for when the message was marked as incomplete.
The possible values for roles attributed to messages in a thread.
If applicable, the ID of the assistant that authored this message.
If applicable, the ID of the run associated with the authoring of this message.
A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.