Hanzo AI

Create read — POST /v1/team/inbox/{id}/read

Marks one of the caller's notifications read and answers it.

POST /v1/team/inbox/{id}/read

Addresshttps://api.hanzo.ai/v1/team/inbox/{id}/read
MethodPOST
Operationpost_team_inbox_by_id_read
AuthAuthorization: Bearer $HANZO_API_KEY

Marks one of the caller's notifications read and answers it. Another person's notification is a 404, as one that does not exist is.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the notification, from the path.
idbodystring—ID is the notification, from the path.
spacebodystring—Space is the space uuid it was filed in.

Response

StatusBodyMeaning
200team.teamInboxItemok
defaultproblem-detailsrefused

200 body — 31 fields.

FieldInTypeAlwaysDescription
archivedbodyboolean—Archived reports that the caller archived it.
createdOnbodyinteger (int64)—CreatedOn is when it was filed, unix milliseconds.
docbodystring—Doc is the document it is about, when it is about a document.
idbodystring—ID is the notification's own id — what read and archive address.
messagebodyteam.teamMessage—
message.authorbodystring—Author is the team account uuid that wrote it.
message.createdOnbodyinteger (int64)—CreatedOn is unix MILLIseconds, which is what the platform stamps.
message.docbodystring—Doc is the document this message is a comment on.
message.editedOnbodyinteger (int64)—EditedOn is when the author last edited the message, unix milliseconds.
message.filesbodyteam.teamFile[]—Files are the files attached to the message.
message.files[].filebodystring—File is the blob id, readable at GET /v1/team/files/{space}/{name}?file={file}.
message.files[].idbodystring—ID is the attachment document's own id.
message.files[].namebodystring—Name is the file's name as the person uploaded it.
message.files[].sizebodyinteger (int64)—Size is the file's length in bytes, as the uploader stated it.
message.files[].typebodystring—Type is the media type the uploader declared.
message.idbodystring—ID is the message document's own id.
message.lastReplybodyinteger (int64)—LastReply is when the thread was last answered, unix milliseconds.
message.mentionsbodystring[]—Mentions are the account uuids the message @-mentions — exactly the people notify.go told they were mentioned.
message.reactionsbodyteam.teamReaction[]—Reactions are the emoji people reacted with, one entry per emoji, in the order each emoji was first used.
message.reactions[].accountsbodystring[]—Accounts are the account uuids that reacted with it, earliest first.
message.reactions[].countbodyinteger (int64)—Count is how many people reacted with it.
message.reactions[].emojibodystring—Emoji is the reaction itself, as the person picked it.
message.repliesbodyinteger (int64)—Replies is how many replies the message's thread holds.
message.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.
message.textbodystring—Text is the message as PLAIN TEXT.
message.threadbodystring—Thread is the message this one replies to.
readbodyboolean—Read reports that the caller has seen it.
reasonbodystring—Reason is why it was filed: "mention", "dm" (a direct message), "reply" (in a thread the caller is in), "comment" (on something the caller follows), "assigned", or "other".
roombodystring—Room is the room it is about, when it is about a room.
spacebodystring—Space is the space uuid it was filed in.
threadbodystring—Thread is the message whose thread it is about, for a reply.

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