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

API Key Permissions

Compare what graph, variant, and subgraph API keys can access


Graph, variant, and subgraph API keys let non-user systems, such as your router or CI/CD pipelines, access resources in a graph. Each key type has a different scope and a different set of permissions. Use this page to choose the key with the least access your workflow needs.

The tables on this page use these access levels:

  • Read/Write: The key can view and change the resource.

  • Read: The key can view the resource but not change it.

  • No access: The key can't view or change the resource.

Scope at a glance

Key typeScopeWho can create itExpirationPermissions
Graph API keyEvery variant of one graphOrg Admin or Graph AdminNoneSet by the key's role
Variant API keyOne or more listed variants of one graph, plus their contract variants. The key can also read every other variant of the graph.Org Admin or Graph Admin on an Enterprise or Standard planOne year after creationFixed, predefined set
Subgraph API keyOne or more listed subgraph-variant pairs. The key also has broad access to each subgraph's graph and variant.Org Admin or Graph Admin on an Enterprise or Standard planOne year after creationFixed, predefined set
note
When you create a variant API key, it includes every contract variant that exists for the selected variants at that time. If you create a new contract variant later, the existing key doesn't cover it. Replace the key to include the new contract variant.Variant API keys can read contracts but can't create contract variants.

Permissions by key type

A graph API key has the same permissions as an organization member with the same role on that graph. For the permissions of each role, see Role permissions. The tables below show "By role" for graph API keys instead of repeating that list.

Organization

ResourceGraph API keyVariant API keySubgraph API key
Organization detailsNo accessReadRead
Organization configuration, members, and billingNo accessNo accessNo access

Graph

ResourceGraph API keyVariant API keySubgraph API key
Graph details and list of variantsBy roleReadRead
Graph title, description, avatar, and READMEBy roleNo accessRead/Write
Delete or restore the graphBy roleNo accessRead/Write
Graph API keysBy roleNo accessRead
Graph integrations (Slack, Datadog, and others)By roleNo accessRead/Write
Graph access settingsBy roleReadRead/Write
Schema checks configurationBy roleRead/WriteRead/Write
Build configuration (for example, the Federation version)By roleReadRead/Write
ContractsBy roleReadRead/Write
Schema proposal settings and permissionsBy roleReadRead/Write
Registered operationsBy roleReadRead/Write
Persisted query listsBy roleWrite (publish only)No access
Usage metricsBy roleNo accessRead
TracesBy roleNo accessRead/Write

Variant

Unless a row says otherwise, variant API keys have these permissions on each listed variant and its contract variants. Subgraph API keys have them on the variant of each listed subgraph.

ResourceGraph API keyVariant API keySubgraph API key
Variant schemaBy roleRead/WriteRead/Write
Schema checks, on any variant of the graphBy roleRead/WriteRead/Write
Variant settings (for example, whether a variant is public)By roleReadRead/Write, on any variant of the graph
Variant README and link infoBy roleRead/WriteRead/Write
Explorer settingsBy roleRead/WriteRead/Write
Launch historyBy roleReadRead
Other variants of the same graphBy roleReadRead
New variantsBy roleNo accessRead/Write

Subgraph

ResourceGraph API keyVariant API keySubgraph API key
Subgraph schemasBy roleRead/Write, for subgraphs in listed variantsRead/Write, for listed subgraphs only
New subgraphsBy roleRead/Write, in listed variantsRead/Write, for listed subgraph-variant pairs only