Skip to main content

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.

Basins are containers for streams, similar to buckets in object storage. Each basin belongs to an account and has its own configuration for default stream settings, which will be used when creating new streams unless explicitly overridden.
// List basins
const basins = await client.basins.list();

// Create a basin
await client.basins.create({ basin: "my-events" });

// Get configuration
const config = await client.basins.getConfig({ basin: "my-events" });

// Delete
await client.basins.delete({ basin: "my-events" });
See basin configuration for details on available options.