Apollo GraphOS Platform
OverviewQuickstart
APIs and Tools
Schema Management
Explorer IDE
Graph Security
Metrics and Insights
Access Management
Graph Management
Production Readiness
Platform Limits

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.

note
These tools act on your organization's data, so they require authentication. For instructions on how to authenticate, go to the Authentication section.
caution
Create API Key grants new access, and an operator key has full access to your organization. Create API Key returns the new key's value, so your agent receives a working credential. Confirm the key type and the resources it can access before allowing your agent to run this tool, and store the key in a secret manager. Delete API Key can't be undone.

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-key header, your agent can create subgraph and variant keys.

  • With a graph key in the x-api-key header, 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>."