Skip to main content

Split a Word document into separate files at section breaks

The following example will demonstrate how to split a Word document (.docx, .doc) at section breaks.

You can view the full Swagger documentation here.

Request

curl --location --request POST 'https://word-api.doclabs.cloud/api/v1/DocumentIWantToSplit.docx/split/atsectionbreaks?storageName=MyBucketName' \
--header 'x-api-key: MY_API_KEY'

Response

{
"bucketName": "MyBucketName",
"contentPathNames": [
"FirstDocument.docx",
"SecondDocument.docx",
"ThirdDocument.docx"
]
}