We're sorry GroupDocsCloud doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.cloud

How to Merge Multiple MS Word Documents in cURL without Losing Formatting

I am trying to use cURL api in postman but it is not working. Each time I send request to server using Json format it says file not found.

image.png (7.6 KB)

I have internal storage in dashboard. Storage name is - eSign and then I have docs file there.

Can anyone please help me fix the error


Please check the following sample code to merge multiple MS Word documents in cURL. You will notice that GroupDocs.Merger Cloud API provides two separate parameters for file path(folder/file.ext) and storage name; FilePath and StorageName. So you need to pass storage name and file path in respective parameters to resolve the issue.

Steps to Combine Multiple Word Files into One Word File

  1. Register with aspose.cloud to get credentials
  2. Get JSON Web Token(JWT) to authorize your request
  3. Upload your input documents to cloud storage
  4. Merge Word Documents using Join API method of GroupDocs.Merger Cloud

Code to Combine Multiple Word Files into One Word File

* First get JSON Web Token
* Please get your Client Id and Client Secret from https://dashboard.groupdocs.cloud/applications. Kindly place Client Id in "client_id" and Client Secret in "client_secret" argument.
curl -v "https://api.groupdocs.cloud/connect/token" \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"

* cURL example to join several documents into one
curl -v "https://api.groupdocs.cloud/v1.0/merger/join" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer [JWT Access Token]"
-d "{
                "FilePath": "document1.docx",
		"StorageName": "MyDb_Storage"
                "FilePath": "document2.docx"
		"StorageName": "MyDb_Storage"
    "OutputPath': "joined.docx"