Unify api constants to records