I see what you mean; the webhook sends the value as the legacy_id, and the query returns the value encoded. They should both be the same ID, just that one is decoded and one isn’t. I will go ahead and pass along this feedback to the team.
Please let me know if you have any questions or concerns.