Syncs
9 operations, generated from the OpenAPI document.
Add a table synced from a table or view you can read (creators and up)
POST /api/bases/{baseId}/syncs
Access: table:create_sync on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Request body
namestringsourceobject requiredfieldIdsarray of string (uuid)keyFieldIdstring (uuid) | nullcolumnsarray of objectnamestring requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | …optionsobject
keyColumnstring | nullschedule"manual" | "5m" | "hourly" | "daily"
Responses
201Successidstring (uuid) requiredbaseIdstring (uuid) requiredtableIdstring (uuid) requiredsourceobject requiredkind"table" | "csv" | "postgres" | "connector" requiredworkspaceIdstring (uuid) | null requiredbaseIdstring (uuid) | null requiredtableIdstring (uuid) | null requiredviewIdstring (uuid) | null requiredlabelstring requiredconnectorstring | null required
keyFieldIdstring (uuid) | null requiredkeyColumnstring | null requiredfieldsarray of object requiredsourceFieldIdstring (uuid) | null requiredcolumnstring | null requiredfieldIdstring (uuid) required
sourceFieldIdstring (uuid) requiredschedule"manual" | "5m" | "hourly" | "daily" requiredstatus"active" | "paused" requiredpauseReason"paused" | "access_lost" | "source_deleted" | "too_many_records" | null requiredcreatedBystring (uuid) | null requiredlastSyncedAtstring (date-time) | null requirednextRunAtstring (date-time) | null requiredcreatedAtstring (date-time) requiredrunsarray of object requiredidstring (uuid) requiredtrigger"create" | "manual" | "schedule" requiredstatus"queued" | "running" | "succeeded" | "failed" | "paused" requiredcreatedinteger requiredupdatedinteger requireddeletedinteger requiredunchangedinteger requiredskippedinteger requirederrorstring | null requiredcreatedAtstring (date-time) requiredstartedAtstring (date-time) | null requiredfinishedAtstring (date-time) | null required
canManageboolean required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Preview a CSV URL, Postgres or connector source (creators and up)
POST /api/bases/{baseId}/syncs/preview
Access: table:create_sync on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Request body
sourceobject required
Responses
200Successlabelstring requiredcolumnsarray of object requirednamestring requiredtype"singleLineText" | "longText" | "number" | "currency" | "percent" | "checkbox" | "date" | "dateTime" | … requiredoptionsobject required
rowsarray of array of string required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
List a sync connector's items with your connected account (creators and up)
POST /api/bases/{baseId}/syncs/browse
Access: table:create_sync on the base (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
baseId | path | string | yes |
Request body
connectorstring requiredpatharray of stringsearchstring
Responses
200Successitemsarray of object requiredidstring requirednamestring requireddetailstring | null requiredleafboolean required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
A synced table's source, schedule and recent runs
GET /api/tables/{tableId}/sync
Access: table:read_sync on the table (see ACTIONS for the minimum role); personal access tokens need schema.bases:read.
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requiredtableIdstring (uuid) requiredsourceobject requiredkind"table" | "csv" | "postgres" | "connector" requiredworkspaceIdstring (uuid) | null requiredbaseIdstring (uuid) | null requiredtableIdstring (uuid) | null requiredviewIdstring (uuid) | null requiredlabelstring requiredconnectorstring | null required
keyFieldIdstring (uuid) | null requiredkeyColumnstring | null requiredfieldsarray of object requiredsourceFieldIdstring (uuid) | null requiredcolumnstring | null requiredfieldIdstring (uuid) required
sourceFieldIdstring (uuid) requiredschedule"manual" | "5m" | "hourly" | "daily" requiredstatus"active" | "paused" requiredpauseReason"paused" | "access_lost" | "source_deleted" | "too_many_records" | null requiredcreatedBystring (uuid) | null requiredlastSyncedAtstring (date-time) | null requirednextRunAtstring (date-time) | null requiredcreatedAtstring (date-time) requiredrunsarray of object requiredidstring (uuid) requiredtrigger"create" | "manual" | "schedule" requiredstatus"queued" | "running" | "succeeded" | "failed" | "paused" requiredcreatedinteger requiredupdatedinteger requireddeletedinteger requiredunchangedinteger requiredskippedinteger requirederrorstring | null requiredcreatedAtstring (date-time) requiredstartedAtstring (date-time) | null requiredfinishedAtstring (date-time) | null required
canManageboolean required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Change a sync's schedule, pause or resume it (creators and up)
PATCH /api/tables/{tableId}/sync
Access: table:manage_sync on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Request body
schedule"manual" | "5m" | "hourly" | "daily"pausedboolean
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requiredtableIdstring (uuid) requiredsourceobject requiredkind"table" | "csv" | "postgres" | "connector" requiredworkspaceIdstring (uuid) | null requiredbaseIdstring (uuid) | null requiredtableIdstring (uuid) | null requiredviewIdstring (uuid) | null requiredlabelstring requiredconnectorstring | null required
keyFieldIdstring (uuid) | null requiredkeyColumnstring | null requiredfieldsarray of object requiredsourceFieldIdstring (uuid) | null requiredcolumnstring | null requiredfieldIdstring (uuid) required
sourceFieldIdstring (uuid) requiredschedule"manual" | "5m" | "hourly" | "daily" requiredstatus"active" | "paused" requiredpauseReason"paused" | "access_lost" | "source_deleted" | "too_many_records" | null requiredcreatedBystring (uuid) | null requiredlastSyncedAtstring (date-time) | null requirednextRunAtstring (date-time) | null requiredcreatedAtstring (date-time) requiredrunsarray of object requiredidstring (uuid) requiredtrigger"create" | "manual" | "schedule" requiredstatus"queued" | "running" | "succeeded" | "failed" | "paused" requiredcreatedinteger requiredupdatedinteger requireddeletedinteger requiredunchangedinteger requiredskippedinteger requirederrorstring | null requiredcreatedAtstring (date-time) requiredstartedAtstring (date-time) | null requiredfinishedAtstring (date-time) | null required
canManageboolean required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it422The request failed validation429Too many requests: a rate limit was reached (see Retry-After)
Stop syncing: the table keeps its records as a normal table (creators and up)
DELETE /api/tables/{tableId}/sync
Access: table:manage_sync on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Responses
204Success, no content401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
Sync now: queue a run of the sync (editors and up)
POST /api/tables/{tableId}/sync/run
Access: table:run_sync on the table (see ACTIONS for the minimum role); signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
tableId | path | string | yes |
Responses
200Successidstring (uuid) requiredbaseIdstring (uuid) requiredtableIdstring (uuid) requiredsourceobject requiredkind"table" | "csv" | "postgres" | "connector" requiredworkspaceIdstring (uuid) | null requiredbaseIdstring (uuid) | null requiredtableIdstring (uuid) | null requiredviewIdstring (uuid) | null requiredlabelstring requiredconnectorstring | null required
keyFieldIdstring (uuid) | null requiredkeyColumnstring | null requiredfieldsarray of object requiredsourceFieldIdstring (uuid) | null requiredcolumnstring | null requiredfieldIdstring (uuid) required
sourceFieldIdstring (uuid) requiredschedule"manual" | "5m" | "hourly" | "daily" requiredstatus"active" | "paused" requiredpauseReason"paused" | "access_lost" | "source_deleted" | "too_many_records" | null requiredcreatedBystring (uuid) | null requiredlastSyncedAtstring (date-time) | null requirednextRunAtstring (date-time) | null requiredcreatedAtstring (date-time) requiredrunsarray of object requiredidstring (uuid) requiredtrigger"create" | "manual" | "schedule" requiredstatus"queued" | "running" | "succeeded" | "failed" | "paused" requiredcreatedinteger requiredupdatedinteger requireddeletedinteger requiredunchangedinteger requiredskippedinteger requirederrorstring | null requiredcreatedAtstring (date-time) requiredstartedAtstring (date-time) | null requiredfinishedAtstring (date-time) | null required
canManageboolean required
401Not signed in403Signed in, but the role is too low404No such resource, or no access to it429Too many requests: a rate limit was reached (see Retry-After)
The sync connectors and your connected accounts
GET /api/me/sync-connectors
Access: any signed-in user, for their own data; signed-in session only (no personal access tokens).
Responses
200Successconnectorsarray of object requiredidstring requirednamestring requireddescriptionstring requiredlevelsarray of string requiredaccountobject | null requiredlabelstring requiredconnectedAtstring (date-time) required
401Not signed in429Too many requests: a rate limit was reached (see Retry-After)
Disconnect your account from a sync connector (its tokens are revoked)
DELETE /api/me/sync-connectors/{connectorId}
Access: any signed-in user, for their own data; signed-in session only (no personal access tokens).
Parameters
| Name | In | Type | Required |
|---|---|---|---|
connectorId | path | string | yes |
Responses
204Success, no content401Not signed in429Too many requests: a rate limit was reached (see Retry-After)