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

# トークン

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = localizeLink(href);
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

さまざまなBox APIコールの中核となるのはアクセストークンです。Boxウェブアプリを使用する場合と同様に、問題なく操作できるのは、アクセストークンに関連付けられたユーザーが所有するコンテンツまたはコラボレータとなっているコンテンツのみです。これは、トークンの<Link href="/guides/authentication/tokens/downscope">ダウンスコープ</Link>によってさらに制限できます。

<Warning>
  必須のアクセススコープ、アプリケーションアクセス、有効化された詳細設定、ユーザー権限、およびエンドポイント固有の制限は、すべてが合わさることで、どのAPIコールが成功するかが決まります。たとえば、フォルダに対するコラボレータアクセス権限がユーザーにある場合でも、読み取りスコープがアプリケーションに許可されていなければ、そのフォルダに関する情報を取得するコールは失敗します。
</Warning>

## トークンの種類

| 型                                                                          | 有効期間        |
| -------------------------------------------------------------------------- | ----------- |
| <Link href="/guides/authentication/tokens/access-tokens">アクセストークン</Link>   | 60分         |
| <Link href="/guides/authentication/tokens/refresh">更新トークン</Link>           | 60日または1回の使用 |
| <Link href="/guides/authentication/tokens/developer-tokens">開発者トークン</Link> | 60分         |

## アプリケーションの種類とアクセストークン

それぞれのアプリケーションの種類でどのようにアクセストークンが作成されるのかを以下に示します。

| Boxアプリケーションの種類           | アクセストークンの取得方法                                                                            |
| ------------------------ | ---------------------------------------------------------------------------------------- |
| PlatformアプリとOAuth 2.0    | <Link href="/guides/authentication/oauth2/without-sdk">ユーザーによる明示的な付与</Link>              |
| PlatformアプリとJWT          | <Link href="/guides/authentication/oauth2/without-sdk">JWTアサーションを交換する</Link>             |
| Platformアプリとクライアント資格情報許可 | <Link href="/guides/authentication/client-credentials">クライアントIDとクライアントシークレットを使用する</Link> |

[devcon]: https://app.box.com/developers/console
