Release Notes
- What's new
- Known issues
- Troubleshooting
- License reference
Get Started
Environments
Large Language Models (LLMs)
Webchats
Tutorials
API's reference
- watsonx Orchestrate Developer Edition APIs
Legal notices
Message Threads
List Messages
GET
/
threads
/
{thread_id}
/
messages
Copy
Ask AI
curl --request GET \
--url http://localhost/api/v1/threads/{thread_id}/messages \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"created_by": "<string>",
"created_by_username": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistant": {
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistant_name": "<string>",
"is_default": false
},
"parent_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"content": [
{
"response_type": "conversational_search"
}
],
"mentions": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"document_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"additional_properties": {
"wxa_message": {},
"display_properties": {
"skip_render": false
},
"tool_calls": [
{}
],
"tool_call_id": "<string>",
"tool_name": "<string>"
},
"context": {},
"step_history": [
{}
],
"message_state": {}
}
]
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
Successful Response
The response is of type Message · object[]
.
Copy
Ask AI
curl --request GET \
--url http://localhost/api/v1/threads/{thread_id}/messages \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "<string>",
"created_by": "<string>",
"created_by_username": "<string>",
"created_on": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistant": {
"assistant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistant_name": "<string>",
"is_default": false
},
"parent_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "<string>",
"content": [
{
"response_type": "conversational_search"
}
],
"mentions": [
{
"type": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"document_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"additional_properties": {
"wxa_message": {},
"display_properties": {
"skip_render": false
},
"tool_calls": [
{}
],
"tool_call_id": "<string>",
"tool_name": "<string>"
},
"context": {},
"step_history": [
{}
],
"message_state": {}
}
]
Assistant
Responses are generated using AI and may contain mistakes.