Add access code model and api support.