> 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/apitkun/apitkunno.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) 概要

この記事では、APIトークンの表示、更新、削除方法を説明します。

## APIトークンの管理

{% stepper %}
{% step %}

### APIトークンを表示する

1. クリック **APIトークン** 左側のサイドバー メニューから。
2. すべてのAPIトークンは表に一覧表示され、トークン名で検索できます。
3. この **有効期限** 列には、トークンの有効期限と、その後 Flosum API へのアクセス権が付与されなくなる日時が表示されます。この列が空白の場合、トークンは期限切れになりません。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2F3ixVZIYNTEy7CsmPrAap%2FManagingApiTokens-S01-01.png?alt=media&amp;token=30e973ab-ac46-4518-ba0a-d9c5a2904da9" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### APIトークンを更新

APIトークンを更新すると、有効期限を変更し、新しいトークンを生成できます。

{% hint style="danger" %}
トークンを更新すると、以前のトークンは無効になります。このトークンを使用するサービスは、引き続き動作させるために新しい値へ更新する必要があります。
{% endhint %}

1. をクリック **更新** APIトークンの右側にあるアイコン。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FdPMs6GlJ9xqBO7OuSR9W%2FManagingApiTokens-S02-01.png?alt=media&amp;token=af426843-cc65-4cf6-82b2-d51a5b7d2449" 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%2FmmDifG3Z2IughREgHcvV%2FManagingApiTokens-S02-02.png?alt=media&amp;token=94fd3341-391a-4256-bd14-5f5285298dba" alt="" width="375"><figcaption></figcaption></figure></div>
3. APIトークンを有効にする日数を選択します。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FjIr1uvwtwEYzWuqeogj3%2FManagingApiTokens-S02-03.png?alt=media&amp;token=36dbb450-c54c-4398-9ebe-d21bf3e9cb56" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### 更新後のトークン有効期限

APIトークンを更新すると、有効期限のカウントダウンはトークンの元の作成日ではなく、更新日から再開されます。たとえば、月の1日に有効期限7日のAPIトークンを作成し、4日にさらに7日延長して更新した場合、トークンの有効期限は11日になります。
{% endhint %}

{% hint style="warning" %}

#### トークンの有効期限

APIトークンが期限切れになると、そのトークンを使用するサービスはFlosumのAPIにアクセスできなくなります。SSOアイデンティティプロバイダーのような継続的なアクセスを必要とするサービスの場合は、次を選択してください **有効期限なし**.
{% endhint %}

4. クリック **更新**.

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FMPo68Ur9cS5ol0hcVJPp%2FManagingApiTokens-S02-04.png?alt=media&amp;token=ed6b0630-2b64-4651-beba-ba59c03cb88e" alt="" width="375"><figcaption></figcaption></figure></div>
5. 更新後、APIトークンが表示されます。
6. をクリック **コピー** トークンをコピーするアイコンを使ってコピーし、安全に保存してください。再度表示することはできません。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fw2aYQtKUEcsndSeClaNe%2FManagingApiTokens-S02-05.png?alt=media&amp;token=b4c14ef9-b277-410b-9dfa-1545e8aff2f9" alt="" width="375"><figcaption></figcaption></figure></div>
7. クリック **閉じる**.
   {% endstep %}

{% step %}

### APIトークンを削除

APIトークンはいつでも削除でき、そのトークンの Flosum API へのアクセスを取り消せます。

{% hint style="danger" %}
APIトークンを削除すると、それを使用しているすべてのサービスのアクセスが取り消されます。この操作は元に戻せません。
{% endhint %}

1. をクリック **ゴミ箱** 削除するAPIトークンの右側にあるアイコン。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FUnzqkjMQueAlul4uUlVh%2FManagingApiTokens-S03-01.png?alt=media&amp;token=ff60e884-b7e9-482e-a5e9-393601dd7a0d" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **確認** APIトークンの削除確認ダイアログで。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FYaaSFdGAbclbK8AaROA4%2FManagingApiTokens-S03-02.png?alt=media&amp;token=d9f7bc61-2fb5-4a6a-99c4-ef4c26f89d73" alt="" width="375"><figcaption></figcaption></figure></div>
3. 削除されると、APIトークンを使用しているすべてのサービスは Flosum の API にアクセスできなくなります。
   {% 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/apitkun/apitkunno.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.
