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

# OpenAI

> Connect OpenAI to Iru Compliance with a Platform API key to collect project settings, API key inventory, usage metrics, and organization metadata.

### About OpenAI

Iru reads **project** configuration, **usage** metrics, **model access** settings, and **org membership** from **platform.openai.com**. Authentication uses **`Authorization: Bearer`** with an API key. Modern **`sk-proj-`** keys are **project-scoped**; broader **`sk-`** or org keys expose more surface area - choose the narrowest key that satisfies your controls.

### How It Works

```http theme={null}
Authorization: Bearer sk-proj-xxxx
```

| Detail | Value |
| - | - |
| **Category** | Developer tools |
| **Authentication** | Bearer (API key) |

Official references: [Authentication](https://platform.openai.com/docs/api-reference/authentication), [API keys](https://platform.openai.com/api-keys), [Projects](https://help.openai.com/en/articles/9186755-managing-your-work-in-the-api-platform-with-projects).

### Prerequisites

* Access to **platform.openai.com** and the **project** you want evidence for.

### Connect OpenAI to Iru

> [tab] OpenAI
>
> > [!NOTE]
> >
> > Complete this tab before you connect the source in Compliance.
>
> **1. Sign in to OpenAI Platform**
>
> Open **[platform.openai.com](https://platform.openai.com)** and sign in with a user who can manage **API keys** for the target **project**.
>
> **2. Select the project**
>
> Use the **project** picker (or **Default project**) to select the OpenAI **project** whose usage and configuration Iru should read for compliance evidence.
>
> **3. Open API keys**
>
> In the left navigation, open **API keys** for that project.
>
> **4. Create a new secret key**
>
> Select **Create new secret key** (or **+ Create key**). Enter a label such as **Iru Compliance** so you can revoke the correct key later.
>
> **5. Create the key**
>
> Confirm creation. OpenAI may ask you to re-authenticate or confirm org policy depending on your tenant settings.
>
> **6. Copy the key immediately**
>
> Copy the key value when OpenAI shows it. OpenAI does **not** show it again. Store it in a vault until you paste it into Iru.
>
> > [!NOTE]
> >
> > Continue on the [**Iru Compliance**](#iru-compliance) tab.

> [tab] Iru Compliance
>
> > [!NOTE]
> >
> > Finish the [**OpenAI**](#openai) tab first.
>
> **1. Open Sources**
>
> In Iru Compliance, on the left navigation bar, expand **Compliance** and select **Sources**.
>
> ![Left navigation: Compliance expanded, Sources selected](https://mintcdn.com/iru/tI0HDLDwHj8r9Ile/assets/media/images/iru-navigation-compliance-sources.png?fit=max\&auto=format\&n=tI0HDLDwHj8r9Ile\&q=85\&s=87dcef15fc17d2fb9a6e53f454e41710)
>
> **2. Turn on OpenAI**
>
> Find **OpenAI** (use **Category** or **Search by name or description**). On that card, turn on the **toggle**. A browser tab or window may open for the connector wizard.
>
> **3. Paste the API key**
>
> Paste the key into the **Bearer** field.
>
> **4. Finish the connection**
>
> Select **Submit Bearer Token**. When the connection succeeds, the wizard shows **Connection Configured**.
>
> **5. Confirm the source is Active**
>
> Close the **Iru is requesting access to external services** browser tab, then return to **Compliance** → **Sources** and confirm the **OpenAI** card is **Active**.

### Troubleshooting

> [accordion] Nothing opens when you turn the source on
>
> Check **pop-up blocker** settings for the Iru site and try again.

> [accordion] 401 Unauthorized
>
> Full key string; key not deleted in Platform UI.

> [accordion] Incomplete org view
>
> **`sk-proj-`** keys only see **their project** - add keys per project or use org-level guidance from your program.

> [accordion] Quota errors
>
> Billing / limits on the OpenAI side - not an auth fix.

### Considerations

> [card] Iru does not run inference on your behalf: it reads…
>
> Iru does **not** run inference on your behalf. It reads administrative and usage metadata only.

### Related Articles

> [card] [Sources Management](https://docs.iru.com/en/compliance/sources-management.md)
>
> Browse and manage every Compliance source.

> [card] [Getting Started With Compliance](https://docs.iru.com/en/compliance/getting-started-with-compliance.md)
>
> Frameworks, actions, and **Artifacts**.

> [card] [Iru Overview](https://docs.iru.com/en/iru/platform-overview/iru-overview.md)
>
> How Endpoint, Compliance, and Identity fit together.

> [card] [Artifacts Management](https://docs.iru.com/en/compliance/artifacts-management.md)
>
> Upload, review, and organize evidence from sources and actions.


## Related topics

- [Iru MCP](https://docs.iru.com/en/endpoint/integrations/ai-assistants/iru-mcp.md)
- [Iru API Overview](https://docs.iru.com/en/endpoint/api/iru-api-overview.md)
- [Self Service for iOS, iPadOS, and visionOS](https://docs.iru.com/en/endpoint/settings/self-service/self-service-for-ios-ipados-and-visionos.md)
