API response structure in Postman | Postman Learning Center (2024)

The Postman response viewer helps you visualize and check the correctness of API responses. An API response consists of the response body, headers, cookies, and the HTTP status code. You can view details about the response, including test results, network information, response size, response time, and security warnings. You can also save responses as examples or files.

Response body

The Postman Body tab gives you several tools to help you understand the response. You can view the body in one of four views: Pretty, Raw, Preview, and Visualize.

Find items in responses. To open the search bar, select the search icon API response structure in Postman | Postman Learning Center (1) in the results pane. You can also place your cursor in the response and select ⌘+F or Ctrl+F. This option isn't available in a response's Preview or Visualize views.

Note that if the response's Content-Type header indicates that the response is an image, Postman will detect and render the image automatically.

Pretty

The Pretty view formats JSON or XML responses so they're easier to view. Links inside the Pretty view are highlighted, and selecting them can load a GET request in Postman with the link URL.

For navigating large responses, select the down arrows next to a line to collapse large sections of the response.

API response structure in Postman | Postman Learning Center (2)

Force JSON formatting. For Postman to automatically format the body, the response must have the appropriate Content-Type header. If you receive a response with a different Content-Type header, you can force formatting through JSON. Select the settings icon API response structure in Postman | Postman Learning Center (3) in the header and select Settings. Under Request, select JSON next to Language detection.

Raw

The Raw view is a large text area with the response body. It can indicate whether your response is minified.

API response structure in Postman | Postman Learning Center (4)

Preview

The Preview view renders the response in an iframe sandbox. Some web frameworks by default return HTML errors, and Preview can be helpful for debugging in those cases.

Due to iframe sandbox restrictions, JavaScript and images are turned off in the iframe. For binary response types, you can select the down arrow next to Send and select Send and Download to save the response locally. You can then view it using the appropriate viewer. This gives you the flexibility to test audio files, PDFs, zip files, or any other file types the API returns.

API response structure in Postman | Postman Learning Center (5)

Visualize

The Visualize view renders the data in the API response according to visualization code that you add to the Scripts > Post-response tab. For details on how to add, use, and debug visualization code, see Visualizing responses.

API response structure in Postman | Postman Learning Center (6)

Cookies

You can select Cookies to inspect cookies sent by the server. A cookie's entry includes its name, value, the associated domain and path, and other information about the cookie.

To learn more about working with cookies in Postman, see Using cookies.

Headers

Headers are displayed as key-value pairs under the Headers tab. Hover over the information icon API response structure in Postman | Postman Learning Center (7) next to the header name to get a description of the header according to the HTTP specification.

Test results

If the API request you are viewing had any tests, the results are displayed in the Test Results tab.

To learn more about running tests against API requests in Postman, see Write API test scripts in Postman.

Network information

Postman displays network information when your API returns a response. Hover over the network icon API response structure in Postman | Postman Learning Center (8) to get the local and remote IP addresses for the request you sent.

When you make an https request, the network icon includes a padlock. When you hover over the icon, the network information will show more information including certificate verification details.

API response structure in Postman | Postman Learning Center (9)

SSL verification errors

If SSL verification is enabled and verification fails, the response area displays an error message. Select the link to open the Console and view more information about the error.

API response structure in Postman | Postman Learning Center (10)

If needed, you can turn off SSL verification for the request or turn it off globally in Postman:

  • To turn off SSL verification for a request, select the Settings tab in the request and turn off Enable SSL certificate verification.
  • To turn off SSL verification globally, select the settings icon API response structure in Postman | Postman Learning Center (11) in the header and select Settings. Under Request, turn off SSL certificate verification.

If you have SSL verification turned off and your request returns a certificate verification error, you can hover over the network information for details about the error.

API response structure in Postman | Postman Learning Center (12)

For requests that are successful and return data but with a certificate verification failure, the Console displays a warning.

Response code

Postman displays the response code returned by the API. Hover over the response code to get a short description of the code and what it means.

