Create Supabase Sync
Create a Supabase Storage Sync for a collection and start the initial backfill. Returns the sync; indexing runs asynchronously.
Path parameters
collection_name
Destination collection.
Headers
Request
This endpoint expects an object.
bucket
Supabase Storage bucket to keep in sync with the collection.
endpoint_url
Supabase S3 endpoint, e.g. https://PROJECT_REF.storage.supabase.co/storage/v1/s3
access_key_id
Supabase S3 access key ID.
secret_access_key
Supabase S3 secret access key. Stored securely, never returned.
processing_type
Parsing tier.
prefix
Key prefix to scope the sync. Empty syncs the whole bucket.
region
Region for the S3 protocol.
include_patterns
Glob patterns; only matching keys are synced.
exclude_patterns
Glob patterns; matching keys are excluded.
deletion_policy
How to propagate deletes.
custom_metadata
Static metadata applied to every synced document.
sync_interval_minutes
Scheduled reconcile cadence (minimum 5; null = manual).
Response
Successful Response
sync_id
collection_name
bucket
prefix
region
storage_type
The sync's cloud storage type.
auth_method
‘iam_role’ for assume-role syncs, ‘access_key’ for access-key syncs.
endpoint_url
S3-compatible endpoint URL (access-key syncs on non-AWS providers); null for AWS S3.
processing_type
include_patterns
exclude_patterns
deletion_policy
status
secret_set
True once an event-webhook secret has been minted.
sns_subscribe_url
Event-webhook subscribe URL (only surfaced by the webhooks endpoint).
last_backfill_job_id
last_reconcile_at
sync_interval_minutes
Effective (already-clamped) cadence; null = manual.
next_sync_at
Epoch ms of the next due scheduled reconcile.
sync_state
last_sync_at
last_sync_error
created_at
updated_at