How to pull a object thread message from outgoing webhook?

how to pull a object thread message from script ( prepare_outgoing_request) on outgoing webhooks?