This diff adds some code that allows calling link fetch endpoint.
Depends on D7727
Tested in combination with next diffs.