Rather than calling this explicitly, it might just be easier to have the search `event_handler` listen for `initiated_availability_request` and then 1 hour after that, it should send the email. This code you have here will work but it's doing too much. This api endpoint is just about sending out email seeking availablity info - not to actually alert the customer. Subscribing to the `initiated_availability_request` will also accomplish this task, but the code flow will have smaller, cohesive units.