> Source: [sk180841](https://support.checkpoint.com/results/sk/sk180841)

# sk180841 - How to generate and test an API key for the Threat Emulation Cloud Service

| Property | Value |
|----------|-------|
| Solution ID | sk180841 |
| Date Created | 2023-04-11 |
| Last Modified | 2025-10-29 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |

## Solution

1. Log in to [User Center](https://usercenter.checkpoint.com).

2. From the top menu, go to Product Center in one of these ways:

   |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | Old Product Center                                                                                                                                                                | New Product Center                                                                                                                                                              |
   | **My Check Point** menu \> **My Accounts** section \> select **Product Center (Old)** or the **Assets / Info** menu \> **My Accounts** section \> select **Product Center (Old)** | **My Check Point** menu \> **My Accounts** section \> select **Product Center (New)** or the**Assets / Info menu** \>**My Accounts** section \> select **Product Center (New)** |

3. Select the applicable accounts:

   |-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
   | Old Product Center                                                                                          | New Product Center                                              |
   | Click the left tab **Selected Accounts** and make sure to select the applicable accounts \> click **Done**. | Search for the account number in the **Filter As You Type**box. |

4. Search for the certificate key:

   |------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|
   | Old Product Center                                                                                                                                               | New Product Center                                                                                   |
   | In the **Products** tab \> **Details** section, in the **Filter as you type** box, search for your certificate key (CK) for the **SandBlast Cloud API** product. | Search for the certificate key for the SandBlast Cloud API product in the **Filter as you Type**box. |

5. Select the applicable product:

   |---------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
   | Old Product Center                                                                                                              | New Product Center                                                                                                                                          |
   | In the **Products** tab \> **Summary** \> select the **SandBlast Cloud API** product. The **Product Information** window opens. | Select your account and select **View Products** . Select the product from the **Product Name** column. See the **\<# of keys\> Keys Generated - Details.** |

   <br />

   The following steps are **identical** for both the Old Product Center and New Product Center:
6. Click the **Generate New Key** button.

7. Select the new API key, copy it, and save it for future use.

8. Close the **Product Information** pop-up window.

9. Run an API call to make sure the new API key works.

   For example, use the `curl_cli` command on a Gaia-based server that is connected to the Internet (on a Linux-based server, use the `curl` command):

   `curl_cli -vk -X POST 'https://te.checkpoint.com/tecloud/api/v1/file/quota' --header 'Authorization: `<YOUR NEW API KEY>`'`

   Examples of an API response:
   * Example of an API response if the API key works (you get your quota values):

     ```
     {
        "response": [
           {
              "remain_quota_hour": 500,
              "remain_quota_month": 10000,
              "assigned_quota_hour": 500,
              "assigned_quota_month": 10000,
              "hourly_quota_next_reset": "1681156800",
              "monthly_quota_next_reset": "1682899200",
              "quota_id": "PV8UM0I",
              "cloud_monthly_quota_period_start": "1680307200",
              "cloud_monthly_quota_usage_for_this_gw": 0,
              "cloud_hourly_quota_usage_for_this_gw": 0,
              "cloud_monthly_quota_usage_for_quota_id": 0,
              "cloud_hourly_quota_usage_for_quota_id": 0,
              "monthly_exceeded_quota": 0,
              "hourly_exceeded_quota": 0,
              "cloud_quota_max_allow_to_exceed_percentage": 1000,
              "pod_time_gmt": "1681156289",
              "quota_expiration": "1686268800",
              "action": "ALLOW"
           }
        ]
     ```

   * Example of an API response if the API key does not work (the quota is zero):

     ```
     {
        "response": [
           {
              "remain_quota_hour": 0,
              "remain_quota_month": 0,
              "assigned_quota_hour": 0,
              "assigned_quota_month": 0,
              "hourly_quota_next_reset": "0",
              "monthly_quota_next_reset": "0",
              "cloud_monthly_quota_period_start": "0",
              "cloud_monthly_quota_usage_for_this_gw": 0,
              "cloud_hourly_quota_usage_for_this_gw": 0,
              "cloud_monthly_quota_usage_for_quota_id": 0,
              "cloud_hourly_quota_usage_for_quota_id": 0,
              "monthly_exceeded_quota": 0,
              "hourly_exceeded_quota": 0,
              "cloud_quota_max_allow_to_exceed_percentage": 0,
              "pod_time_gmt": "1681156093",
              "quota_expiration": "0",
              "action": "BLOCK"
           }
        ]
     ```

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
