curl \
-X POST https://api.storydoc.com/v2/versions \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"daysToExpire":30,"senderEmail":"you@domain.com","data":{"title":"Prospect name","first_name":"John","last_name":"Doe","company":"ACME corporation","date":"Jan 1st 2020","link1":"https://www.storydoc.com/integrations","link2":"https://www.storydoc.com/our-story","free_text1":"This is a sample text","free_text2":"This is a sample text","title1":"Title text","title2":"Another title text","phone":"408-867-5309","email":"you@domain.com","number1":999,"number2":999,"number3":999,"number4":999,"number5":999,"number6":999}}'
{
"daysToExpire": 30,
"senderEmail": "you@domain.com",
"data": {
"title": "Prospect name",
"first_name": "John",
"last_name": "Doe",
"company": "ACME corporation",
"date": "Jan 1st 2020",
"link1": "https://www.storydoc.com/integrations",
"link2": "https://www.storydoc.com/our-story",
"free_text1": "This is a sample text",
"free_text2": "This is a sample text",
"title1": "Title text",
"title2": "Another title text",
"phone": "408-867-5309",
"email": "you@domain.com",
"number1": 999,
"number2": 999,
"number3": 999,
"number4": 999,
"number5": 999,
"number6": 999
}
}
{
"url": "https://www.storydoc.com/5d7d8922e00d9265/2e91b144-092f-456b-8f2e-0bae9f7f3355/61b1f40a3a86b7a96d0d8ccc?utm_source=storydoc&utm_medium=hp&utm_campaign=testt1&utm_content=00u24mxwu1OOcGQps5d7",
"shortUrl": "https://view.storydoc.com/4GdDGt",
"versionUrl": "https://app.storydoc.com/pages/editor/61b1e50223b713000a41ca74/61b1f40a3a86b7a96d0d8ccc",
"editorUrl": "https://app.storydoc.com/pages/editor/61b1e50223b713000a41ca74/versions/61b1f40a3a86b7a96d0d8ccc"
}
{
"errorId": "string",
"code": 42.0,
"message": "string"
}