List Messages
Guide to listing Messages for a Chat with the Fetch Hive API.
Retrieve messages for a specific chat
Authorizations
Path parameters
agent_idstringRequired
Agent token
chat_idstringRequired
Chat token
Query parameters
pageintegerOptional
Page number for pagination
per_pageintegerOptional
Number of items per page
Responses
200
Successful response
application/json
default
Error
application/json
get
GET /v1/agents/{agent_id}/chats/{chat_id}/messages HTTP/1.1
Host: api.fetchhive.com
Authorization: YOUR_API_KEY
Accept: */*
{
"messages": [
{
"id": 1,
"content": "text",
"role": "user",
"sent_at": "2025-06-26T17:08:43.449Z",
"token": "text",
"tools": [
{
"id": 1,
"name": "text",
"content": "text",
"status": "text"
}
]
}
]
}
Last updated
Was this helpful?