> ## 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](/platform/understanding-the-platform/organizations) to the Learning Commons [REST API](/api-reference) and [Knowledge Graph MCP server](/knowledge-graph/using-knowledge-graph/mcp-server).

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

## Permissions

|                         |                                        |
| :---------------------- | :------------------------------------- |
| View or create API keys | <Badge color="green">All users</Badge> |
| Revoke API keys         | <Badge>Admin only</Badge>              |

See [User roles](/platform/understanding-the-platform/user-roles) for the full permission list.

## Create an API key

<Steps>
  <Step title="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.
  </Step>

  <Step title="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.
    </Warning>
  </Step>
</Steps>

## Use an API key

Include your key in request headers 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](/knowledge-graph/using-knowledge-graph/mcp-server).

## Revoke an API key

<Badge>Admin only</Badge>

<Steps>
  <Step title="Open API keys">
    Go to [**API keys**](https://platform.learningcommons.org/api-keys) ↗.
  </Step>

  <Step title="Revoke the key">
    Revoke any key that is unused, exposed, or tied to a project you no longer
    need.
  </Step>
</Steps>

<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.
</Note>

## Related topics

<CardGroup cols={2}>
  <Card title="API keys" icon="key" href="https://platform.learningcommons.org/api-keys">
    Create your first API key.
  </Card>

  <Card title="API reference" icon="code" href="/api-reference/platform-api/overview">
    Review Knowledge Graph endpoints and authentication details.
  </Card>

  <Card title="Dataset catalog" icon="database" href="/platform/using-the-platform/dataset-catalog">
    Browse and download Knowledge Graph datasets.
  </Card>

  <Card title="Organizations" icon="building" href="/platform/understanding-the-platform/organizations">
    Understand how API keys are scoped to organizations.
  </Card>
</CardGroup>
