Skip to main content
Use the story repository to create image or video stories for a target. The examples below use community targets, optional metadata, and an optional hyperlink story item. Story creation is optimistic on the SDKs that maintain local story state. Watch the returned story or active story collection for sync state changes such as syncing, synced, or failed.

Parameters

For TypeScript, append the file under the files key. The SDK throws if the FormData object has no files entry.

Create image story

Create an image story from a local image file, target, and optional metadata or hyperlink items.

Create video story

Create a video story from a local video file, target, and optional metadata or hyperlink items.
Story hyperlink items contain:

Get Stories

Observe created stories and sync state.

Story Impressions

Mark synced stories as seen and track link clicks.