Stream Metadata

Streams are created automatically by adding events to them, but you can "create" an empty stream with metadata.

post
Create Stream with Metadata

http://api.sentenai.com/streams/<stream-name>/meta
Request
Response
Path Parameters
required
string
Name of the stream to create and add metadata to
Headers
Content-Type
required
string
application/json
Auth-Key
required
string
Your Sentenai API key
Body Parameters
optional
object
Meta data object to be posted
200: OK

get
Get Stream Metadata

https://api.sentenai.com/streams/<stream-name>/meta
Request
Response
Path Parameters
stream-name
required
string
The stream name to get metadata from
Headers
Auth-Key
required
string
Your Sentenai API key
200: OK

patch
Modify Stream Metadata

https://api.sentenai.com/streams/<stream-name>/meta
Including a new value for an existing metadata key will update the key
Request
Response
Path Parameters
stream-name
required
string
Stream to update metadata for
Headers
Content-Type
required
string
application/json
Auth-Key
required
string
Your Sentenai API key
Body Parameters
required
object
Object with new values for existing metadata keys
200: OK

put
Overwrite Stream Metadata

https://api.sentenai.com/streams/<stream-name>/meta
Request
Response
Path Parameters
stream-name
required
string
Stream to overwrite metadata for
200: OK