rm api call