Hanzo AI
OpenapiTeam

List messages

Returns the tail of one room's conversation, oldest first.

GET /v1/team/rooms/{id}/messages

Addresshttps://api.hanzo.ai/v1/team/rooms/{id}/messages
MethodGET
Operationget_team_rooms_by_id_messages
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the tail of one room's conversation, oldest first.

It reads the SAME Chunter documents the transactor serves, so a message typed in the Team client is here with no sync. A room the caller's org does not own answers 404 rather than 403, so a probe learns nothing about what exists.

Request

2 fields.

FieldInTypeRequiredDescription
idpathstringyesID is the room, from the path.
spacequerystringSpace names the space holding the room, and is required for the reason the bind op requires it: a room id is unique within a space and not across the org, so…

Response

StatusBodyMeaning
200team.teamMessagesok
defaultproblem-detailsrefused

200 body — 6 fields.

FieldInTypeAlwaysDescription
messagesbodyteam.teamMessage[]Messages are the room's, oldest first, at most messageMax of them.
messages[].authorbodystringAuthor is the team account uuid that wrote it.
messages[].createdOnbodyinteger (int64)CreatedOn is unix MILLIseconds, which is what the platform stamps.
messages[].idbodystringID is the message document's own id.
messages[].roombodystringRoom is the room it was said in — the same id the room listing answers with, so a caller holding a message can name its room without a second read.
messages[].textbodystringText is the message as PLAIN TEXT. The document stores markup; this is the same plainText reduction the agent responder reads a prompt with, so a caller…

Failure carries the platform error shape — see Errors.

Examples

hanzo team rooms messages get <id>

Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page