Youniton Docs

Messages

Read your conversations and project conversations, and post, edit or delete messages.

#The Messages inbox

GET/conversations
Session (app only)F-MSG-01

Query parameters

filter[kind]array of string
filter[unread]boolean
filter[state]string

One of: active archived · Default: "active"

qstring

Min length 1 · Max length 120

page[size]integer

One of: 10 25 50 100 · Default: 25

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The member's conversations by last activity, with unread counts.application/json
Errors400403404One problem shape

#Start a direct conversation (200 when the pair exists) or create a group

POST/conversations
Session (app only)Idempotency-KeyF-MSG-02

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The existing direct conversation of the pair.application/json
201The new conversation.application/json
Errors403404409422429One problem shape

#One conversation with its channel, roster and permissions

GET/conversations/{conversationId}
Session (app only)F-MSG-01

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The conversation document; the ETag carries the version.application/json
Errors403404One problem shape

#Rename a group

PATCH/conversations/{conversationId}
Session (app only)If-MatchF-MSG-03

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/merge-patch+jsonrequired

Loading the schema…

Responses

200The renamed group.application/json
Errors403404409412422428One problem shape

#Archive a group — read-only from now on

POST/conversations/{conversationId}/archive
Session (app only)Idempotency-KeyIf-MatchF-MSG-03

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The archived group.application/json
Errors403404409412428One problem shape

#Leave a group

POST/conversations/{conversationId}/leave
Session (app only)Idempotency-KeyF-MSG-03

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

204Left; the group is gone from the caller's inbox.

No body.

Errors403404409One problem shape

#A page of messages by sequence (latest page without parameters)

GET/conversations/{conversationId}/messages
Session (app only)F-MSG-05

Path parameters

conversationIdrequiredstring (uuid)

Query parameters

afterinteger

Min 0

beforeinteger

Min 1

limitinteger

Default: 50 · Min 1 · Max 100

periodinteger

A client period number of a project conversation, internal readers only.

Min 1

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Messages ascending by sequence with tombstones and attachment statuses.application/json
Errors400403404One problem shape

#Post a message in a conversation

POST/conversations/{conversationId}/messages
Session (app only)Idempotency-KeyF-MSG-05

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The posted message.application/json
Errors403404409422429One problem shape

#Mute or unmute a conversation for the caller

PUT/conversations/{conversationId}/mute
Session (app only)F-MSG-07

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The caller's read state for the conversation.application/json
Errors403404422One problem shape

#Add members to a group

POST/conversations/{conversationId}/participants
Session (app only)Idempotency-KeyF-MSG-03

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The group with its new roster.application/json
Errors403404409422One problem shape

#Remove a participant from a group — access ends at once

DELETE/conversations/{conversationId}/participants/{memberId}
Session (app only)F-MSG-03

Path parameters

conversationIdrequiredstring (uuid)
memberIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

204Removed.

No body.

Errors403404409One problem shape

#Move the caller's read marker (monotonic)

PUT/conversations/{conversationId}/read
Session (app only)F-MSG-07

Path parameters

conversationIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The caller's read state for the conversation.application/json
Errors403404422One problem shape

#The sidebar badge — conversations with unread messages

GET/conversations/unread-summary
Session (app only)F-MSG-07

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The number of conversations with unread messages, capped, split by kind.application/json
Errors403404One problem shape

#Edit a message inside the edit window

PATCH/messages/{messageId}
Session (app only)If-MatchF-MSG-06

Path parameters

messageIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/merge-patch+jsonrequired

Loading the schema…

Responses

200The edited message.application/json
Errors403404409412422428One problem shape

#Delete a message — the author, the rule's owner or a moderator

DELETE/messages/{messageId}
Session (app only)F-MSG-06

Path parameters

messageIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

204Deleted (or already deleted).

No body.

Errors403404One problem shape

#Search the caller's visible messages

GET/messages/search
Session (app only)F-MSG-10

Query parameters

qrequiredstring

Min length 2 · Max length 120

filter[conversationId]string (uuid)
page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Up to 20 hits, newest first, with excerpts.application/json
Errors400403404422429503One problem shape

#The project's client conversation, created on first use, with its client periods

GET/projects/{projectKey}/conversation
Session (app only)F-MSG-04

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The conversation document with periods, the banner fact and permissions; the ETag carries the version.application/json
Errors403404One problem shape

#Share selected earlier messages with the current client — audited

POST/projects/{projectKey}/conversation/history-shares
Session (app only)Idempotency-KeyF-MSG-04

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The share was recorded.application/json
Errors403404409422One problem shape

#Dry run — the consequence of sharing earlier messages with the current client

POST/projects/{projectKey}/conversation/history-shares/validate
Session (app only)F-MSG-04

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The consequence sentence, the counts and the project's current client version; nothing was written.application/json
Errors403404409422One problem shape

#The tenant's allowed reaction emoji, for every person who may react (internal members and client guests)

GET/reaction-emoji
Session (app only)F-WRK-38

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The mode, the list for only, the catalogue's versions and the per-comment bound; ETag is the Work settings epoch.application/json
Errors403404One problem shape

#Set the tenant's allowed reaction emoji (the Admin; one Save of the mode and the list)

PUT/reaction-emoji
Session (app only)If-MatchF-WRK-38

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The new state; ETag is the new Work settings epoch.application/json
Errors403404412422One problem shape

Was this helpful?