Call Custom Function as API action

Call Custom Function as API action

Can i call Custom Fcuntion as API call? i want to call custom function from my web server 

please let me know feasibility

basically i want to track whether the sent email has been read by client or not

let me know
rakesh