postÖffentliche API v1

/api/v1/backup/start

Upload flow: (1) POST /backup/start with the file size → id, partSize, partCount and presigned part URLs; (2) PUT each part (bytes (n-1)*partSize … n*partSize-1, the last part is the remainder) to its URL, in parallel if you like, and keep the ETag response header; (3) POST /backup/complete with all { partNumber, etag }. File bytes go straight to storage, never through the API. URLs are valid 12 hours; get fresh ones via /backup/part-urls.

Requires the Enterprise tariff (PUBLIC_BACKUP_TARIFF_NOT_SUPPORTED otherwise). Returns up to 100 part URLs; request the rest via /backup/part-urls.

backupbackupStart

Request-Body

application/json
filenamestringPflicht

Original file name. Stored normalized with a random 16-char suffix.

Länge: 1–200
Beispielprod-db-2026-11-25.sql.zst
sizestring | integerPflicht

Exact file size in bytes (max 1 TiB).

Eine von 2 Varianten:
Variante 1
stringinteger
Standard: 0
Variante 2
integer

Exact file size in bytes (max 1 TiB).

Bereich: 1–1099511627776
Beispiel52428800
namestringOptional

Human label shown in admin.

Länge: 0–255
BeispielNightly production DB dump
sourcestringOptional

Logical stream code that groups backups of one origin.

Länge: 0–64
Beispielprod-db
periodstringOptional

Month folder YYYY-MM (storage path backup/{period}/…). Defaults to the current month; an invalid value is replaced by the current month. Use it when importing historical backups.

Länge: 0–16
Beispiel2026-11
contentTypestringOptional

MIME type. Derived from the extension when omitted.

Länge: 0–128
Beispielapplication/zstd
isClientEncryptedbooleanOptional

The file is encrypted on the client (age, gpg, …). Informational.

createdAtstringOptional

When the data was produced (ISO 8601), e.g. the dump start.

Beispiel2026-11-25T02:00:00Z
metaobjectOptional

Free-form metadata (hostname, tool, version, database, …), max 8 KB as JSON.

Beispiel{"host":"db-1","tool":"pg_dump 18"}
typestringOptional

Backup type within the source (full, incremental, mysqldump, …). Source + type form a series for monitoring.

Länge: 0–64
Beispielfull
nextExpectedAtstringOptional

Monitoring (optional): when the next backup of this series (source + type) is expected, ISO 8601, in the future, max 1 year. If no newer backup starts by that time + 20 % of the interval, the organisation gets an alert e-mail. The next backup ends the watch, so send nextExpectedAt with every backup to keep monitoring on.

Beispiel2026-11-26T02:00:00Z

Anfragebeispiel

curl -X POST "https://api.bizkithub.com/api/v1/backup/start?apiKey=YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "filename": "prod-db-2026-11-25.sql.zst",
  "size": 52428800,
  "name": "Nightly production DB dump",
  "source": "prod-db",
  "period": "2026-11",
  "contentType": "application/zstd",
  "isClientEncrypted": false,
  "createdAt": "2026-11-25T02:00:00Z",
  "meta": {
    "host": "db-1",
    "tool": "pg_dump 18"
  },
  "type": "full",
  "nextExpectedAt": "2026-11-26T02:00:00Z"
}'