Add API sample