adding actual schema for api keys and using it