Hanzo AI

List replies

Returns a message's thread, oldest first, each reply with its reactions and files.

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

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

Returns a message's thread, oldest first, each reply with its reactions and files.

Request

2 fields.

FieldInTypeRequiredDescription
idpathstringyesID is the message, from the path.
spacequerystring—Space names the space holding it.

Response

StatusBodyMeaning
200team.teamMessagesok
defaultproblem-detailsrefused

200 body — 22 fields.

FieldInTypeAlwaysDescription
messagesbodyteam.teamMessage[]—Messages are the conversation's, oldest first, at most messageMax of them.
messages[].authorbodystring—Author is the team account uuid that wrote it.
messages[].createdOnbodyinteger (int64)—CreatedOn is unix MILLIseconds, which is what the platform stamps.
messages[].docbodystring—Doc is the document this message is a comment on.
messages[].editedOnbodyinteger (int64)—EditedOn is when the author last edited the message, unix milliseconds.
messages[].filesbodyteam.teamFile[]—Files are the files attached to the message.
messages[].files[].filebodystring—File is the blob id, readable at GET /v1/team/files/{space}/{name}?file={file}.
messages[].files[].idbodystring—ID is the attachment document's own id.
messages[].files[].namebodystring—Name is the file's name as the person uploaded it.
messages[].files[].sizebodyinteger (int64)—Size is the file's length in bytes, as the uploader stated it.
messages[].files[].typebodystring—Type is the media type the uploader declared.
messages[].idbodystring—ID is the message document's own id.
messages[].lastReplybodyinteger (int64)—LastReply is when the thread was last answered, unix milliseconds.
messages[].mentionsbodystring[]—Mentions are the account uuids the message @-mentions — exactly the people notify.go told they were mentioned.
messages[].reactionsbodyteam.teamReaction[]—Reactions are the emoji people reacted with, one entry per emoji, in the order each emoji was first used.
messages[].reactions[].accountsbodystring[]—Accounts are the account uuids that reacted with it, earliest first.
messages[].reactions[].countbodyinteger (int64)—Count is how many people reacted with it.
messages[].reactions[].emojibodystring—Emoji is the reaction itself, as the person picked it.
messages[].repliesbodyinteger (int64)—Replies is how many replies the message's thread holds.
messages[].roombodystring—Room 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[].textbodystring—Text is the message as PLAIN TEXT.
messages[].threadbodystring—Thread is the message this one replies to.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page