API response structure in Postman | Postman Learning Center (13)

Some API responses also contain custom messages that can help you understand response codes. For example, if you receive a 401 Unauthorized response, the message might tell you to check the token you used in the request. If custom messages are returned, they're displayed in the Body of the response.

Response time

Postman automatically calculates the time in milliseconds it took for the response to arrive from the server. This information can be useful for some preliminary performance testing. Hover over the response time for a graph with information on how long each event in the process took.

API response structure in Postman | Postman Learning Center (14)

Response size

Postman displays the size of the response. Hover over the response size to get a breakdown by body and header sizes.

Saving responses

If a request has been saved in a collection, you can save responses for that request. Once the response has been returned, you can:

  • Select Save as Example to save the response as an example that you can access later.
  • Select the more actions icon API response structure in Postman | Postman Learning Center (15) then Save response to file to save the response as a JSON file.
  • Select the more actions icon API response structure in Postman | Postman Learning Center (16) then Clear response to remove any data in the response viewer. Note that for event-based requests, this is available after the stream is closed.

API response structure in Postman | Postman Learning Center (17)

Viewing security warnings

Postman applies security rules configured for your API requests when you send requests to any API using either the Postman web app or the Postman desktop app. A security warning indicates that there are potential security risks the API might be vulnerable to, but they don't mean the API is broken.

To view the specific security warnings that Postman applies to all requests, see Security warnings.

If it finds any potential security risks, Postman adds the number of warnings to the Security tab in the response.

API response structure in Postman | Postman Learning Center (18)

To view the list of security warnings and to get more information about specific warnings, do the following:

  1. Select Security to view the warnings.
  2. For more details, select a warning to expand it.
  3. Select Possible fix to learn about possible ways to fix the underlying problem.

API response structure in Postman | Postman Learning Center (19)

Hiding security warnings

To turn a warning off for the current API response, do the following:

  1. Select Hide warning.
  2. Choose a reason for hiding it, then select Hide.

This will turn the warning off for all members of your team for this response.

To turn a warning off globally for your team, you can configure your API Security rules (available for Enterprise teams).

API response structure in Postman | Postman Learning Center (20)

When you or another member of your team has hidden a warning, Postman shows a message in the Security tab to indicate how many are hidden.

To turn this warning back on later, do the following:

  1. Select Review in the Security tab.
  2. Review your hidden warnings and select the eye icon API response structure in Postman | Postman Learning Center (21) next to the one you want to turn back on.

API response structure in Postman | Postman Learning Center (22)

API response structure in Postman | Postman Learning Center (2024)

FAQs

What is API response structure in Postman? ›

An API response consists of the response body, headers, cookies, and the HTTP status code. You can view details about the response, including test results, network information, response size, response time, and security warnings. You can also save responses as examples or files.

In which format is the response of the API request structure? ›

Response Body

Typically, these objects are returned in a structured format such as JSON or XML, as indicated by the Content-Type response header.

How to check API response on Postman? ›

How to Test API Using Postman?
  1. Sign up for a Postman Account. The first step is to create an account on Postman. ...
  2. Create a New Request. ...
  3. Enter Request Methods, Parameters. ...
  4. Send the Request. ...
  5. Create a Postman Collection. ...
  6. Add Requests to the Collection. ...
  7. Use the Postman Collection Runner. ...
  8. Analyze the Test Results.

What is the response limit for Postman API? ›

The default maximum renderable response size is set at 50MB. You can increase this limit in your settings.

What are the main parts of an API response? ›

API Response

It will contain status codes, response headers, and usually response data. Common response codes like 200 OK, 404 Not Found, and 500 Server Error indicate the outcome. The headers provide metadata like pagination. The body contains the returned information in JSON, XML, HTML, or other formats.

How many types of API responses are there? ›

The API supports 3 response types: JSON (Recommended) XML. NVP (Deprecated)

