APIキー
APIキー一覧を取得
client.Beta.Organization.APIKeys.List(ctx, query) (*Page[BetaAPIKey], error)GET/v1/organizations/api_keys
APIキーを取得(Admin API)
client.Beta.Organization.APIKeys.Get(ctx, apiKeyID) (*BetaAPIKey, error)GET/v1/organizations/api_keys/{api_key_id}
組織内の単一のAPIキーに関する情報を、そのIDで検索して取得します。このAdmin APIエンドポイントにはAdmin APIキーが必要で、プログラムによるキー管理を目的としており、キーのシークレット値を返すことはありません。自分のAPIキーを表示または作成するには、Claude ConsoleのAPIキーにアクセスしてください。
APIキーを更新
client.Beta.Organization.APIKeys.Update(ctx, apiKeyID, body) (*BetaAPIKey, error)POST/v1/organizations/api_keys/{api_key_id}