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
          • Overview
            • Overview
            • Create GraphQL requests
            • The GraphQL interface
            • Other GraphQL requests
          • Webhooks
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.

On this page
  • Use Postman’s HTTP request for GraphQL
  • Use JSON in the request body
  • Use a GraphQL content type header
  • Import the query as a cURL request
Use PostmanSend requestsOther protocolsGraphQL

Make a GraphQL call with an HTTP request

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

The GraphQL client interface

Next

Manage gRPC APIs using Postman

Built with

Postman’s GraphQL client is tailored for making GraphQL requests, but you can also create GraphQL requests using Postman’s HTTP request interface. The HTTP request interface might be better for some use cases, like working with legacy systems or projects that include both GraphQL and non-GraphQL APIs.

Use Postman’s HTTP request for GraphQL

Postman has built-in support for sending GraphQL queries in the request body, using GraphQL variables, and introspection and importing GraphQL schemas.

Send GraphQL queries in the HTTP request body

  1. Click *Add icon > HTTP and enter a GraphQL endpoint URL in the URL box.
  2. Select POST from the request method dropdown list.
  3. Under the Body tab, select the GraphQL body type.
  4. Enter your GraphQL query in the Query editor. The editor enables you to write and edit queries and variables separately.
  5. Click Send.

Use GraphQL variables

  1. Enter your GraphQL variables in the GraphQL variables editor.

  2. In the Query editor, declare the GraphQL variable in your query. For more information on how to use GraphQL variables, see the GraphQL variables documentation.

    Using GraphQL variables

You can also use Postman variables as data inputs for GraphQL variables using {{variable}} syntax.

Import GraphQL schemas

To enable autocompletion while writing queries, your request needs a GraphQL schema. When you enter a GraphQL endpoint URL in the URL box, Postman automatically fetches the GraphQL schema using introspection. When Postman successfully auto-fetches a schema, a notification appears next to the schema selection list. If your schema has changed, click Refresh icon Refresh to pull in the changes.

You also have the option to manually import a schema into your request. After creating or importing a GraphQL API into your workspace, you can use that API’s schema for your request instead of the auto-fetched schema.

To import a GraphQL schema into your request manually, do the following:

  1. Create or import a GraphQL API in your workspace.

  2. Click Add icon > HTTP and enter a GraphQL endpoint URL in the URL box.

  3. Select POST from the request method dropdown list.

  4. Under the Body tab, select the GraphQL body type.

  5. Click Down Large icon next to Auto Fetch to open the schema selection dropdown list.

  6. Select your schema from the dropdown list.

    You may need to refresh by clicking Refresh icon Refresh.

When you write your query, Postman suggests autocomplete options from the data in the selected GraphQL schema.

Use JSON in the request body

  1. Open a new request tab in Postman and enter your GraphQL endpoint URL in the address field.
  2. Select POST from the request method dropdown list.
  3. Under the Headers tab, enter the application/graphql value for the Content-type key.
  4. Under the Body tab, select the raw body type. Choose JSON from the format dropdown list.
  5. Construct your query in the request body using proper JSON formatting.

Use a GraphQL content type header

  1. Click New > HTTP and enter a GraphQL endpoint URL in the URL box.
  2. Select POST from the request method dropdown list.
  3. Under the Body tab, select the GraphQL body type.
  4. Under the Headers tab, enter the application/graphql value for the Content-type key.
  5. Under the Body tab, select the raw body type. Choose Text from the format dropdown list.
  6. Build your query in the request body using standard GraphQL formatting.

Import the query as a cURL request

  1. Click Import.
  2. Paste your cURL command in the request bar. Your cURL command must contain a GraphQL endpoint URL and must specify the POST request method. Postman opens the request in a new tab with the specified GraphQL endpoint URL and the POST request method selected.