Skip to content
Last updated

OpenAI ChatGPT Enterprise Integration

Connect your ChatGPT Enterprise workspace to Capsule Security for complete visibility into your organization's GPTs, conversations, and AI usage.

ChatGPT Enterprise

Overview

This integration uses OpenAI's Enterprise Compliance API to sync:

  • GPTs — Custom assistants built by your team
  • Users — Workspace members with roles and status
  • Conversations — Chat history and message logs
  • Tools — Code Interpreter, Web Browsing, DALL-E, Memory, Custom Actions, and Canvas
  • Knowledge Files — Documents uploaded to GPTs

Prerequisites

Before you begin, ensure you have:

  • An active ChatGPT Enterprise subscription
  • Workspace Admin or Organization Owner access
  • Approval from OpenAI for Compliance API access on your specific API key (see Step 2)

Note: Compliance permissions must be requested per API key, not per organization. Even if your organization has prior approval, each new API key requires a separate approval request to OpenAI support.


Step 1: Generate an API Key

Create an API key in the OpenAI platform that will be used for the integration.

Steps

  1. Go to platform.openai.com/api-keys

  2. In the top-left corner, ensure you have selected your ChatGPT Enterprise organization (not a personal account)

  3. Click Create new secret key

  4. Configure the key:

    • Name: Enter a descriptive name (e.g., "Capsule Security Integration")
    • Permissions: Select All (required for Compliance API access)
    • Project: Leave as default or select your workspace
  5. Click Create secret key

  6. Important: Copy and save the API key immediately. It will only be shown once.

  7. Note the last 4 characters of your API key — you'll need this for Step 2.

Security notes

  • Store the API key securely (password manager recommended)
  • Never share the full key in emails, chat, or code repositories
  • The key provides read access to all workspace conversations and GPT configurations

Next step: This API key requires Compliance API permissions to be enabled by OpenAI support (Step 2). Permissions are granted per API key, so you'll need to request approval for this specific key before it can be used with Capsule.


Step 2: Request Compliance API Access from OpenAI

The Compliance API is not enabled by default. You must request access from OpenAI support to enable compliance permissions on each individual API key.

Why is this required?

The Compliance API provides read access to conversation logs, GPT configurations, and user data for audit and compliance purposes. OpenAI requires explicit approval to enable this scope.

Important: Compliance permissions are granted per API key, not per organization or tenant. Even if your organization has previously been approved for Compliance API access, each new API key requires separate approval from OpenAI support.

Information to gather

Before contacting OpenAI, collect the following:

InformationWhere to find it
Organization IDplatform.openai.com → Settings → Organization
Workspace IDSee Step 3 below
API Key NameThe name you entered in Step 1
API Key (last 4 digits)From the key you created in Step 1

Send the request

Email support@openai.com with the following information:

Subject: Request for Enterprise Compliance API Access

Hello OpenAI Support,

I am requesting access to the Enterprise Compliance API for our organization.

Organization ID: org-XXXXXXXXXXXXXXXXXX
Workspace ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
API Key Name: Capsule Security Integration
API Key (last 4 digits): XXXX

Requested scope: chatgpt.enterprise.compliance_export
Requested permission: read

This access is needed for compliance monitoring and audit purposes.

Thank you,
[Your Name]
[Your Organization]

What to expect

  • OpenAI typically responds within 1-3 business days
  • You will receive a confirmation email when the scope is enabled
  • The compliance permissions are applied only to the specific API key you mentioned in your request
  • If you create additional API keys in the future, you must submit new requests for each one

Step 3: Find Your Workspace ID

The Workspace ID is a UUID that identifies your ChatGPT Enterprise workspace.

  1. Log in to chatgpt.com with your admin account

  2. Open your browser's Developer Tools:

    • Chrome/Edge: Press F12 or Ctrl+Shift+I (Windows) / Cmd+Option+I (Mac)
    • Firefox: Press F12 or Ctrl+Shift+I
    • Safari: Enable Developer menu in Preferences, then press Cmd+Option+I
  3. Go to the Network tab

  4. In the filter box, type workspace or compliance

  5. Refresh the page or navigate to a different chat

  6. Look for API requests and find the workspace_id in:

    • Request URLs (e.g., /compliance/workspaces/{workspace_id}/...)
    • Request headers
    • Response bodies
  7. The Workspace ID is a UUID in the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Method 2: Admin Panel URL

  1. Log in to chatgpt.com as an admin

  2. Navigate to the Admin section (if available)

  3. Check the URL in your browser's address bar for a workspace identifier

Example Workspace ID

64994ce2-4920-4a30-983c-2acd08d593b6

Step 4: Configure the Integration in Capsule

Once you have your API key (with Compliance permissions enabled by OpenAI for that specific key) and Workspace ID, you can set up the integration.

Steps

  1. Log in to the Capsule Security portal

  2. Click Integrations in the left sidebar

  1. Find the ChatGPT Enterprise card and click Set up Integration
  1. The modal displays a 3-step wizard:

    • Links to get your API key (you completed this in Step 1 above)
    • Instructions to find your Workspace ID (you completed this in Step 3 above)
    • Input fields for your credentials
  2. Enter your credentials:

    • API Key: Paste the full API key from Step 1 (starts with sk-proj-...)
    • Workspace ID: Paste the UUID from Step 3
  1. Click Save

After setup

  • Initial sync begins automatically
  • First sync may take several minutes depending on data volume
  • View synced agents in Integrations → Agents
  • View conversations in Observability → Filter Activity Type - Session

Support

For help with this integration:

  • Email: support@capsule.security
  • Include: Your organization ID, integration status, and any error messages

For OpenAI Compliance API issues:

  • Email: support@openai.com
  • Include: Your Organization ID and API key name