Sync source
/sources/{sourceID}/syncStart a sandbox source-sync simulation for all active policy rules; provisioned design-partner adapters may use the same result shape.
BearerPath parameters
sourceIDRequest body
sync_modeSync mode (default: full)
Response
idUnique identifier for this resource.
source_idUnique identifier (UUID) for the related resource.
sync_modeOne of: full, incremental, single_rule.
trigger_typeWhat initiated the job (e.g. `manual`, `scheduled`, `policy_change`).
statusCurrent lifecycle state of the resource.
rules_pushedNumber of rules the sandbox simulation or provisioned pilot adapter reported as applied.
rules_skippedNumber of rules skipped because the target does not support that category.
rules_failedNumber of rules that returned an error while being applied.
error_messageHuman-readable error detail when the operation failed; null on success.
started_atRFC 3339 timestamp of when the job started running.
completed_atRFC 3339 timestamp of when the job finished.
created_atRFC 3339 timestamp of when the resource was created.
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/sources/5a5a5a5a-1111-4222-8333-444455556666/sync" \
-H "Authorization: Bearer $PHOSRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sync_mode": "incremental"
}'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"source_id": "550e8400-e29b-41d4-a716-446655440000",
"sync_mode": "full",
"trigger_type": "manual",
"status": "pending",
"rules_pushed": 0,
"rules_skipped": 0,
"rules_failed": 0,
"error_message": null,
"started_at": null,
"completed_at": null,
"created_at": "2025-01-15T09:30:00Z"
}