Hi,
currently, I am trying to integrate the local API with Appian.
but the above error is getting
Discussion posts and replies are publicly visible
that would never work, localhost in the cloud is the cloud environment, you are not running Appian locally in your machine.
Try with postman if you can do something there.