Skip to main content

OpenAI Setup Guide

Prerequisites

The OpenAI connector uses two separate credentials. Add one or both, depending on the data you want to sync:

KeyCreated inSyncs
Admin Key (OpenAI Platform)platform.openai.comOpenAI Platform usage, costs, projects, users and groups
ChatGPT Admin Keyadmin.openai.comChatGPT 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.

  1. Sign in to the OpenAI Platform admin keys page (Organization settings > Admin keys).
  2. Click the + Create new Admin Key button.
  3. Enter a descriptive name like Matia-Integration.
  4. Set the permissions to Read only and click Create.
  5. 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.

  1. Sign in to the OpenAI Admin Console with a user who is an Owner or Admin of the ChatGPT workspace.
  2. Go to Credentials > Admin keys.
  3. Select the ChatGPT workspace you want to sync and click Create new admin key.
  4. Enter a descriptive name like Matia-Integration.
  5. Choose Custom permissions and set Enterprise analytics API to Read (scope enterprise.analytics.usage.read). Leave all other permissions off.
  6. Click Create.
  7. Copy the generated key - you will need it to configure your connection. OpenAI shows the key only once.
  8. Go to General > Workspace details.
  9. 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

  1. 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.
  2. If you entered a ChatGPT Admin Key, enter the ChatGPT Workspace ID from Step 3.
  3. Leave ChatGPT Organization ID empty. None of the tables available today use it.
  4. Enter an Asset Name.
  5. (Optional) Enter a Description.
  6. (Optional) Assign Tags.
  7. Select an Owner.
  8. Verify that your OpenAI account is successfully connected by clicking on Test Connection. Matia checks each key you entered against its own OpenAI API.
  9. Click Connect.