Require valid resource when making an API request.