cURL
curl --request POST \ --url https://api.example.com/basins \ --header 'Content-Type: application/json' \ --data ' { "basin": "<string>", "config": { "default_stream_config": { "storage_class": "<string>", "retention_policy": {}, "timestamping": { "mode": "<string>", "uncapped": true }, "delete_on_empty": { "min_age_secs": 123 } }, "create_stream_on_append": true, "create_stream_on_read": true }, "scope": "<string>" } '
{ "name": "<string>", "scope": "<string>", "state": "<string>" }
Documentation IndexFetch the complete documentation index at: https://mintlify.com/s2-streamstore/s2/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://mintlify.com/s2-streamstore/s2/llms.txt
Use this file to discover all available pages before exploring further.
Show BasinConfig
Show StreamConfig
standard
express
{"age": <seconds>}
{"infinite": {}}
Show TimestampingConfig
client-prefer
client-require
arrival
Show DeleteOnEmptyConfig
aws:us-east-1
curl -X POST "https://aws.s2.dev/v1/basins" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "basin": "my-new-basin", "config": { "default_stream_config": { "storage_class": "standard", "retention_policy": {"age": 604800} }, "create_stream_on_append": true }, "scope": "aws:us-east-1" }'
{ "name": "my-new-basin", "scope": "aws:us-east-1", "state": "creating" }