Skip to content

Send a message to a session by address

The OpenAPI spec (JSON)Licence, versions and sign-in

POST
/api/v1/msg
curl --request POST \
--url https://deck.example.com/api/v1/msg \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "text": "example", "to": "example" }'

quietdeck msg send --to "<tab>[@<node>]" "<text>".

Media typeapplication/json

quietdeck msg send --to "<tab>[@<node>]" "<text>".

object
text
required
string
>= 1 characters <= 100000 characters
to
required

tab or tab@node. The node is optional when the tab name is unique across nodes.

string
>= 1 characters <= 300 characters

Example generated

{
"text": "example",
"to": "example"
}

Answers for deliveries and searches.

Media typeapplication/json

Answers for deliveries and searches.

One of:

Handed to the session’s own messaging socket.

string
Allowed value: socket

Example

socket

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}