Skip to main content
GET
/
streams
/
{stream}
/
records
/
tail
Check the tail.
curl --request GET \
  --url https://{basin}.b.s2.dev/v1/streams/{stream}/records/tail \
  --header 'Authorization: Bearer <token>'
{
  "tail": {
    "seq_num": 1,
    "timestamp": 1
  }
}

Documentation Index

Fetch the complete documentation index at: https://s2.dev/docs/llms.txt

Use this file to discover all available pages before exploring further.

Read interfaces

See when to use reads, read sessions, or check-tail calls.

Stream positions

Head, tail, sequence numbers, and timestamps.

Reading SDK

Check the tail from SDK clients.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Path Parameters

stream
string
required

Stream name.

Required string length: 1 - 512

Response

tail
object
required

Sequence number that will be assigned to the next record on the stream, and timestamp of the last record.