Skip to content

Instantly share code, notes, and snippets.

@rpivo
Last active March 18, 2021 00:35
Show Gist options
  • Save rpivo/74c03bb4d714d49f562b9980b7ecffc1 to your computer and use it in GitHub Desktop.
Save rpivo/74c03bb4d714d49f562b9980b7ecffc1 to your computer and use it in GitHub Desktop.
How to Make a GraphQL API Call to AWS AppSync With Postman

How to Make a GraphQL API Call to AWS AppSync With Postman

  1. Create a new API call.
  2. Set the request type to POST.
  3. In the AppSync console, copy the API URL for the API you want to interact with. This is found in the Settings for the API.
  4. Inside the Headers tab for the API call, add an x-api-key header, and set the value to the API key for the API. This is found in the Settings for the API.
  5. Add another header called Content-Type, and set the value to application/graphql.
  6. In the Body tab, add the GraphQL query, and set the query type to GraphQL radio button.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment