Delays in Confluence REST API calls

I don’t know how to resolve it, as this is a per se case, but you can track what is going on in your system by enabling profiling in the admin menu.
Then you can find out what are the bottlenecks, if any.