Skip to main content
ConfigView pulls your OpenAI API organization — spend, token usage, projects, members, and API keys — through an Admin API key created in the OpenAI platform console. You will end up with 1 secret in ConfigView (OPENAI_ADMIN_KEY) when setup is complete.
This is not the same as ChatGPT. OpenAI splits into two products with two separate consoles, two key types and two ConfigView apps. This page covers platform.openai.com — the developer API you are billed for per token. If you want to inventory ChatGPT Enterprise seats and workspace activity, that is the OpenAI ChatGPT integration and a different credential entirely. Most organizations that use both will want both apps enabled.

Step 1: Create the Admin API key

  1. Sign in to the OpenAI platform console as an organization Owner
  2. Go to SettingsOrganizationAdmin keys
  3. Create a new admin key and name it ConfigView
  4. Copy the key when it is shown. You will not be able to see it again.
An admin key is not a project API key. The usual sk-proj-... key you use to call models will authenticate and then return 401 or empty results on every organization endpoint. If ConfigView reports “authenticated but no data”, the wrong key type is the first thing to check.

Step 2: Add the secret to ConfigView

  1. Go to your ConfigView dashboard: https://{companyname}.configview.com/admin/secret/
  2. Click Add Secret
  3. Secret name: OPENAI_ADMIN_KEY
  4. Secret value: Paste the admin key from Step 1
  5. Click Save

Step 3: Enable the OpenAI Platform scripts in ConfigView

  1. Go to: https://{companyname}.configview.com/admin/cron/
  2. You should see OpenAI Platform in the list of available apps
  3. Select the scripts you want to run:
Spend and usage Access and governance
  1. Click Save
Note: Project Membership, Project Service Accounts and Project API Keys all depend on Projects. ConfigView wires these dependencies automatically — Projects always runs first.

Step 4: Verify

  1. Go to: https://{companyname}.configview.com/admin/cron/
  2. Run the OpenAI Platform health check
If a check fails:
  • 401 — The key is wrong, revoked, or is a project key rather than an admin key. See the note in Step 1.
  • Usage tables are empty but cost is populated — Usage endpoints are time-bucketed. A freshly created org, or one with no API traffic in the window queried, legitimately returns nothing.
  • Audit Logs returns 403 — Audit logging is not available on every OpenAI plan. If your org does not have it, leave that script disabled.

Data Tables

Once the scripts run, the corresponding tables are created in your database. All tables include a run_at column for historical tracking.

Things worth knowing

Cost and usage are separate questions, and they do not reconcile line for line. openai_cost is what OpenAI bills; the openai_usage_* tables are what was consumed. Discounts, minimums, and free tiers live in cost and not in usage, so summing tokens and multiplying by list price will not reproduce your invoice. Use cost for finance and usage for attribution. last_used_at on API keys is the highest-value column here. A key that has never been used, or has not been used in months, is the cleanest signal for revocation — and both key tables carry the owner, so you know who to ask before pulling it. Usage rows are pre-aggregated buckets, not individual calls. Each row covers a time window (starting_at to ending_at) for a given model/project/user combination. You cannot get per-request detail from this API, so questions like “which exact call cost the most” are not answerable here. Archived projects still appear. openai_projects.status and archived_at tell you which are live. Filtering on them matters for seat and key reporting, or archived projects will inflate your counts.