# How to Call Airtable API from FlutterFlow Without Exposing Personal Access Token

> Airtable Personal Access Tokens (pat...) give access to entire workspaces and bases. Never put your Airtable PAT in FlutterFlow custom headers. Route calls through RealComposer to attach credentials at the edge and flatten Airtables nested JSON response.

- Canonical page: https://realcomposer.com/recipes/call-airtable-from-flutterflow-securely
- Client platform: FlutterFlow
- Upstream services: Airtable
- Category: Security & Secret Vault
- JSON version: https://realcomposer.com/recipes/call-airtable-from-flutterflow-securely.json
- Install in RealComposer (free plan, pre-fills this pipeline): https://realcomposer.com/dashboard/pipelines/new?recipe=call-airtable-from-flutterflow-securely&via=agent

## Problem: Airtable Personal Access Tokens Are High Value Targets

Leaking an Airtable PAT exposes customer databases, lead lists, and internal records to scrapers.

- Competitors downloading your entire Airtable database
- Accidental record deletion and schema tampering

## Solution steps

1. **Store Airtable PAT in Vault**: Save AIRTABLE_PAT in RealComposer Secret Vault.

2. **Flatten Nested Records**: Use RealComposer to flatten records.0.fields.Name into a clean object.

## Pipeline config

Import this config into a RealComposer pipeline. `{{secrets.NAME}}` values are read from the encrypted Secret Vault at request time, so the client never sees them.

```json
{
  "name": "Airtable FlutterFlow Proxy",
  "method": "GET",
  "cacheTtlSeconds": 120,
  "steps": [
    {
      "stepKey": "base",
      "upstreamUrlTemplate": "https://api.airtable.com/v0/appXYZ123/Products?filterByFormula={{query.filter}}",
      "httpMethod": "GET",
      "headersTemplate": {
        "Authorization": "Bearer {{secrets.AIRTABLE_PAT}}"
      },
      "timeoutMs": 3000
    }
  ],
  "outputMapping": {
    "version": 1,
    "fields": [
      {
        "targetPath": "id",
        "sourceStep": "base",
        "sourcePath": "records.0.id"
      },
      {
        "targetPath": "title",
        "sourceStep": "base",
        "sourcePath": "records.0.fields.Name"
      },
      {
        "targetPath": "price",
        "sourceStep": "base",
        "sourcePath": "records.0.fields.Price",
        "type": "number"
      }
    ]
  }
}
```

## Call the pipeline

```bash
curl -X GET "https://realcomposer.com/v1/acme/airtable-products"
```

## Payload before and after

Raw upstream response:

```json
{
  "records": [
    {
      "id": "rec99",
      "fields": {
        "Name": "Edge Kit",
        "Price": 99
      }
    }
  ]
}
```

Slimmed RealComposer response:

```json
{
  "id": "rec99",
  "title": "Edge Kit",
  "price": 99
}
```

## FAQ

### Does this also help with Airtable 5 req/sec rate limit?

Yes! Setting cacheTtlSeconds to 60 or 120 seconds shields your Airtable base from being throttled.
