Create analysis API gives error

I am trying to create analysis using the create-analysis API.
However I am getting the following error:

when calling the CreateAnalysis operation: User: arn:aws:sts::XXXXX is not authorized to perform: quicksight:CreateAnalysis on resource: arn:aws:quicksight:us-west-XXXXXX:analysis/XXX-007Analysis because no resource-based policy allows the quicksight:CreateAnalysis action

Has anyone seen this issue? If so, how to resolve this?
Thank you.

Hi @gopinathpc - Please ensure the the role or Keys used to call have right permission to call QuickSight API. Please see the documentation link below - Using Amazon QuickSight with IAM - Amazon QuickSight

Regards - Sanjeeb