add key api and entity
add basic specs