Reference message data in scripts
The pm.message object provides access to the data returned in the message that’s received from the server. pm.message is only available in On message scripts.
pm.message properties
The pm.message object contains the following properties:
For an incoming message:
pm.message: PropertyList<{ data: any, timestamp: Date }>- An individual messagePropertyListobject with thekeyandvalueproperties:data- The received message content.timestamp- The time the message was received, represented as aDateobject.