Give the permission “AmazonS3FullAccess” to the API User to access Amazon AWS S3 Buckets List via API. As a best practice, avoid using Root user account for API Access.
To retrieve or fetch S3 Buckets List using REST API, please check the following: