Free Support Forum -

Convert RTF to PDF using Aspose.Words REST API throwing 400(Bad Request)


We’ve been using your service to convert RTF to PDF and have been experiencing some problems with our API calls resulting in bad requests:

PUT request for “” resulted in 400 (Bad Request); invoking error handler

Is there anything you can see on your end that might explain this issue?


Please note Aspose.Words Cloud introduced API Version V4.0 since 19.4 version. And API Version 4.0 uses JSON WEB Token(JWT) authentication instead of OAuth2. And another noticeable change is the introduction of storage APIs in Aspose.Words Cloud.

# First get Access Token
# Get Customer Key and Customer ID from
curl -X POST "" 
-d "grant_type=client_credentials&client_id=xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

# Convert RTF to PDF
curl -X GET "" 
-H "accept: application/octet-stream" 
-H "Authorization: Bearer [Access_Token]" 
-H "x-aspose-client: Containerize.Swagger"
--output C:/Temp/Test.pdf