Decrypt payment id with API
How can I decrypt payment id with JSON API, provided I have the tx hash, the recipient address, and the recipient private view key? I see that the UI is able to do it, but can't find any method in the API.