# Testing Endpoints

GraphQL testing allows you to validate and debug your queries, mutations, and subscriptions by sending requests to your QueryDeck endpoint. You can use Postman to efficiently test and interact with the GraphQL APIs.

#### **Prerequisites**

* Ensure you have the GraphQL endpoint (e.g., `https://your-querydeck-url/graphql`).
* Postman installed on your system (or use the web version).

#### **Steps to Test GraphQL APIs in Postman**

1. **Open Postman**\
   Launch Postman and create a new request.
2. **Set Request Type to POST**\
   GraphQL queries are sent via HTTP POST requests. Select `POST` from the dropdown.
3. **Enter the GraphQL Endpoint**\
   Paste the QueryDeck GraphQL endpoint in the request URL (e.g., `https://your-querydeck-url/graphql`).

<figure><img src="https://1803924624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkjtTl1rn3hJ3jyoJt6ty%2Fuploads%2F6QZgCSNC7RA5YvVDgHXO%2FScreenshot%202025-03-05%20at%204.36.16%E2%80%AFPM.png?alt=media&#x26;token=5279e29e-93ed-4589-a176-dd4bf5661015" alt=""><figcaption></figcaption></figure>

4. **Configure Headers**\
   Ensure the following headers are set:

Content-Type: application/json Authorization: Bearer YOUR\_ACCESS\_TOKEN (see authentication and authorization section for more info)\
\
![](https://1803924624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkjtTl1rn3hJ3jyoJt6ty%2Fuploads%2F1Ft6HQlk6AlX5QXceBNy%2FScreenshot%202025-03-05%20at%204.37.37%E2%80%AFPM.png?alt=media\&token=214118c2-d20c-4b08-a8e9-e687db448121)

give some sample query for testing

eg:&#x20;

```postman_json
{
    "query": "query GetFilms    {\n  film {\n        title\n    description\n    release_year\n    language_id\n    rental_duration\n    rental_rate\n        replacement_cost\n    rating\n    fulltext\n  }\n}",
    "variables": {}
}
```

<figure><img src="https://1803924624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkjtTl1rn3hJ3jyoJt6ty%2Fuploads%2F2mYVYCOSuf3v3RBEbNFD%2FScreenshot%202025-03-05%20at%204.39.13%E2%80%AFPM.png?alt=media&#x26;token=51bbfae6-fab5-48b3-9270-081bb9d2d344" alt=""><figcaption></figcaption></figure>

Now hit send, and wait for response

<figure><img src="https://1803924624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkjtTl1rn3hJ3jyoJt6ty%2Fuploads%2FpUcSa1wG4C3SDI212Zc9%2FScreenshot%202025-03-05%20at%204.39.39%E2%80%AFPM.png?alt=media&#x26;token=30915f9e-6867-452f-b441-1e79a01d1f97" alt=""><figcaption></figcaption></figure>

Your response should be in a format like the sample below

<figure><img src="https://1803924624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkjtTl1rn3hJ3jyoJt6ty%2Fuploads%2F5YOa4cvTfBbavxVZqUpx%2FScreenshot%202025-03-05%20at%204.40.22%E2%80%AFPM.png?alt=media&#x26;token=259715b6-53a3-4c44-8cfb-b316eb887082" alt=""><figcaption></figcaption></figure>
