Skip to main content
Listing a thread returns messages in sequence. Posting a message does not return the assistant reply — it returns 202 and a run. Accepted:
Listed:
If a run on the thread is awaiting_input, the next POST is the answer and the run resumes. Otherwise a new run starts.

Attributes

uuid
Unique identifier for the message. Present on list, not on the 202.
enum
user, assistant, or system.
string
Message text.
uuid
Run that produced or accepted this message.
integer
Position on the thread.
timestamp
When the message was written.
uuid
Thread the run belongs to. Present on the 202.
enum
Run state at accept time. See The Run object.

Endpoints