I don't know, it looks to me like one uses an API endpoint if the incoming call was made to the API, and another points to a renderable page if not?

https://github.com/mozilla/zamboni/commit/4eb91e61629da80b0677624350a78ea2f00222da#diff-bff80a5504e028c0f04952576a512f85R134