ScalixScalix Docs
Sign up

PITR API

Point-in-time recovery API to restore a ScalixNova tenant database to an earlier moment through a single REST endpoint in Scalix Cloud.

REST API endpoints for PITR. 2 operations.

Restore to a point in time

plaintext
POST /api/v1/tenants/{tenant_id}/pitr/restore

Initiates a point-in-time restore of a tenant's database.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)

Responses

StatusDescription
200Restore initiated
401Missing or invalid API key
409Recovery target is beyond the archived WAL — retry with an earlier target, or omit the target to restore the latest recoverable point
500Internal error

operationId: restorePitr

Branch a timeline

plaintext
POST /api/v1/tenants/{tenant_id}/timelines/{timeline_id}/branch

Restores the parent timeline's durable base backup + archived WAL into a NEW compute worker replayed to branch_lsn (0 = latest), then routes the branch endpoint. The branch archives onto its own timeline from that point.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
tenant_idpathstringYesTenant id (UUID)
timeline_idpathstringYesParent timeline id (UUID), or main for the primary timeline

Request body

application/json (required) — schema BranchTimelineRequest.

Responses

StatusDescription
201Branch created and routed
400Invalid tenant, timeline, or new_timeline_id
401Missing or invalid API key
409Branch LSN is beyond the archived WAL
500Internal error
501Durability is not configured for this deployment
503No compute capacity for the branch worker

operationId: branchTimeline