Skip to content

Send a note to other sessions in the project (own session token only)

POST
/v1/sessions/{session_id}/notes
curl --request POST \
--url http://127.0.0.1:8080/v1/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/notes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "text": "example", "paths": [ "example" ], "session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

A note goes to exactly one target. With session_id it goes to that session, which must be active and in the same project. With paths it goes to every other active session whose live claims cover any of the paths exactly, which may be none. A note never goes to the sender. Each recipient gets a note notice, and the same text from the same sender folds into one unacked notice. A session sends at most 10 notes a minute.

session_id
required
string format: uuid
Media typeapplication/json
object
text
required

The note, 1 to 1024 bytes of UTF-8. It must not be blank.

string
>= 1 characters
paths
Array<string>
>= 1 items <= 50 items
session_id
string format: uuid

Example generated

{
"text": "example",
"paths": [
"example"
],
"session_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The sessions the note reached.

Media typeapplication/json
object
delivered_to
required
Array<string>
digest

Up to three of the session’s most urgent undelivered notices, one line each, after a “Zentri notices:” header. A last line says how many more wait. Showing a notice here marks it delivered but not acked. Absent when nothing is undelivered or the caller is not the session’s own token.

string

Example generated

{
"delivered_to": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"digest": "example"
}

The request is malformed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The token may not do this.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No such resource in the caller’s org.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The request clashes with current state.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

A rate limit or quota stopped the request. Retry-After gives seconds to wait.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}
Retry-After
integer