ActiveRecord for APIs