versions
Create a new story version
Creates a personalized version of an existing story template with custom data. Each version gets a unique URL and can be tracked independently.
post/v2/versions
Request
- Base URLhttps://api.storydoc.com
- AuthHTTP bearer
Request body
Example request
{
"storyId": "61b1e50223b713000a41ca74",
"senderEmail": "john.doe@company.com",
"daysToExpire": 30,
"data": {
"title": "Sales Presentation",
"company": "ACME Corp",
"custom_field_1": "Any value",
"custom_field_2": 12345,
"logo": {
"domain": "acme.com",
"theme": "dark"
},
"partner_logo": {
"domain": "microsoft.com",
"theme": "light"
}
}
}Response
Version created successfully
Example response
{
"url": "https://www.storydoc.com/5d7d8922e00d9265/2e91b144-092f-456b-8f2e-0bae9f7f3355",
"shortUrl": "https://view.storydoc.com/4GdDGt",
"editorUrl": "https://app.storydoc.com/pages/editor/61b1e50223b713000a41ca74/61b1f40a3a86b7a96d0d8ccc",
"versionUrl": "https://app.storydoc.com/pages/editor/61b1e50223b713000a41ca74/versions/61b1f40a3a86b7a96d0d8ccc",
"versionId": "61b1f40a3a86b7a96d0d8ccc"
}Changes
No recorded changes to this operation across all 1 revision of this API.