Run detail logic extracted to api call