# How to Create an OpenAI Secret API Key and Connect It to DoubleTick

#### **Step 1: Create a Secret API Key**

1️ **Go to the API Keys Page**

* Visit <https://platform.openai.com/settings/organization/api-keys>
* Log in with your OpenAI account.

2️ **Click “Create Secret Key”**

* Click the **“Create new secret key”** button.

3️ **Define Ownership**

* If the key is for your personal use, choose **Personal account**.
* If the key is for your team or company, choose **Service account** and assign it to your organization.

4️ **Name Your Key**

* Give your key a clear name — e.g., “DoubleTick Integration” — so you remember what it’s for.

5️ **Select a Project**

* If you already have a project, you can assign the key to it.
* If not, you can keep it under the **Default Project**.

6️ **Set Permissions**

* You can choose to restrict which models and capabilities the key can access.
* For most use cases, it’s fine to allow **Full Access** to models.

7️ **Click “Create Secret Key”**

* Once generated, **copy your secret key immediately** — you won’t be able to see it again later!

***

#### &#x20;**Step 2: Integrate with DoubleTick**

1️ **Log in to DoubleTick**

* Go to [web.doubletick.io](https://web.doubletick.io) and sign in with your DoubleTick account.

2️ **Go to Settings → Integrations**

* In your DoubleTick dashboard, navigate to **Settings** → **Integrations**.

3️ **Select OpenAI**

* Find the **OpenAI** integration option.

4️ **Paste Your Secret Key**

* Paste the secret API key you copied from OpenAI.

5️ **Click “Connect”**

* Click **Connect** to link your DoubleTick account with OpenAI’s GPT models.

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FCmFM1M6z8U8KJ2h6DX05%2Floom_1080p.mp4.gif?alt=media&#x26;token=c3268645-d6ad-435b-b898-6a3118f5bfa7" alt=""><figcaption></figcaption></figure>

***

#### **You’re Done!**

Your DoubleTick workspace is now connected to OpenAI. You can use GPT-powered features as enabled by your DoubleTick plan.

***

&#x20;**Tip:**\
Always keep your secret API key safe. If it’s ever exposed, **revoke it immediately** and generate a new one.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.doubletick.io/ai-agent/how-to-create-an-openai-secret-api-key-and-connect-it-to-doubletick.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
