Getting unauthorized wrror while converting html to pdf with newly generated token

Getting following error while uploading html file.
{
“requestId”: “3b35fba3-cbfd-40a2-8ddb-e9f6549c5db9”,
“error”: {
“code”: “authorizationError”,
“message”: “Unauthorized”,
“description”: “Operation Failed. The authorization data is incorrect.”,
“dateTime”: “2025-04-10T18:03:07.1366997Z”,
“innerError”: null
}
}

Even for other apis also it is giving the same error.

I am able to generate new token with the token api and using that.
But still it is giving error.

Hi @Deepali11 it can be as it says. Please check this page Local File Conversion – Aspose.HTML Cloud . It has examples in C# and Javascript on how to upload file and run conversion of programatically uploaded file . Also it has a link to the page with guidance for authorisation that might be an issue in your case.