/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.
Telo požiadavky
application/jsonfilenamestringPovinnéOriginal file name. Stored normalized with a random 16-char suffix.
prod-db-2026-11-25.sql.zstsizestring | integerPovinnéExact file size in bytes (max 1 TiB).
0Exact file size in bytes (max 1 TiB).
52428800namestringVoliteľnéHuman label shown in admin.
Nightly production DB dumpsourcestringVoliteľnéLogical stream code that groups backups of one origin.
prod-dbperiodstringVoliteľné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.
2026-11contentTypestringVoliteľnéMIME type. Derived from the extension when omitted.
application/zstdisClientEncryptedbooleanVoliteľnéThe file is encrypted on the client (age, gpg, …). Informational.
createdAtstringVoliteľnéWhen the data was produced (ISO 8601), e.g. the dump start.
2026-11-25T02:00:00ZmetaobjectVoliteľnéFree-form metadata (hostname, tool, version, database, …), max 8 KB as JSON.
{"host":"db-1","tool":"pg_dump 18"}typestringVoliteľnéBackup type within the source (full, incremental, mysqldump, …). Source + type form a series for monitoring.
fullnextExpectedAtstringVoliteľné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.
2026-11-26T02:00:00ZUkážka požiadavky
POST /api/v1/backup/startcurl -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"
}'