public function getApiDetail($api, $pool = null)
    {
        $items = $this->getItems();
        
        if ($pool) {
            $items = ArrayHelper::searchColumns($items, 'pool', $pool);
        }
        $items = array_values($items); // reset keys to fix isset error
        return ArrayHelper::searchColumn($items, 'permissionApiEndpoint', $api);
    }