Hanzo AI
OpenapiTeam

Create messages

Says one thing in a room, as the caller. The write goes through the SAME applyTx path the Team client's own messages take and is broadcast to every…

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

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

Says one thing in a room, as the caller.

The write goes through the SAME applyTx path the Team client's own messages take and is broadcast to every connected client of the space, so a message sent here appears live in an open room rather than on the next reload. It answers the message as the store now HOLDS it.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the room to say it in, from the path.
idbodystringID is the room to say it in, from the path.
spacebodystringSpace names the space holding the room.
textbodystringText is what to say, as plain text.

Response

StatusBodyMeaning
201team.teamMessagecreated
defaultproblem-detailsrefused

201 body — 5 fields.

FieldInTypeAlwaysDescription
authorbodystringAuthor is the team account uuid that wrote it.
createdOnbodyinteger (int64)CreatedOn is unix MILLIseconds, which is what the platform stamps.
idbodystringID is the message document's own id.
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.
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 create <id>

Team API · All Hanzo APIs · Interactive reference

How is this guide?

On this page