Replace old endpoints with new API, update documentation and tests