API for smart objects