Move record md to API call