Skip to main content
Asynchronous independent database branches hydrated from current data, a backup, or a recoverable timestamp, with explicit expiry and promotion.

databaseBranches.list

List database branches sourced from this database.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

An array of objects with these fields:

databaseBranches.create

Hydrate a new independent database branch asynchronously. Production-data previews require explicit project opt-in outside this operation.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: dangerous · sensitive (elevated blast radius)

Request body

Example

Responses

Response body (202)

databaseBranches.get

Get branch hydration progress and database id.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

databaseBranches.update

Change branch expiry or automatic preview cleanup without changing its data source.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: admin
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: write · sensitive (elevated blast radius)

Request body

Example

Responses

Response body (200)

databaseBranches.delete

Permanently delete the independent branch database and its data.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Risk: destructive · sensitive (elevated blast radius)

Example

Responses

databaseBranches.previewPromotion

Preview the exact binding swap and mint a short-lived one-use confirmation bound to its current version.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Risk: dangerous · sensitive (elevated blast radius)

Request body

Example

Responses

Response body (200)

databaseBranches.promote

Explicitly promote a ready branch by swapping one application binding. No data or schema is merged back automatically.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Risk: dangerous · sensitive (elevated blast radius)

Request body

Example

Responses

Response body (200)

databaseBranches.getPreviewPolicy

Get the project’s persisted opt-in policy for attaching an isolated database branch to pull-request previews.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: member
  • Risk: read

Example

Responses

Response body (200)

databaseBranches.updatePreviewPolicy

Explicitly opt a project into preview database branches and select the source environment/database. Production data requires allowProductionData=true from an owner.
  • Auth: Organization API key (Authorization: Bearer korve_...) or dashboard session.
  • Minimum role: owner
  • Billing: requires active organization billing — returns 402 otherwise.
  • Risk: dangerous · sensitive (elevated blast radius)

Request body

Example

Responses