> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-ja/sekyuriti/miapuri/api-akusesunomiapurino.md).

# API アクセス用の接続済みアプリの作成

{% hint style="success" %}

#### 必要なユーザー認証情報

\[**Flosumユーザー**] - **システム管理者** 役割
{% endhint %}

## ![](https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FSxcnKlaJKPzDqONWoDNv%2FSummary2-Small-Icon.svg?alt=media\&token=5e3253d0-a069-4ba5-9c06-83c70bd0b21d) 概要

この記事では、Connected App を作成し、 **クライアント ID** および **クライアントシークレット** Flosum の公開 API へのアクセスを提供するための値。

{% hint style="info" %}
Flosum の API の使い始め方については、次の記事を参照してください。

* [API クイックスタート](/api/api-ja/api-kuikkusutto.md)
  {% endhint %}

## Connected App を作成

{% stepper %}
{% step %}

### グローバル設定にアクセス

1. 任意の **Flosum Cloud App**で、 **アプリスイッチャー** アイコンを左側のサイドバーメニュー上部でクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **グローバル設定**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. その **グローバル設定** アプリは新しいタブで開きます。

{% hint style="info" %}
グローバル設定には、Flosum Cloud Apps のログインURLから直接ログインしてアクセスすることもできます。ログイン手順については、以下の記事を参照してください。

* [グローバル設定にログインする](/global-settings/global-settings-docs-ja/hajimeni/gurbaruniroguinsuru.md)
  {% endhint %}
  {% endstep %}

{% step %}

### 新しい接続アプリケーションを作成する

1. クリック **Connected Apps** を左側のサイドバーメニューから選択します。
2. クリック **作成**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FZ6rBCAKqfurJMA60ylZq%2FCreatingAConnectedAppForApiAccess-S02-01.png?alt=media&amp;token=10320f8d-a1b8-4ce3-9b9a-1d05c6cbd569" alt="" width="563"><figcaption></figcaption></figure></div>
3. 次を入力 **名前** Connected App 用の
4. クリック **作成**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FTlWvE70p4qTuDEGq7uOj%2FCreatingAConnectedAppForApiAccess-S02-02.png?alt=media&amp;token=878410e6-8cf5-4072-955a-75201efc115c" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Connected App を設定

1. 作成したばかりの Connected App をクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FP6iG0BL2SkUSyx8YW7jx%2FCreatingAConnectedAppForApiAccess-S03-01.png?alt=media&amp;token=a2a6b8c6-0b09-4486-b675-b2940bfa1c67" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **編集**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FF1ku4EgDBIB20TEeU4FI%2FCreatingAConnectedAppForApiAccess-S03-02.png?alt=media&amp;token=5ed1bc2c-62fe-4ced-89a2-120e5143e0c9" alt="" width="563"><figcaption></figcaption></figure></div>
3. 次をクリック **認証フロー** ドロップダウンメニュー。
4. 次を確認してください： **認証コード** チェックボックス。
5. 次を確認してください： **リフレッシュトークン** チェックボックス。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FWnrZe9Nsy8o5SlEJ1EM9%2FCreatingAConnectedAppForApiAccess-S03-03.png?alt=media&amp;token=4fbe1fab-23f9-4621-a2d1-e5bc9bb086a6" alt="" width="563"><figcaption></figcaption></figure></div>
6. クリック **URL を追加** 次の **許可されたコールバック URL**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FoWqp160mEe2xlFWhwzft%2FCreatingAConnectedAppForApiAccess-S03-04.png?alt=media&amp;token=2ae66fa1-380b-4d50-9f4c-3577a7c5b3ed" alt="" width="563"><figcaption></figcaption></figure></div>
7. 認証時にアプリで使用するリダイレクト URL を入力します。
8. クリック **保存**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FYtbVXB274hQWocrTG6u0%2FCreatingAConnectedAppForApiAccess-S03-05.png?alt=media&amp;token=e6a8b579-8287-4d64-ae0e-33f04d6d0241" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Client ID と Client Secret をコピー

その `クライアント ID` および `クライアントシークレット` は API 認証プロセスで使用されます。これらの値は Connected App からコピーできます。

1. 次をクリック **Client ID** この値をコピーするためのフィールド。
2. コピーした値を保存します。
3. 次をクリック **クライアントシークレット** この値をコピーするためのフィールド。
4. コピーした値を保存します。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2F4f4tYZ7kKfbQL64jKrkz%2FCreatingAConnectedAppForApiAccess-S04-01.png?alt=media&amp;token=f0862501-e5b0-4ef2-85bb-6db4100d9efc" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/global-settings/global-settings-docs-ja/sekyuriti/miapuri/api-akusesunomiapurino.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
