*** title: Reference message data in scripts updated: 2025-11-04T00:00:00.000Z topictype: reference slug: docs/tests-and-scripts/write-scripts/postman-sandbox-reference/pm-message max-toc-depth: 2 ---------------- 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.{/* gRPC only? */} ## 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`](https://www.postmanlabs.com/postman-collection/PropertyList.html) object with the `key` and `value` properties: * `data` - The received message content. * `timestamp` - The time the message was received, represented as a `Date` object.