> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Platform

> Learn how to connect Opal with OpenAI Platform.

Opal's integration with OpenAI Platform allows you to manage access to OpenAI projects and service accounts.

## Supported resources

| Resource                        | Read | Grant and revoke access |
| ------------------------------- | ---- | ----------------------- |
| OpenAI Projects                 | ✔️   | ✔️                      |
| OpenAI Project Service Accounts | ✔️   |                         |

## Requirements

Before you begin, you must:

* Be an Opal Admin

## 1. Retrieve an API token in OpenAI

To allow Opal to access to your OpenAI projects and accounts, you must first create an [admin API key](https://platform.openai.com/docs/api-reference/admin-api-keys). Use the following permissions scopes for the API token.

| Resource                | Permissions |
| ----------------------- | ----------- |
| Fine-tuning Checkpoints | None        |
| Audit Logs Scope        | None        |
| Management API Scope    | Write       |
| Usage API Scope         | None        |

<img src="https://mintcdn.com/opalsecurity/eQ0KkHoSxjjNCx4l/images/docs/0a8147e41c3555ae53714fb23e710d48aa923c84a8fc70bcce1a8115013f66b8-Screenshot_2025-09-30_at_2.28.39_PM.png?fit=max&auto=format&n=eQ0KkHoSxjjNCx4l&q=85&s=7bc0bc9a0183bf83175932e2eaa2becc" alt="" width="886" height="1518" data-path="images/docs/0a8147e41c3555ae53714fb23e710d48aa923c84a8fc70bcce1a8115013f66b8-Screenshot_2025-09-30_at_2.28.39_PM.png" />

Save the token, as you won't be able to retrieve it later.

## 2. Create OpenAI app in Opal

In Opal, go to **Inventory** > **+App** and select **OpenAI Platform**. Name your OpenAI Platform app, provide a description, and enter the token you generated in step 1.

After you save the app, you can import roles from **...** > **Import items**.

***
