Skip to main content
POST
Create a segment
Creates a new segment. The returned id can be passed as segmentId in a pairs[] entry on POST /api/v2/streams or PATCH /api/v2/streams/. If you’d rather author the segment inline as part of stream creation, pass an inline segment: {...} object in the pair instead.

Body

Example

Response

Errors

Auth

Bearer or session cookie.