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

# Grain (API Key) - How do I link my account?

> Generate a Grain personal access token and connect it to Nango

## Overview

To authenticate with Grain, you need:

1. **Personal Access Token** - A token that gives access to all meetings your Grain user can access.

This guide walks you through generating a personal access token and connecting it to Nango.

### Prerequisites

* A Grain account.

### Instructions

#### Step 1: Generate a personal access token

1. Sign in to [Grain](https://grain.com).
2. Go to **Settings** > **Integrations** > **Personal API**, or open the [Personal API page](https://grain.com/app/settings/account/integrations/personal_api) directly.
3. Under **Personal tokens**, click **Generate personal API token**.

![](https://mintcdn.com/nango/WUiZuxTudnTzwkNo/api-integrations/grain-api-key/generate_api_key.png?fit=max\&auto=format\&n=WUiZuxTudnTzwkNo\&q=85\&s=fd8c64e668f38539416262d88c9739f6)

4. Copy the token and store it securely. It starts with `grain_pat_`.

The token has the same access as your Grain user and doesn't expire until you revoke it. For more details, see Grain's [authentication docs](https://developers.grain.com/authentication.html).

#### Step 2: Enter credentials in the Connect UI

Once you have your **Personal Access Token**:

1. Open the form where you need to authenticate with Grain.
2. Paste your token into the **Personal Access Token** field.
3. Click **Connect**.

![](https://mintcdn.com/nango/WUiZuxTudnTzwkNo/api-integrations/grain-api-key/form.png?fit=max\&auto=format\&n=WUiZuxTudnTzwkNo\&q=85\&s=491a3b936594859fa4746b7dda4094cf)

You are now connected to Grain.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.