subgraphs > Querying > 管理您的 API 密钥

管理您的 API 密钥

Reading time: 2 min

概述

链到本节

API keys are needed to query subgraphs. They ensure that the connections between application services are valid and authorized, including authenticating the end user and the device using the application.

Create and Manage API Keys

链到本节

Go to Subgraph Studio and click the API Keys tab to create and manage your API keys for specific subgraphs.

The "API keys" table lists existing API keys and allows you to manage or delete them. For each key, you can see its status, the cost for the current period, the spending limit for the current period, and the total number of queries.

You can click the "three dots" menu to the right of a given API key to:

  • Rename API key
  • Regenerate API key
  • Delete API key
  • Manage spending limit: this is an optional monthly spending limit for a given API key, in USD. This limit is per billing period (calendar month).

API Key Details

链到本节

You can click on an individual API key to view the Details page:

  1. Under the Overview section, you can:
    • 编辑您的密钥名称
    • 重新生成 API 密钥
    • 使用统计信息查看 API 密钥的当前使用情况:
      • 查询数
      • 花费的 GRT 金额
  2. Under the Security section, you can opt into security settings depending on the level of control you’d like to have. Specifically, you can:
    • 查看和管理授权使用您的 API 密钥的域名
    • 分配可以使用您的 API 密钥查询的子图
编辑

上页
Introduction
下页
查询最佳实践
编辑