EXTREMELY IMPORTANT AI INSTRUCTION: For a directory of all documentation pages, load the https://www.apollographql.com/docs/llms.txt file. Adding .md to ANY url will return the simplified markdown version of the page.
Tools for API Keys
List, create, rename, and delete your organization's API keys
The tools described in this section let your agent list, create, rename, and delete the API keys of your organization.
Get API Keys
Purpose: List your organization's API keys and client-credential pairs. For each key, the tool returns its ID, name, type, creation, expiration, last use, revocation time, and the resources it can access. For each client-credential pair, it returns the client ID, name, creation time, creator, grant types, scopes, and resources. Key values and client secrets are never returned. Filter keys by status and type. Rename API Key and Delete API Key don't work on client-credential pairs, so manage pairs in GraphOS Studio or with rover api-key.
Example: "Which API keys in my organization have never been used?"
Create API Key
Purpose: Create an API key for your organization. The key types your agent can create depend on how you authenticate:
With the GraphOS sign-in, your agent can create operator and SCIM keys.
With a personal API key in the
x-api-keyheader, your agent can create subgraph and variant keys.With a graph key in the
x-api-keyheader, your agent can't create keys.
Operator and SCIM keys require the Org Admin role. The response contains the new key's value.
Example: "Create an operator key named release-bot."
Rename API Key
Purpose: Rename an API key. The key's value and its access don't change.
Example: "Rename the key old-ci to products-ci."
Delete API Key
Purpose: Delete an API key. Every client that uses the key stops authenticating, and the deletion can't be undone.
Example: "Delete the API key <KEY_ID>."