> ## 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.

# BART - How do I link my account?

## Overview

To authenticate with BART, you need:

1. **Validation Key** — a key for the BART Legacy API.

This guide will show you how to get it.

### Prerequisites

* A valid email address, if you register for your own key. The key is free, and there is no account or dashboard.

### Step 1: Get a validation key

1. Open the [BART API Key Registration](https://api.bart.gov/api/register.aspx) page.
2. Enter your first name, last name and email address, then confirm your email.
3. Tick **I've read the License Agreement**, complete the reCAPTCHA and click **Submit**.

![BART API Key Registration form with name, email, License Agreement checkbox and Submit button](https://mintcdn.com/nango/D6kgrae1pAX6QdRA/api-integrations/bart/register_form.png?fit=max\&auto=format\&n=D6kgrae1pAX6QdRA\&q=85\&s=fa6a73a2d758e13cbcfe1c1c8f8b6c55)

4. BART emails you your validation key. Copy it from the email.

Alternatively, use BART's public key without registering. It is listed under **Two ways to get a Legacy API key** on the [BART Legacy API](https://www.bart.gov/schedules/developers/api) page. BART may refresh the public key; a key you registered for keeps working when it does.

![BART Legacy API page with the public key under Two ways to get a Legacy API key](https://mintcdn.com/nango/D6kgrae1pAX6QdRA/api-integrations/bart/public_key.png?fit=max\&auto=format\&n=D6kgrae1pAX6QdRA\&q=85\&s=72e42c19408681cd14c27edeb0a53333)

### Step 2: Enter your validation key in the Connect UI

1. Open the form where you need to authenticate with BART.
2. Paste your key into the **Validation Key** field.
3. Submit the form, and you should be successfully authenticated.

![BART Connect UI form with the Validation Key field](https://mintcdn.com/nango/D6kgrae1pAX6QdRA/api-integrations/bart/form.png?fit=max\&auto=format\&n=D6kgrae1pAX6QdRA\&q=85\&s=7d6ed1dfbce55063fe94dc5007baabcf)

You are now connected to BART.


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