Skip to content

Read messages after the caller's last read, or after a message ID

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

GET
/api/v1/messages
curl --request GET \
--url https://deck.example.com/api/v1/messages \
--header 'Authorization: Bearer <token>'
source
string
after

A message ID: read after it without moving the session’s mark. Left out: after the session’s last read.

integer format: int64

A message ID: read after it without moving the session’s mark. Left out: after the session’s last read.

limit
integer format: uint32

quietdeck messages: messages after the caller’s last read (new), or after a message ID.

Media typeapplication/json

quietdeck messages: messages after the caller’s last read (new), or after a message ID.

object
messages
required
Array<object>

A message the deck keeps.

object
body
required
string
channel
required
string
channel_name
required
string
external_id
required
string
id
required
integer format: int64
node
required

The node that read it.

string
received_at
required
string
sender
required
string
sent_at
required
string
source
required
string
more
required

More messages wait after these: ask again.

boolean

Example generated

{
"messages": [
{
"body": "example",
"channel": "example",
"channel_name": "example",
"external_id": "example",
"id": 1,
"node": "example",
"received_at": "example",
"sender": "example",
"sent_at": "example",
"source": "example"
}
],
"more": true
}

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"
}