Default to 'api' when nothing is explicitly set.