generate op id from client api