Thread Messages
List Messages
Path Parameters
Workspace ID
App ID
Namespace ID
Thread ID
Query Parameters
If true, oldest first. If false, newest first.
trueMaximum number of items to return (1-200)
501 <= value <= 200Cursor for pagination (from previous response's next_cursor)
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/threads/string/messages"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"messages": [
{
"message_id": "string",
"thread_id": "string",
"workspace_id": "string",
"app_id": "string",
"namespace_id": "string",
"role": "system",
"content": "string",
"source": "user_input",
"execution_id": "string",
"augmentation_id": "string",
"endpoint_id": "string",
"model": "string",
"token_count": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tool_call_id": "string",
"tool_calls": [
{}
],
"tool_name": "string",
"artifacts": [
{}
],
"metadata": {},
"parent_message_id": "string",
"created_at": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Message
Path Parameters
Workspace ID
App ID
Namespace ID
Thread ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/threads/string/messages" \ -H "Content-Type: application/json" \ -d '{ "workspace_id": "string", "app_id": "string", "namespace_id": "string", "thread_id": "string", "role": "system", "content": "string" }'{
"message_id": "string",
"thread_id": "string",
"workspace_id": "string",
"app_id": "string",
"namespace_id": "string",
"role": "system",
"content": "string",
"source": "user_input",
"execution_id": "string",
"augmentation_id": "string",
"endpoint_id": "string",
"model": "string",
"token_count": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tool_call_id": "string",
"tool_calls": [
{}
],
"tool_name": "string",
"artifacts": [
{}
],
"metadata": {},
"parent_message_id": "string",
"created_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Clear Thread Messages
Path Parameters
Workspace ID
App ID
Namespace ID
Thread ID
Header Parameters
Response Body
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/threads/string/messages"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Get Conversation Context
Path Parameters
Workspace ID
App ID
Namespace ID
Thread ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/threads/string/messages/context" \ -H "Content-Type: application/json" \ -d '{ "workspace_id": "string", "app_id": "string", "namespace_id": "string", "thread_id": "string" }'{
"messages": [
{}
],
"total_tokens": 0,
"message_count": 0,
"truncated": false
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Delete Message
Path Parameters
Workspace ID
App ID
Namespace ID
Thread ID
Message ID
Query Parameters
Message timestamp (ISO format)
Header Parameters
Response Body
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/workspaces/string/apps/string/namespaces/string/threads/string/messages/string?timestamp=string"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}List Messages Without App
Path Parameters
Workspace ID
Namespace ID
Thread ID
Query Parameters
If true, oldest first. If false, newest first.
trueMaximum number of items to return (1-200)
501 <= value <= 200Cursor for pagination (from previous response's next_cursor)
Header Parameters
Response Body
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/workspaces/string/namespaces/string/threads/string/messages"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"messages": [
{
"message_id": "string",
"thread_id": "string",
"workspace_id": "string",
"app_id": "string",
"namespace_id": "string",
"role": "system",
"content": "string",
"source": "user_input",
"execution_id": "string",
"augmentation_id": "string",
"endpoint_id": "string",
"model": "string",
"token_count": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tool_call_id": "string",
"tool_calls": [
{}
],
"tool_name": "string",
"artifacts": [
{}
],
"metadata": {},
"parent_message_id": "string",
"created_at": "string"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Create Message Without App
Path Parameters
Workspace ID
Namespace ID
Thread ID
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/workspaces/string/namespaces/string/threads/string/messages" \ -H "Content-Type: application/json" \ -d '{ "workspace_id": "string", "app_id": "string", "namespace_id": "string", "thread_id": "string", "role": "system", "content": "string" }'{
"message_id": "string",
"thread_id": "string",
"workspace_id": "string",
"app_id": "string",
"namespace_id": "string",
"role": "system",
"content": "string",
"source": "user_input",
"execution_id": "string",
"augmentation_id": "string",
"endpoint_id": "string",
"model": "string",
"token_count": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"tool_call_id": "string",
"tool_calls": [
{}
],
"tool_name": "string",
"artifacts": [
{}
],
"metadata": {},
"parent_message_id": "string",
"created_at": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}