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 message PropertyList object with the key and value properties:
  • data - The received message content.
  • timestamp - The time the message was received, represented as a Date object.

Last modified: 2025/11/04