Skip to main content
View rawEdit

DBLab API reference

DBLab API (DLE API) is a REST API. It can be used in multiple ways:

  • directly, using a common tool (e.g., curl, HTTPie) or code (Python, Go, Ruby, PHP, NodeJS, and virtually any language or framework that supports work with REST APIs)
  • indirectly, in command-line environment: DLE CLI operates on top of the DLE API
  • indirectly, in browser: DBLab UI, being a React application, speaks to the DLE API as well

DBLab API reference documentation is available at the following locations:

The references are published using the comprehensive ReadMe service, equipped with a developer dashboard and provides code snippets in numerous languages.

Authentication

All API endpoints (except /healthz and /metrics) require the Verification-Token header:

curl -H "Verification-Token: YOUR_TOKEN" http://localhost:2345/status

Endpoint summary

Instance

MethodPathDescription
GET/statusInstance status, info, and list of clones
GET/healthzHealth check (no auth required)
GET/metricsPrometheus metrics (no auth required, DLE 4.1+)
GET/instance/retrievalData refresh status
POST/full-refreshTrigger full data refresh (DLE 4.0+)

Clones

MethodPathDescription
GET/clonesList all clones (DLE 4.0+)
POST/cloneCreate a clone
GET/clone/{id}Retrieve a clone
PATCH/clone/{id}Update a clone (protection status)
DELETE/clone/{id}Delete a clone
POST/clone/{id}/resetReset a clone to a snapshot

Snapshots

MethodPathDescription
GET/snapshotsList all snapshots
POST/snapshotCreate a snapshot (DLE 4.0+)
DELETE/snapshot/{id}Delete a snapshot (DLE 4.0+)
GET/branch/snapshot/{id}Retrieve a snapshot (DLE 4.0+)
POST/branch/snapshotCreate a snapshot from clone (DLE 4.0+)

Branches (DLE 4.0+)

MethodPathDescription
GET/branchesList all branches
POST/branchCreate a branch
DELETE/branch/{branchName}Delete a branch
GET/branch/{branchName}/logRetrieve branch log (snapshot history)

Observation (experimental)

MethodPathDescription
POST/observation/startStart observation session
POST/observation/stopStop observation session
GET/observation/summary/{clone_id}/{session_id}Get observation summary
GET/observation/downloadDownload observation artifact

Admin

MethodPathDescription
GET/admin/configGet config (JSON)
POST/admin/configSet config
GET/admin/config.yamlGet full config (YAML)
POST/admin/test-db-sourceTest source database connection
POST/admin/ws-authWebSocket authentication

New in DBLab Engine 4.1

  • /metrics endpoint: Prometheus metrics for monitoring (no authentication required). See Prometheus monitoring.
  • Protection leases: The CreateClone and UpdateClone requests now accept a protectionDurationMinutes field for time-limited clone protection. The Clone response includes protectedTill showing when protection expires. See Clone protection.
  • clone_delete webhook: A new webhook trigger type for clone deletion events. See Webhook configuration.