{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"APIキーの取得","description":"Treasure AIのユーザーが、APIキーの種類と取得方法を理解し、安全に管理するためのガイドを提供します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"apiキーの取得","__idx":0},"children":["APIキーの取得"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Master key と Write-only key は、プロフィールで確認できます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#%E9%81%A9%E5%88%87%E3%81%AAapi%E3%82%AD%E3%83%BC%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AE%E9%81%B8%E6%8A%9E"},"children":["適切なAPIキータイプの選択"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#td%E3%82%B3%E3%83%B3%E3%82%BD%E3%83%BC%E3%83%AB%E3%81%8B%E3%82%89api%E3%82%AD%E3%83%BC%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B"},"children":["Treasure コンソールからAPIキーを取得する"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#td-toolbelt%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6master-api%E3%82%AD%E3%83%BC%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B"},"children":["TD Toolbeltを使用してMaster APIキーを取得する"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"適切なapiキータイプの選択","__idx":1},"children":["適切なAPIキータイプの選択"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["REST APIへのアクセスは、APIキーによって制御されます。ほぼすべてのREST API呼び出しは、認証とリソース認可の目的で有効なAPIキーと共に発行される必要があります。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"APIキータイプ"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["APIキータイプ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Master key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザーの権限レベルとアクセスに基づいて、すべての許可された操作を実行するために使用できます。例外はありません。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Write-only key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["REST APIを通じてTreasure アカウントへのアクセスを制御する際に、追加のセキュリティレイヤーを提供します。第三者にアクセスを提供する必要がある場合や、取り込みライブラリ（たとえば、Webページ統合）にAPIキーを埋め込む必要がある場合に便利です。ユーザーに関連付けられた権限とアクセスレベルに基づいて、ユーザーのWrite-only APIキーは、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["書き込みアクセス権"]}," を持つデータベースへのTreasure Dataへのデータインポートのみを許可します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIのMaster keyは安全に保管してください。Master keyはTreasure Dataへの読み取りおよび書き込みアクセスの両方を許可し、Master keyを所有する人は誰でもデータにアクセス、破損、または削除する可能性があります。Master keyを共有せず、Master keyを公開したり公に公表したりしないよう注意してください。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、すべての新規ユーザーは1つのMaster keyと1つのWrite-only APIキーで作成されます。すべてのユーザーは、2つのタイプのAPIキーをいくつでも生成できます。APIキーは、ユーザー自身またはユーザー管理権限を持つユーザーによって、いつでも取り消すことができます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソールからapiキーを取得する","__idx":2},"children":["Treasure コンソールからAPIキーを取得する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールを開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["My Settings > API Keys"]},"にアクセスします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20191111-205106.a2c4552a7d4793861eb295ff1502ac94e299d8db23cf1526e54b943f15fedd56.0211f3ac.png","alt":"マイ設定のAPIキーページ"},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["APIキーを選択します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"td-toolbeltを使用してmaster-apiキーを取得する","__idx":3},"children":["TD Toolbeltを使用してMaster APIキーを取得する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Master APIキーのみをコマンドラインから取得できます。キーを取得するには、以下のコマンドを実行します:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td apikey:show\n","lang":"bash"},"children":[]}]},"headings":[{"value":"APIキーの取得","id":"apiキーの取得","depth":1},{"value":"適切なAPIキータイプの選択","id":"適切なapiキータイプの選択","depth":2},{"value":"Treasure コンソールからAPIキーを取得する","id":"treasure-コンソールからapiキーを取得する","depth":2},{"value":"TD Toolbeltを使用してMaster APIキーを取得する","id":"td-toolbeltを使用してmaster-apiキーを取得する","depth":2}],"frontmatter":{"seo":{"title":"APIキーの取得","description":"Treasure AIのユーザーが、APIキーの種類と取得方法を理解し、安全に管理するためのガイドを提供します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/my-settings/getting-your-api-keys","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}