Space Docs
Domain Model

External Connection

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
providerenum(google_workspace, telegram, whatsapp, discord, generic_monitoring, slack, microsoft_teams, jira, github, openclaw, onestep_gps, laravel_crm, structros)Yes—Provider
connectionTypeenum(user_oauth, service_account, bot_token, webhook, github_app)Yes—Connection type
connectionStatusenum(active, disconnected, expired, revoked, error)Yes—Connection status
owningWorkspaceIdstringNo—ID of the associated owning workspace
owningUserIdstringNo—ID of the associated owning user
labelstringNo—Label
scopesJsonstring[]No—Scopes json
encryptedCredentialsRefstringNo—Encrypted credentials ref
externalPrincipalIdstringNo—ID of the associated external principal
configurationJsonobjectNo—Configuration json
lastSyncAtstring.date-timeNo—Last sync at
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode
connectionRoleenum(orchestrator, personal)Yes—Connection role
aiAccessEnabledbooleanYes—Ai access enabled

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
providerenum(google_workspace, telegram, whatsapp, discord, generic_monitoring, slack, microsoft_teams, jira, github, openclaw, onestep_gps, laravel_crm, structros)Yes—Provider
connectionTypeenum(user_oauth, service_account, bot_token, webhook, github_app)Yes—Connection type
connectionStatusenum(active, disconnected, expired, revoked, error)Yes"active"Connection status
owningWorkspaceIdstringNo—ID of the associated owning workspace
owningUserIdstringNo—ID of the associated owning user
labelstringNo—Label
scopesJsonstring[]No—Scopes json
encryptedCredentialsRefstringNo—Encrypted credentials ref
externalPrincipalIdstringNo—ID of the associated external principal
configurationJsonobjectNo—Configuration json
lastSyncAtstring.date-timeNo—Last sync at
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownNo—Visibility mode
externalSubstringNo—External sub
connectionRoleenum(orchestrator, personal)Yes"personal"Connection role
aiAccessEnabledbooleanYesfalseAi access enabled

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
connectionStatusenum(active, disconnected, expired, revoked, error)No—Connection status
owningWorkspaceIdstringNo—ID of the associated owning workspace
owningUserIdstringNo—ID of the associated owning user
labelstringNo—Label
scopesJsonstring[]No—Scopes json
encryptedCredentialsRefstringNo—Encrypted credentials ref
externalPrincipalIdstringNo—ID of the associated external principal
configurationJsonobjectNo—Configuration json
lastSyncAtstring.date-timeNo—Last sync at
externalSubstringNo—External sub
connectionRoleenum(orchestrator, personal)No—Connection role
aiAccessEnabledbooleanNo—Ai access enabled

On this page