Actually construct API paths correctly.