> ## Documentation Index
> Fetch the complete documentation index at: https://hc.saas-manager.biz.nuro.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Platform

> OpenAI Platformとの連携の手順です。

## 事前準備

### OpenAI へのログイン

[OpenAIにログイン](https://platform.openai.com/settings/organization/admin-keys)し、**メールアドレス・パスワード**を入力し、**API**にログインします。

<Info>
  連携はOpenAI Platformとの連携手順で、ChatGPT（チームプラン）とは別になります。
  ChatGPTにログインするとAPIが表示されないのでご注意ください。
</Info>

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1712886373916-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=b29ac7e8b180cf5943a3fafdd7f641bc" alt="OpenAI ログイン画面" width="748" height="525" data-path="images/integrations/lxp6out516/1712886373916-image.png" />

### API キーの取得方法

OpenAIのAPIにログイン後 `Default project` を選択します。右上の⚙️ (**Settings**) > **Admin** **API keys**に移動し、**＋Create new admin key** をクリックします。

直接アクセスする場合のURL：[https://platform.openai.com/settings/organization/admin-keys](https://platform.openai.com/settings/organization/admin-keys)

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1737456473499-cs-20250121-001820.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=0b16caabdbde8170f1940daa82eba932" alt="Admin API keys 画面" width="3600" height="1486" data-path="images/integrations/lxp6out516/1737456473499-cs-20250121-001820.png" />

Nameには任意の名称「Admina」等を入力して作成してください。

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1737456525554-admin-key.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=b4a26f3b962276aa88b112bd4d603a45" alt="Admin key 作成画面" width="1128" height="544" data-path="images/integrations/lxp6out516/1737456525554-admin-key.png" />

**Secret keyが生成され、これがAPIキー**となるのでコピー・保存します。

**Secret keyは再表示されません**ので、ご注意ください。

APIキーは`sk-admin-`から始まります。

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1737456547904-sk-admi.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=44a05b6a1e79e6a0c44f3adb7f42c088" alt="Secret key 画面" width="1142" height="708" data-path="images/integrations/lxp6out516/1737456547904-sk-admi.png" />

### ワークスペースキーの取得方法

サイドメニューの**SettingsからOrganization**へ移動すると、**Organization ID** が表示されています。

**Organization ID がワークスペースキー**となるので、コピー・保存します。

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1712887256988-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=e5c80dc0eb9b616f60fc7ae465b33cbc" alt="Organization ID 画面" width="1382" height="707" data-path="images/integrations/lxp6out516/1712887256988-image.png" />

## インテグレーションのセットアップ

マネーフォワード Adminaのインテグレーション画面にて、**OpenAI Platform**で検索します。

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1715906780054-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=d3cfba9b8404ecdb6c5a3c00b3e59597" alt="インテグレーション検索画面" width="1426" height="523" data-path="images/integrations/lxp6out516/1715906780054-image.png" />

前の手順で取得した**ワークスペースキーとAPIキー**を入力し、**連携する**をクリックします。

ワークスペース名は任意入力となります。

<img src="https://mintcdn.com/admina-sbn/hAB795T24a4oxCX7/images/integrations/lxp6out516/1715906735403-image.png?fit=max&auto=format&n=hAB795T24a4oxCX7&q=85&s=77a9f7e91c25bb65e7e0ba921d5535c3" alt="連携画面" width="483" height="617" data-path="images/integrations/lxp6out516/1715906735403-image.png" />

**OpenAI Platform**との連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。

正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。

解決しない場合はチャットにてお問い合わせください。
