OpenAI/createMessage

Online calls unavailable · details below

OpenAIOpenAI API

POST/threads/{thread_id}/messages

Manage create Message.

Contract-preserving POST Endpoint for create Message in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.

All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.

Request

operationId
createMessage
Server
https://api.openai.com/v1
Authentication
ApiKeyAuth, AdminApiKeyAuth

Request parameters

thread_id

pathstringrequired

thread id value in the OpenAI API contract.

Request body

CreateMessageRequestrequired

Content-Type: application/json

Properties: attachmentscontentmetadatarole

Responses

200

MessageObjectapplication/json

Successful supplier response.

Properties: assistant_idattachmentscompleted_atcontentcreated_atidincomplete_atincomplete_detailsmetadataobjectrolerun_idstatusthread_id

429

ErrorResponseapplication/json

Supplier response with HTTP status 429.

Properties: error

{
  "content": [],
  "created_at": 0
}