OpenAI Setup Guide
Prerequisites
The OpenAI connector uses two separate credentials. Add one or both, depending on the data you want to sync:
| Key | Created in | Syncs |
|---|---|---|
| Admin Key (OpenAI Platform) | platform.openai.com | OpenAI Platform usage, costs, projects, users and groups |
| ChatGPT Admin Key | admin.openai.com | ChatGPT workspace usage |
- For the Admin Key: an OpenAI Platform account with the Owner role in the organization.
- For the ChatGPT Admin Key:
- A ChatGPT Enterprise or ChatGPT Edu workspace. Confirm with OpenAI that the Daily Usage Analytics API is enabled for your workspace.
- The Owner or Admin role in that ChatGPT workspace.
Note: The two keys are not interchangeable. An OpenAI Platform Admin key can't read ChatGPT workspace usage, and a ChatGPT Admin key can't read OpenAI Platform data.
Setup Guide
Step 1 (Optional): Obtain the OpenAI Platform Admin Key
Skip this step if you only want to sync ChatGPT workspace usage.
- Sign in to the OpenAI Platform admin keys page (Organization settings > Admin keys).
- Click the + Create new Admin Key button.
- Enter a descriptive name like
Matia-Integration. - Set the permissions to Read only and click Create.
- Copy the generated Admin Key - you will need it to configure your connection. OpenAI shows the key only once.
Step 2 (Optional): Obtain the ChatGPT Admin Key and Workspace ID
Skip this step if you only want to sync OpenAI Platform data.
- Sign in to the OpenAI Admin Console with a user who is an Owner or Admin of the ChatGPT workspace.
- Go to Credentials > Admin keys.
- Select the ChatGPT workspace you want to sync and click Create new admin key.
- Enter a descriptive name like
Matia-Integration. - Choose Custom permissions and set Enterprise analytics API to Read (scope
enterprise.analytics.usage.read). Leave all other permissions off. - Click Create.
- Copy the generated key - you will need it to configure your connection. OpenAI shows the key only once.
- Go to General > Workspace details.
- Copy the Workspace ID.
Note: This permission gives access to aggregated usage metrics only. It does not grant access to conversation content. The Codex analytics API permission (
codex.enterprise.analytics.read) does not grant access to workspace usage. Make sure Enterprise analytics API is set to Read.
Step 3: Complete Configuration in Matia
- Enter at least one of the keys:
- Admin Key: the OpenAI Platform Admin Key from Step 1.
- ChatGPT Admin Key: the ChatGPT Admin Key from Step 2.
- If you entered a ChatGPT Admin Key, enter the ChatGPT Workspace ID from Step 3.
- Leave ChatGPT Organization ID empty. None of the tables available today use it.
- Enter an Asset Name.
- (Optional) Enter a Description.
- (Optional) Assign Tags.
- Select an Owner.
- Verify that your OpenAI account is successfully connected by clicking on Test Connection. Matia checks each key you entered against its own OpenAI API.
- Click Connect.