GET
/
api
/
v1
/
chat
/
{agent_id}
/
threads
/
{thread_id}
/
messages
List Chat Messages
curl --request GET \
  --url https://agent-studio.thena.ai/api/v1/chat/{agent_id}/threads/{thread_id}/messages \
  --header 'x-api-key: <api-key>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "content": "<string>",
    "content_html": "<string>",
    "role": "<string>",
    "tool_calls": [
      {
        "tool_name": "<string>",
        "arguments": {},
        "result": {},
        "error": "<string>",
        "start_time": "2023-11-07T05:31:56Z",
        "end_time": "2023-11-07T05:31:56Z"
      }
    ],
    "attachments": [
      {}
    ],
    "metadata": {},
    "created_at": "2023-11-07T05:31:56Z",
    "feedback": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "human_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "ai_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "flow_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "feedback_type": "<string>",
      "issue_type": "<string>",
      "comment": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  }
]

Authorizations

x-api-key
string
header
required

Path Parameters

agent_id
string<uuid> | null
required
thread_id
string<uuid>
required

ID of the chat thread

Query Parameters

limit
integer
default:50

Number of messages to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of messages to skip

Required range: x >= 0
filter_suggestions
boolean
default:false

Filter out suggestions from message content

Response

200
application/json

Successful Response

The response is of type ChatMessage · object[].