What is the best format for API response? ›

The JSON (JavaScript Object Notation) format has become the de facto standard for API responses, prized for its simplicity, ease of use, and language-agnostic nature.

What is response structure? ›

For every API request made over HTTP, there is a corresponding HTTP response. The HTTP response you get from a request might vary from endpoint to endpoint. The response object in a collection provides a way for you to represent any type of response you might get from an HTTP request.

What is the Postman structure? ›

The Postman API response structure provides a comprehensive view of the interaction between a client and a server. From status codes and response times to various ways of visualizing the response body, it offers essential tools for developers and testers.

How do I see full responses in Postman? ›

You can view the response details in the response viewer, including the response code, response body, and headers. You can also use the Postman Visualizer to create rich graphic visualizations of the response data.

How to increase API response time in Postman? ›

Postman has a setting that you can change in Settings > General > Request timeout in milliseconds that you can set if you want to set an explicit timeout (default infinite). You can also do something similar programmatically in your tests to make sure your response times are under a certain threshold.

How many requests can Postman handle? ›

1000 API Request limit on free accounts - 🙋 Help - Postman Community.

What is a 400 response in Postman? ›

400 is a client error. The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

What is an API structure? ›

API architecture refers to the design and structure of Application Programming Interfaces, specifying how different API components should interact and communicate. The API architecture consists of rules that determine functionalities to provide to the API consumers.

What is the structure of API message? ›

API messages and responses are frames, containing strings of paired characters. The characters are represented in hexadecimal notation. Each frame consists of a standard header, followed by a variable number of data bytes. The data is unique to each message.

What is API request structure? ›

REST API methods and request structure

There are four basic methods also named CRUD operations: POST to Create a resource, GET to Retrieve a resource, PUT to Update a resource, and. DELETE to Delete a resource.

Top Articles
What happened to the piggy bank? | Fandom
How To Know What To Expect When Selling Your Old Jewelry?
Foxy Roxxie Coomer
Duralast Gold Cv Axle
Truist Bank Near Here
Is pickleball Betts' next conquest? 'That's my jam'
Chase Bank Operating Hours
Los Angeles Craigs List
Gwdonate Org
Tracking Your Shipments with Maher Terminal
Shreveport Active 911
Kris Carolla Obituary
2016 Ford Fusion Belt Diagram
Gon Deer Forum
Bitlife Tyrone's
Overton Funeral Home Waterloo Iowa
Driving Directions To Bed Bath & Beyond
Clear Fork Progress Book
라이키 유출
Tygodnik Polityka - Polityka.pl
A Biomass Pyramid Of An Ecosystem Is Shown.Tertiary ConsumersSecondary ConsumersPrimary ConsumersProducersWhich
Georgia Cash 3 Midday-Lottery Results & Winning Numbers
Cpt 90677 Reimbursem*nt 2023
Craigslist Ludington Michigan
Pixel Combat Unblocked
Pfcu Chestnut Street
Metro By T Mobile Sign In
Graphic Look Inside Jeffrey Dresser
Litter-Robot 3 Pinch Contact & DFI Kit
2016 Honda Accord Belt Diagram
Does Iherb Accept Ebt
Synchrony Manage Account
Myql Loan Login
Mcgiftcardmall.con
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Paperless Employee/Kiewit Pay Statements
Anhedönia Last Name Origin
Amc.santa Anita
Strange World Showtimes Near Century Stadium 25 And Xd
Port Huron Newspaper
Tacos Diego Hugoton Ks
Phmc.myloancare.com
Dying Light Mother's Day Roof
Das schönste Comeback des Jahres: Warum die Vengaboys nie wieder gehen dürfen
Mlb Hitting Streak Record Holder Crossword Clue
Random Warzone 2 Loadout Generator
Quest Diagnostics Mt Morris Appointment
Julies Freebies Instant Win
Fallout 76 Fox Locations
Goosetown Communications Guilford Ct
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 5708

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.