- Go to https://coda.io/account
- Navigate to the API Settings section
- Click Generate API token
- Copy the token (it looks like:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) - Paste it into
.envasCODA_API_KEY
- Open your Coda document (the one with the evaluations table)
- Look at the URL in your browser:
https://coda.io/d/_dOyXJoZ6imx#All-unfinished-current-Tasks_tuXFw ^^^^^^^^^^^ This is your doc ID - Copy the part after
/d/(including the_dprefix) - Paste it into
.envasCODA_DOC_ID
cd scripts/coda_integration
python setup_coda.pyThis will:
- Connect to your Coda account
- List all your documents
- Show all tables in your selected document
- Display table IDs and sample data
- Help you confirm you have the right table
- Open the table in Coda
- Click the table menu (⋮) → Copy table link
- The link contains the table ID:
https://coda.io/d/_dOyXJoZ6imx/Evaluations_suABC123 ^^^^^^^^ This is the table ID - Paste it into
.envasCODA_TABLE_ID
cd scripts/coda_integration
python test_coda_connection.pyThis will:
- Verify your API key works
- Check document access
- Show sample data from the table
- Confirm all fields are accessible
CODA_API_KEY=a1b2c3d4-1234-5678-9abc-def012345678
CODA_DOC_ID=_dOyXJoZ6imx
CODA_TABLE_ID=grid-suABC123XYZ- ✅
.envis in.gitignore- won't be committed - ✅ Scripts use environment variables only
- ✅ Sensitive data stored in
evaluation_data/confidential/(also gitignored) ⚠️ Never share your API key⚠️ Never commit.envto git
Make sure you've created .env in the repository root (not in a subdirectory).
- Check your API key is correct
- Make sure you have access to the document
- Try regenerating your API token in Coda
- Verify the table ID is correct
- Use
setup_coda.pyto list all available tables - Check you have permission to access the table
Once your .env is configured:
- Test connection:
python scripts/coda_integration/test_coda_connection.py - Fetch data:
python scripts/coda_integration/fetch_from_coda.py - Create packages: Use
create_package_from_data.pywithcreate_from_coda()
QUICKSTART_CODA.md- Quick 5-step guide.env.example- Template with all optionsscripts/coda_integration/README.md- Integration details