rough copy/paste to send data to a custom endpoint