# Connect Airtable to an on-call rota

> Keep your on-call rota in Airtable. Line copies the shifts from an Airtable view every 5 minutes, and calls ring whoever is on duty in your order.

Source: https://useline.io/help/integrations/airtable  
Section: Integrations and API  
Last updated: 2026-11-23  
Plans: Pro, Business  
Roles: Owner, Manager

Connect Airtable to Line, and you can keep your on-call rota in Airtable. Line copies the shifts from an Airtable view every 5 minutes. When a call comes in, Line rings the people on duty in the order your rota sets. Calls never wait for Airtable: they ring Line's copy.

## Before you start

- Your workspace must be on Pro or Business. Airtable counts towards the integrations limit: Pro has 3, Business has no limit.
- Turn on **On-call rota** first. See [Set up an On-call rota](https://useline.io/help/integrations/on-call-rota).
- You need the **Owner** or **Manager** role in Line.
- You need an Airtable account that can open the base with your rota.
- Each person on the rota must be a member of your Line workspace.

## Create a token in Airtable

Line reads Airtable with a personal access token that you make.

1. In Airtable, open **Builder hub**, then select **Personal access tokens**.
2. Select **Create token**, and give it a name, such as `Line`.
3. In **Scopes**, add `data.records:read` and `schema.bases:read`. Line only reads. It never changes Airtable.
4. In **Access**, add the base that holds your rota.
5. Select **Create token**, and copy the token. Airtable shows it once.

## Connect Airtable

1. In Line, select **Integrations** in the main menu.
2. Select **Airtable**.
3. Select **Connect Airtable**, and paste the token.
4. Select **Connect**. Line checks the token with Airtable. If Airtable refuses it, Line keeps nothing and shows the reason.
5. On the **Sync** page, set **Rota shifts** to **Pull into Line**, then select **Save**. New connections start with **Off**.

## Make a view for Line

Line reads one view of one table. Make a view in Airtable, such as `Line on-call`, and use its filters to choose the rows Line reads. Line reads only rows that end from yesterday to 120 days ahead.

## Map the fields

1. On the Airtable page, select **Field mapping**. From a rota, select **Field mapping** to open the same page with that rota chosen.
2. Pick the base, the table and the view.
3. Pick the row shape, and map the fields. Line offers only the fields that can hold each value.
4. In **Rotas**, pick the Line rota that the table feeds.
5. Select **Save and sync**. Line checks the mapping with Airtable, saves it, and copies the shifts.

| Row shape | One row is | Fields to map |
|---|---|---|
| **One row per shift** | A shift with its whole order | Start, End, Rota (optional), and the 1st to the 8th person |
| **One row per person** | One person on one shift | Start, End, Rota (optional), Person and Position |

With **One row per person**, rows with the same start and end make one shift. Line rings them in **Position** order. A row with no position comes last.

**Start and End.** Use a date and time field, or a date field with a separate time field. Line reads a date and time field as Airtable stores it. Line reads a date with a time field in the rota's time zone, so 08:00 stays 08:00 when the clocks change. Write the time as `08:00`. `24:00` means midnight at the end of the day. A date with no time field covers the whole day.

**People.** A person field can be a collaborator, a linked record, an email or a single line of text.

- A collaborator or an email matches the member with that email at once.
- Any other value, such as `Anna`, goes to the **People** table on the Field mapping page. Match it to a member once, and Line keeps the match. A name with no match shows in amber: Line imports its shifts without that person.

**Rota.** Use a Rota field when one Airtable table holds several rotas, for example one for each site. The **Rotas** table lists each value in the view with its number of rows. Pick the Line rota for each value, or **Do not import**. Each Line rota takes one value. When a rota no longer gets a value, Line stops syncing it and deletes the shifts it copied into it.

A row of the **One row per shift** shape with no people means nobody is on duty. Calls take the workflow step's **No answer** branch.

## What Airtable can do

- **Keep the rota in Airtable.** Line copies the shifts in the view every 5 minutes. Select **Sync now** on the rota page or the **Sync** page to copy them at once.
- **Ring the people on duty.** The workflow's **Ring Members** step rings the rota. The calls use Line's copy, so they still ring when Airtable is slow or down.
- **Feed several rotas from one table** with a Rota field.
- **Show rows that need a fix.** The **Activity** page lists each row Line could not read, with a link to the row in Airtable.

### What does not sync

- Line does not write to Airtable. A change you make in Line stays in Line, and the rota marks it "Changed in Line. Airtable is not updated."
- A change made in Line wins over the Airtable shift, and a sync never deletes it.
- Weekly patterns come from Line only.
- Line does not read a row with no end, or a row that ends outside the window.
- When a row leaves the view, Line deletes its copy of that shift at the next sync.

### When a sync fails

Line keeps the last good copy, and calls still ring it. The failure shows on **Activity**. After 30 minutes without a good sync, the rota page shows a warning. After 2 hours, Line emails the Owner and the people who can manage rotas, once a day, until the sync works again.

### Turn it off

Set **Rota shifts** to **Off** on the **Sync** page, or select **Disconnect**. Line deletes the shifts it copied from Airtable. Weekly patterns, shifts made in Line and changes stay.

## Common problems

**Airtable refused the token.** Check that you copied all of it. If someone deleted the token in Airtable, make a new one, then select **Reconnect** on the Airtable **Overview**.

**The token cannot open this base.** Edit the token in Airtable. Add the scopes `data.records:read` and `schema.bases:read`, and add the base in **Access**.

**A row shows in Activity as not imported.** Open the row from the link. Check that it has a start, and that the end is after the start. Check that the times are written as `08:00`.

**A person is missing from a shift.** Line imported the shift without a person it could not match. Select **Match** beside the row in **Activity**, or open **Field mapping**. In the **People** table, match the name to a member, then select **Save and sync**.

**A field is not in the list.** Line offers only fields of a type that can hold the value. For example, Start needs a date or date and time field.

**The view has more than 5,000 rows.** Add a filter to the view in Airtable, so it shows only the on-call rows.

## Related articles

- [What you can connect to Line](https://useline.io/help/integrations/integrations-overview.md): Line connects to Google Calendar, Microsoft Calendar, SimPRO, what3words, a browser for agents, your own HTTP and MCP tools, and the SMS API. Email to SMS works with any software that sends email.
- [Set up an On-call rota](https://useline.io/help/integrations/on-call-rota.md): Turn on On-call rota to ring whoever is on duty, in your order. Plan weekly and dated shifts in Line, change a shift at short notice, and keep the rota in Airtable if you prefer.
- [Compare the Starter, Pro and Business plans](https://useline.io/help/billing/plans.md): Line has three plans. Starter is a number and a team inbox. Pro adds recording, WhatsApp, templates and more agents. Business removes the limits.
- [Connect Google Calendar or Microsoft Calendar](https://useline.io/help/integrations/connect-a-calendar.md): Connect Google Calendar or Microsoft Calendar in Integrations so your agents can check free times and book meetings. A person approves each booking. Pro and Business only.
