> ## Documentation Index
> Fetch the complete documentation index at: https://docs.learningcommons.org/llms.txt
> Use this file to discover all available pages before exploring further.

# API keys

> Create, view, and revoke Learning Commons Platform API keys for Knowledge Graph REST API and MCP server authentication.

API keys authenticate requests from your [organization](https://docs.learningcommons.org/platform/understanding-the-platform/organizations.md) to the Learning Commons [REST API](https://docs.learningcommons.org/api-reference) and [Knowledge Graph MCP server](https://docs.learningcommons.org/knowledge-graph/using-knowledge-graph/mcp-server.md).

Manage keys at [**API keys**](https://platform.learningcommons.org/api-keys) ↗ in the Learning Commons Platform.

## Permissions

| | |
| :- | :- |
| View or create API keys | All users |
| Revoke API keys | Admin only |

See [User roles](https://docs.learningcommons.org/platform/understanding-the-platform/user-roles.md) for the full permission list.

## Create and use API keys

**1. Create and name your key**

Go to [**API keys**](https://platform.learningcommons.org/api-keys) ↗ to create a new key.

Be sure to give the key a name that your team will recognize.

**2. Store the key**

Copy the key when it is shown. Store it in a secrets manager or environment variable.

> [!WARNING]
>
> Treat API keys like passwords. Do not commit them to source control or share them in chat or tickets.

**3. Use the key**

Make a request to the [Knowledge Graph API](https://docs.learningcommons.org/knowledge-graph/using-knowledge-graph/rest-api.md) - include your API key in the request header as `x-api-key`:

```bash theme={null}
curl -X GET \
  -H "x-api-key: YOUR_API_KEY" \
  "https://api.learningcommons.org/knowledge-graph/v0/standards-frameworks?academicSubject=Mathematics&jurisdiction=Multi-State"
```

For MCP setup, see [Knowledge Graph MCP server](https://docs.learningcommons.org/knowledge-graph/using-knowledge-graph/mcp-server.md).

## Revoke API keys

Admin only

**1. Open API keys**

Go to [**API keys**](https://platform.learningcommons.org/api-keys) ↗.

**2. Revoke the key**

Revoke any key that is unused, exposed, or tied to a project you no longer
need.

> [!NOTE]
>
> API keys belong to an organization and cannot be transferred. If a key was
> created under the wrong organization, create a new key in the correct
> organization and update your clients.

## Related topics

> [card] [API keys](https://platform.learningcommons.org/api-keys)
>
> Create your first API key.

> [card] [API reference](https://docs.learningcommons.org/api-reference/platform-api/overview.md)
>
> Review Knowledge Graph endpoints and authentication details.

> [card] [Dataset catalog](https://docs.learningcommons.org/platform/using-the-platform/dataset-catalog.md)
>
> Browse and download Knowledge Graph datasets.

> [card] [Organizations](https://docs.learningcommons.org/platform/understanding-the-platform/organizations.md)
>
> Understand how API keys are scoped to organizations.
