Noticed the controller helper class has a function for this, $this->helper->url('api/auth/allow');