Append slides from pasted HTML

Parses an HTML fragment, splits it into slide-sized chunks with speech text, and appends the result to an existing video — the "paste rich text into the editor" path.

Behaviour worth knowing:

  • Slides are appended, or inserted after activeSlideId when given. Existing slides are kept, except that a lone empty starter slide is replaced.
  • The language of the video's first slide is reused for the new slides; long-slide support depends on the plan.
  • The whole updated video is returned with signed asset URLs.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/story/paste/66a1f0c2b7cd13032a9c6002' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "<h1>Quarterly update</h1><p>Revenue grew 12% year over year.</p>"
}'
Path Params
string
required

Video id (24-char hex ObjectId).

Body Params
string
required

HTML fragment to convert into slides.

string | integer

Insert the new slides after this slide instead of at the end.

Responses

message explains why.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json