OpenAIOpenAI API
GET/threads/{thread_id}/messages
Read list Messages.
Contract-preserving GET Endpoint for list Messages 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
listMessages- Server
https://api.openai.com/v1- Authentication
- ApiKeyAuth, AdminApiKeyAuth
Request parameters
thread_id
pathstringrequired
thread id value in the OpenAI API contract.
limit
queryinteger
limit value in the OpenAI API contract.
order
querystring
order value in the OpenAI API contract.
after
querystring
after value in the OpenAI API contract.
before
querystring
before value in the OpenAI API contract.
run_id
querystring
run id value in the OpenAI API contract.
Responses
200
ListMessagesResponseapplication/json
Successful supplier response.
Properties: datafirst_idhas_morelast_idobject
429
ErrorResponseapplication/json
Supplier response with HTTP status 429.
Properties: error
{
"data": {
"content": [],
"created_at": 0
},
"first_id": "msg_abc123",
"has_more": false,
"last_id": "msg_abc123",
"object": "list"
}