> For the complete documentation index, see [llms.txt](https://learn.doubletick.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.doubletick.io/ai-agent/how-to-create-an-openai-secret-api-key-and-connect-it-to-doubletick.md).

# 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="/files/WAajmLpLRsbUuMOUNNdU" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
