The first test checks that the server responded with a 200 OK status, confirming the request succeeded.
The second test parses the JSON response and verifies it contains a property named 'data', which represents expected content from the protected resource.
The third test ensures the Authorization header in the request includes a Bearer token, confirming the OAuth 2.0 token was sent correctly.
Using environment variables and pre-request scripts in Postman helps keep sensitive data secure and automates token management.