Include metadata in API responses