What camera do you recommend?

With Synology you can do commands like:

rest_command:
  gate_record:
    url: 'https://ipaddress:5001/webapi/entry.cgi?api=SYNO.SurveillanceStation.ExternalEvent&method="Trigger"&version=1&eventId=1&eventName="This is external event1"&account="username"&password="password"'

I have more info on my post here: