> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/integrations-marketingtools/chatgpt-ads/where-to-find-the-openai-pixel-id-and-api-key.md).

# Where to find the OpenAI Pixel ID and API Key

How to retrieve the OpenAI Pixel ID and API Key via OpenAI Ads Manager

To send server-side events to ChatGPT Ads, you need two values: the **Pixel ID** of the pixel you want to send events to, and an **API Key** that authorises those events. Both come from the client's OpenAI Ads Manager account.

{% hint style="info" %}
Access to OpenAI Ads Manager is still limited while the platform is in early rollout. If the client doesn't have these yet, they'll need to request Conversions API access from their OpenAI account team before you can implement this tracking.
{% endhint %}

### Finding the OpenAI Pixel ID

{% stepper %}
{% step %}

#### Open OpenAI Ads Manager

Ask the client for access to their OpenAI Ads Manager account, or have them share the values with you directly.
{% endstep %}

{% step %}

#### Find the pixel

In the account's conversion tracking settings, locate the conversion pixel the client created. The Pixel ID is listed there.
{% endstep %}
{% endstepper %}

### Finding the API Key

{% stepper %}
{% step %}

#### Request Conversions API access

The API Key isn't self-service yet. The client needs to request it from their OpenAI account team.
{% endstep %}

{% step %}

#### Store the key securely

Once issued, treat the API Key like any other access token: only enter it into the OpenAI Conversions API tag in the GTM server container, and don't share it outside of that.
{% endstep %}
{% endstepper %}


---

# 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://docs.adpage.io/integrations-marketingtools/chatgpt-ads/where-to-find-the-openai-pixel-id-and-api-key.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.
