Correct link to API docs

Thanks @lazaruslarue for pointing this out.

Fixes #2435.