Skip to content
Proud to collaborate with Microsoft for Startups

sentry.sync ​

Sync Sentry organizations, projects, and environments to database

Sync Sentry orgs, projects, and environments to DB (no PII). Triggered when a Sentry connection is persisted.

DB operations use context.session (ADR-011). Sentry API calls use self.get_plugin("sentry").

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-sentry
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—Sentry cloud-connection UUID
organization_uuiduuidYes—Organization that owns the connection

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuidstringNo——
organization_uuidstringNo——
orgs_syncedintegerNo——
projects_syncedintegerNo——
environments_syncedintegerNo——
completed_atstringNo——
failed_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—sync_orgsSync started
syncing_environmentsNoNo—completeSyncing environments
syncing_orgsNoNo—sync_projectsSyncing organizations
syncing_projectsNoNo—sync_environmentsSyncing projects
completedNoYesYes—Sync complete
failedNoYesNo—Sync failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedsync_orgssyncing_orgs—
syncing_orgssync_projectssyncing_projects—
syncing_projectssync_environmentssyncing_environments—
syncing_environmentscompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "sentry.sync",
  "initial_data": {
    "connection_uuid": "value",
    "organization_uuid": "value"
  }
}