Interfaces for codebooks