Detect whether frm_payload passed to integrations has been decrypted by TTN?

Hello Everyone,

Is there any way to detect whether the payload (frm_payload) passed to integrations, e.g., HTTP webhooks, has been decrypted by TTN? I would have expected a boolean flag somewhere in the message, but I can’t seem to find any.

It does not appear to be possible to detect this from the presence/absence of the decoded_payload property, since the the payload formatter function seems to be invoked even when TTN has no AppSKey for the device, or when the setting “Skip payload encryption and decryption” is enabled. It looks like the function gets encrypted payload and produces invalid values in those cases.

thanks,
-Jan