Skip to content

app.integration_connections

TableRow level security on

An org's connection to one provider account (Section 17). Holds non-secret metadata only: the credential itself lives in Supabase Vault (Section 9) and is read only by the service role. One live connection per org, provider and provider account.

Primary key: id

Columns of app.integration_connections
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOrg that owns the connection.References app.organizations.id
provider_codetextNoConnector from the provider catalog. Fixed after insert.References private.integration_providers.provider_code
display_nametextNoName the org gives the connection.
external_account_idtextYesProvider tenant, company, workspace or account identifier.
external_account_nametextYesProvider account name, as the provider reports it.
provider_settingsjsonbNoProvider configuration payload (calendar ids, default accounts, channel routing defaults), validated by the connector. Never holds secrets.
connection_stateapp.integration_connection_stateNoConnection state. Changes only through app.transition_integration_connection and the runner RPCs.
credential_kindapp.integration_credential_kindYesKind of the stored Vault credential, or NULL when none is stored. Set only by app.store_integration_credential.
credential_stored_attimestamp with time zoneYesWhen the current credential was stored. Set only by app.store_integration_credential.
credential_expires_attimestamp with time zoneYesWhen the stored credential expires, when the provider says.
last_synced_attimestamp with time zoneYesWhen a sync run last succeeded.
last_error_codetextYesRule code of the last connection error, cleared on success.
last_error_messagetextYesProvider message of the last connection error, cleared on success.
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id