rm media api