> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Gcore APIs with Postman

> Import an OpenAPI file into Postman and reuse a response value in the next request.

Postman provides a graphical interface for sending Gcore API requests and inspecting responses. Import the OpenAPI file for an API, authorize the collection with an API token, and reuse a value from one response in the next request.

**1. Import the specification**

Click **Use resources or import**, then select the **Import** tab. Paste the URL of the API:

![Use resources or import control in the Postman toolbar](https://mintcdn.com/gcore/oMsinOK0Bb3xKjNj/images/docs/developer-tools/rest-api/use-postman/use-resources-or-import.png?fit=max\&auto=format\&n=oMsinOK0Bb3xKjNj\&q=85\&s=0fde4f460d8782d9e305efeaaa303776)

| API | URL |
| - | - |
| IAM | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/iam_api.yaml` |
| CDN | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/cdn_api.yaml` |
| Managed DNS | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/dns_api.yaml` |
| Cloud | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/cloud_api.yaml` |
| DDoS Protection | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/ddos_protection_api.yaml` |
| Edge Proxy | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify_enriched/edge_proxy_api.yaml` |
| FastEdge | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/fastedge_api.yaml` |
| WAAP | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/waap_api.yaml` |
| Streaming | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/streaming_api.yaml` |
| Object Storage | `https://raw.githubusercontent.com/G-Core/product-documentation/main/api-reference/services_docs_mintlify/object_storage_api.yaml` |

![Import tab with the OpenAPI file ready to import](https://mintcdn.com/gcore/oMsinOK0Bb3xKjNj/images/docs/developer-tools/rest-api/use-postman/import-openapi.png?fit=max\&auto=format\&n=oMsinOK0Bb3xKjNj\&q=85\&s=ebf329abe1b24b1e3475b4a8e0ffb4c8)

Select **OpenAPI 3.1 Specification with a Postman Collection**, then **Import**. The collection appears in the left sidebar and contains a request for every operation in that file.

**2. Store the token**

Click **Create new**, then **Environment**. Name the environment `Gcore API`. Add a variable named `token`, set the value to the [API token](https://docs.gcore.com/account-settings/api-tokens.md), and click **Secure** next to `token`.

![Gcore API environment with the token variable](https://mintcdn.com/gcore/ZitZJ5G_wyhDfrFq/images/docs/developer-tools/rest-api/use-postman/environment.png?fit=max\&auto=format\&n=ZitZJ5G_wyhDfrFq\&q=85\&s=b223d5d440f27303db93d744b62db519)

Select `Gcore API` in **Environment**.

![Environment menu listing Gcore API](https://mintcdn.com/gcore/ZitZJ5G_wyhDfrFq/images/docs/developer-tools/rest-api/use-postman/environment-selected.png?fit=max\&auto=format\&n=ZitZJ5G_wyhDfrFq\&q=85\&s=a07aeb2e46fb95fed8787dcdec15e429)

**3. Authorize the collection**

Open the imported collection. On its **Authorization** tab:

1. Set **Auth type** to **API Key**.
2. Set **Key** to `Authorization`.
3. Set **Value** to `apikey {{token}}`.
4. Set **Add to** to **Header**.

![Collection authorization set to API Key](https://mintcdn.com/gcore/ZitZJ5G_wyhDfrFq/images/docs/developer-tools/rest-api/use-postman/authorization.png?fit=max\&auto=format\&n=ZitZJ5G_wyhDfrFq\&q=85\&s=c77b724b080d37b99a9719d36df447b0)

Requests in the collection use this header when their authorization is inherited. The imported specification names the header and does not insert the token.

**4. Read the templates**

This example uses the DDoS Protection collection from the table above.

> [!NOTE]
>
> Access to the DDoS Protection API is an [Enterprise feature](https://docs.gcore.com/ddos-protection/about-ddos-protection.md).

Open **List protection templates**. On the **Authorization** tab, the collection authorization is shown as **Inherited**.

The method is GET and the URL is `https://api.gcore.com/security/sifter/v3/templates`. The operation is [List protection templates](https://docs.gcore.com/api-reference/ddos-protection/protection-templates/list-protection-templates.md).

Select **Send**.

HTTP 200 means the request succeeded.

![List templates request returning HTTP 200](https://mintcdn.com/gcore/ZitZJ5G_wyhDfrFq/images/docs/developer-tools/rest-api/use-postman/templates.png?fit=max\&auto=format\&n=ZitZJ5G_wyhDfrFq\&q=85\&s=b0d757a125a1b69a9bef382957e63b8a)

Find the template named `Basic` in the response. In the `Gcore API` environment, create a variable named `template_id` and set its value to the template's `id`.

**5. Read one template**

Open **Get protection template** in the same collection. On the **Authorization** tab, the collection authorization is shown as **Inherited**.

On the **Params** tab, set `protection_template_id` to `{{template_id}}`. The operation is [Get protection template](https://docs.gcore.com/api-reference/ddos-protection/protection-templates/get-protection-template.md).

Select **Send**.

An HTTP 200 response confirms that the request succeeded. The response body contains the selected template.
