Send a message to a session by address
POST
/api/v1/msg
const url = 'https://deck.example.com/api/v1/msg';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"text":"example","to":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”quietdeck msg send --to "<tab>[@<node>]" "<text>".
Media typeapplication/json
quietdeck msg send --to "<tab>[@<node>]" "<text>".
object
text
required
string
to
required
tab or tab@node. The node is optional when the tab name is unique across nodes.
string
Example generated
{ "text": "example", "to": "example"}Responses
Section titled “Responses”Answers for deliveries and searches.
Media typeapplication/json
Answers for deliveries and searches.
One of:
Handed to the session’s own messaging socket.
string
Sent through the orchestrator (herdr: herdr agent prompt).
string
Handed to the runner’s headless agent (Quietdeck solo), which reads it in the turn it starts or its next one.
string
Example
socketdefault
Section titled “default”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"}