Generated by API Evangelist
Written by API Evangelist tooling for S2 Dev's API. It is a proposal applied on top of the contract, not a document S2 Dev publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for S2, the durable streams Records API
version: 1.0.0
extends: openapi/s2-dev-records-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-25'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/streams/{stream}/records'].get
update:
x-apievangelist-phrasing:
intent: Read records from a stream
effect: read
questions:
- How do I read records from a durable stream?
- Can I read a stream's records from a sequence number or timestamp?
- Is there a way to read records until a certain timestamp?
instructions:
- text: Read records from stream {stream}.
slots:
stream: path.stream
- text: Read {count} records from {stream} starting at sequence {seq_num}.
slots:
count: query.count
stream: path.stream
seq_num: query.seq_num
- text: Read records from {stream} from timestamp {timestamp} until {until}.
slots:
stream: path.stream
timestamp: query.timestamp
until: query.until
method: generated
generated: '2026-11-25'
- target: $.paths['/streams/{stream}/records'].post
update:
x-apievangelist-phrasing:
intent: Append records to a stream
effect: write
questions:
- How do I append records to a durable stream?
- Can I append records to a stream with an encryption key?
- What is the maximum number of records I can append in one batch?
instructions:
- text: Append records {records} to stream {stream}.
slots:
records: requestBody.records
stream: path.stream
- text: Append {records} to {stream} using encryption key {key}.
slots:
records: requestBody.records
stream: path.stream
key: header.s2-encryption-key
method: generated
generated: '2026-11-25'
- target: $.paths['/streams/{stream}/records/tail'].get
update:
x-apievangelist-phrasing:
intent: Check a stream's tail sequence number
effect: read
questions:
- What is the current tail sequence number of a stream?
- Can I check the end of a durable stream without reading records?
instructions:
- text: Check the tail of stream {stream}.
slots:
stream: path.stream
- text: Get the next sequence number for {stream}.
slots:
stream: path.stream
method: generated
generated: '2026-11-25'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.