Skip to content

OpenAI (ChatGPT Enterprise and API)

The OpenAI connector covers two products. ChatGPT Enterprise and Edu workspaces connect through the OpenAI Compliance API, which exposes conversations, users and GPTs. OpenAI API organizations connect through the Usage and Costs APIs, for spend by project, model and API key. Both are API-based and observe-only.

  1. A workspace owner generates a Compliance API key in the ChatGPT admin console (scoped to compliance read access).
  2. In PromptGlass: Connectors → OpenAI → ChatGPT Enterprise, then paste the workspace ID and key.
Data Use
Conversations and messages Detection, topic clustering, efficiency
Users and seat status Seat utilization, idle seats
Custom GPTs and their sharing Inventory, risky sharing (public / link)
File uploads (metadata, content where available) AI DLP on uploads

Events arrive near real time through incremental polling. Policies on this connector can log, alert or open a ticket. They can’t block, because the conversation already happened in ChatGPT. To prevent leaks in ChatGPT, combine this connector with the browser extension.

Terminal window
promptglass connectors add openai-api \
--admin-key-env OPENAI_ADMIN_KEY \
--backfill 90d

You need an Admin API key (sk-admin-…) from Organization settings → Admin keys. PromptGlass reads:

  • GET /v1/organization/usage/completions (and embeddings, images, audio): tokens by model, project and API key
  • GET /v1/organization/costs: billed cost by line item
  • GET /v1/organization/projects and /api_keys: owner mapping

Map projects to teams and cost centers under Connectors → OpenAI → Mapping. For request-level attribution (which user, which app), send API traffic through the gateway in API mode. The usage API only goes down to the project and key level.

Personal ChatGPT accounts can’t be connected by API. Employees using personal accounts show up through the browser extension and the gateway as ChatGPT (personal), as distinct from ChatGPT (Acme workspace). Many organizations coach users to switch.