Fix API redirects to align with the documentation.

Part of #117.