For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Overview
        • Add types to parameters and headers
        • Add types to body data
        • View types and documentation
        • Generate API specifications
      • Sync collections and specifications reference
      • Migrate from API Builder to Spec Hub
      • Develop APIs with the API Builder
      • Simulate real-world conditions
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

Design and build APIsDesign APIs with collections

Add types to parameters and headers with an API collection

||View as Markdown|
Was this page helpful?
Previous

Design your APIs with Postman Collections

Next

Add types to body data with an API collection

Built with

You can add types to parameters and headers to your HTTP collections. Types can include data type, format, default value, and possible values. You can also specify if a component is required. Details you add will appear in the collection’s documentation.

To add types to a parameter or header, do the following:

  1. Open a request and click the Params or Headers tab. Add any parameters or headers as needed.

  2. Hover over a query or path parameter or a header and click Manage icon Type.

    Add types

  3. Specify details for the parameter or header:

    • Type — Select the component’s data type (string, integer, number, or Boolean).
    • Required — Turn on if the component is required, or turn off if it’s optional.
    • Deprecated — Turn on if the component is deprecated. A deprecated parameter or header is still functional, but its usage is discouraged because support may be discontinued.
    • Default value — Specify the default value for the component.
    • Possible enum values — (All data types except Boolean) Enter the allowed values for the component (enumerations), and press Return or Enter after each item. You can also paste in a comma-separated list, such as “red,green,blue”, and Postman adds each value.
    Define types for a component
  4. Specify optional details depending on the component type:

    • Type string:

      • Format — Select the data format for the string (for example, date, time, or email).
      • Pattern — Enter allowed data patterns for the component using regex (regular expressions). You can’t enter a pattern if you selected a format for the string.
      • Min length — Enter the minimum length for the component.
      • Max length — Enter the maximum length for the component.
    • Type integer or number:

      • Min value — Enter the minimum value for the component.
      • Max value — Enter the maximum value for the component.
  5. Click Save icon Save to save the changes to your request.

If you generated a specification from a collection, make sure to update the specification once you’re done making changes.