API referenceSections

Copy the database to a new one on the same server and engine, with its own account; the password is shown once

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/databases/{id}/copy

Copy the database to a new one on the same server and engine, with its own account; the password is shown once

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • name string required
Example
{
  "name": "string"
}

Responses

201 Queued

Content type: application/json

Database & object
  • id string required
  • tenant_id string required
  • server_id string required
  • name string required
  • engine string required
    Allowed values: "mariadb" "mysql" "mssql" "postgres" "mongodb"
  • job_id string required
  • error_code string required
  • created_at string (date-time) required
  • status string required
    Allowed values: "provisioning" "active" "failed" "deleting" "delete_failed"
  • host string required
  • port integer required
  • managed_by string required
  • password string required
Example
{
  "id": "string",
  "tenant_id": "string",
  "server_id": "string",
  "name": "string",
  "engine": "mariadb",
  "job_id": "string",
  "error_code": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "status": "provisioning",
  "host": "string",
  "port": 0,
  "managed_by": "string",
  "password": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required