Skip to navigation

Reference message data in scripts

View as Markdown

The pm.message object provides access to the data returned in the message that’s received from the server. The pm.message object is only available in On message scripts for gRPC requests. For a unary method, it represents the response. For a streaming method, it represents an individual event received from the server.

pm.message properties

The pm.message object contains the following properties:

  • data - The received message content.

  • timestamp - The time the message was received.