Backup API
4 operations. Back to the API overview. Examples use synthetic data.
Enables restored routes and sources (removes their disabled flag) in one transaction, once the person has put the secrets in place
POST /admin/v1/backup/enable
Enables restored routes and sources (removes their disabled flag) in one transaction, once the person has put the secrets in place. Each is a new version in the configuration history. A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
entities | array of string | optional | Entities are "kind/id" of disabled routes and sources. |
reason | string | optional | - |
{
"entities": [
"example"
],
"reason": "Example text"
}Response 200
{
"config_version": {},
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"entities":["example"],"reason":"Example text"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/backup/enable"Downloads the configuration as a bundle
GET /admin/v1/backup/export
Downloads the configuration as a bundle. The audit record (database and stdout, before any byte of the bundle is sent) names the caller, the scope and the digest, never the content; if it cannot be written nothing is sent.
Needs the permission: config:export.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
route | query | string | optional | - |
scope | query | string | optional | - |
Response 200
OK. No body.
Other responses
401Authentication required403Not permitted404Not Found500Internal Server Error503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/backup/export"Applies a reviewed plan
POST /admin/v1/backup/restore/apply
Applies a reviewed plan: the plan is computed again and must have the same plan_sha256; a blocked plan is refused (skip or fix the blocked items first); every entity needs its kind's write permission (a script with an active version also scripts:activate); all entities are written in one transaction with the stated reason, audited fail-closed (the audit names the bundle digest, never the content). A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
bundle | any | optional | - |
confirm | boolean | optional | Confirm must be true. |
options | object (BundleOptions) | optional | Options are the choices a person makes on the plan. |
options.attest_baa | boolean | optional | AttestBAA is the restoring person's own attestation that a business associate agreement (or other basis) covers the service behind each restored notification channel's URL, because notifications can carry PHI. A bundle never carries an attestation; without this the channels are blocked (or can be skipped). |
options.conflict | string | optional | Conflict is the default for every conflicting entity (default ConflictRename). |
options.decisions | map of string | optional | Decisions overrides it per entity ("kind/id" to rename, replace or skip). Skip also lets an apply proceed without a blocked entity. |
plan_sha256 | string | optional | PlanSHA256 is the plan the caller reviewed: the server plans again and refuses unless the result is the same. |
reason | string | optional | - |
{
"bundle": {},
"confirm": true,
"options": {
"attest_baa": true,
"conflict": "example",
"decisions": {
"example": "example"
}
},
"plan_sha256": "example",
"reason": "Example text"
}Response 200
{
"plan": {
"blocked": true,
"bundle_digest": "0000000000000000000000000000000000000000000000000000000000000000",
"created_at": "2026-01-15T14:30:00Z",
"external_dependencies": [
{
"id": "example-id",
"kind": "example",
"note": "example",
"required_by": [
"example"
],
"sha256": "example",
"status": "ok",
"version": "1"
}
],
"format_version": 1,
"items": [
{
"action": "example",
"arrives_disabled": true,
"choices": [
"example"
],
"conflict": true,
"document_sha256": "example",
"from_version": 1,
"id": "example-id",
"kind": "example",
"notes": [
"example"
],
"paths": [
"example"
],
"permissions": [
"example"
],
"permitted": true,
"reasons": [
"Example text"
],
"target_id": "example-id"
}
],
"missing": [
{
"hint": "example",
"id": "example-id",
"kind": "example",
"required_by": [
"example"
]
}
],
"must_supply": [
{
"id": "example-id",
"kind": "example",
"note": "example",
"path": "example",
"reference": "example",
"type": "example"
}
],
"plan_sha256": "example",
"route": "example",
"scope": "example",
"source_tenant": "example",
"summary": {
"example": 1
},
"validation_error": "Example text"
},
"status": "ok"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"bundle":{},"confirm":true,"options":{"attest_baa":true,"conflict":"example","decisions":{"example":"example"}},"plan_sha256":"example","reason":"Example text"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/backup/restore/apply"Shows what restoring a bundle would do
POST /admin/v1/backup/restore/plan
Shows what restoring a bundle would do: per entity create, restore under a new name, replace, unchanged, skip or blocked; the conflicts and the choices; what is missing in this account; the secrets and certificates to supply; what arrives disabled. Nothing is written.
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
bundle | any | optional | Bundle is the configuration bundle (the downloaded file). |
options | object (BundleOptions) | optional | Options are the choices made on the plan: how conflicts are handled (default: restore under a new name), per-entity decisions, and the attestation notification channels need. |
options.attest_baa | boolean | optional | AttestBAA is the restoring person's own attestation that a business associate agreement (or other basis) covers the service behind each restored notification channel's URL, because notifications can carry PHI. A bundle never carries an attestation; without this the channels are blocked (or can be skipped). |
options.conflict | string | optional | Conflict is the default for every conflicting entity (default ConflictRename). |
options.decisions | map of string | optional | Decisions overrides it per entity ("kind/id" to rename, replace or skip). Skip also lets an apply proceed without a blocked entity. |
{
"bundle": {},
"options": {
"attest_baa": true,
"conflict": "example",
"decisions": {
"example": "example"
}
}
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
blocked | boolean | optional | Blocked: an apply is refused until each blocked item is fixed or chosen to be skipped. |
bundle_digest | string | optional | - |
created_at | string | optional | - |
external_dependencies | array of object (BundleExternalStatus) | optional | - |
external_dependencies.[]id | string | optional | - |
external_dependencies.[]kind | string | optional | Kind is "provider_directory" (never carried: it holds provider contact data) or "profile" (an interface profile; its rules are embedded in the route, so it is not needed to run). |
external_dependencies.[]note | string | optional | - |
external_dependencies.[]required_by | array of string | optional | RequiredBy lists "kind/id" of the entities that refer to it. |
external_dependencies.[]sha256 | string | optional | - |
external_dependencies.[]status | string | optional | Status is "present", "missing" or "informational". |
external_dependencies.[]version | string | optional | - |
format_version | integer | optional | - |
items | array of object (BundleItem) | optional | - |
items.[]action | string | optional | - |
items.[]arrives_disabled | boolean | optional | ArrivesDisabled: the entity is written disabled and stays so until it is enabled. |
items.[]choices | array of string | optional | Choices are the decisions the person may take for a conflict. |
items.[]conflict | boolean | optional | Conflict: the target account already has this ID with a different configuration. |
items.[]document_sha256 | string | optional | - |
items.[]from_version | integer | optional | FromVersion is the target's version a replace overwrites. |
items.[]id | string | optional | - |
items.[]kind | string | optional | - |
items.[]notes | array of string | optional | - |
items.[]paths | array of string | optional | - |
items.[]permissions | array of string | optional | - |
items.[]permitted | boolean | optional | - |
items.[]reasons | array of string | optional | Reasons say why an item is blocked. |
items.[]target_id | string | optional | TargetID is the ID it is written under (differs after a rename). |
missing | array of object (BundleMissing) | optional | - |
missing.[]hint | string | optional | - |
missing.[]id | string | optional | - |
missing.[]kind | string | optional | - |
missing.[]required_by | array of string | optional | - |
must_supply | array of object (BundleSupply) | optional | MustSupply is what the target account must provide before the restored entities can be enabled (for the entities this plan writes). |
must_supply.[]id | string | optional | - |
must_supply.[]kind | string | optional | - |
must_supply.[]note | string | optional | - |
must_supply.[]path | string | optional | Path is the JSON Pointer of the field in the entity's document. |
must_supply.[]reference | string | optional | Reference is the non-secret reference the configuration holds (a mounted file path or a certificate fingerprint); empty for an attestation. |
must_supply.[]type | string | optional | Type is one of the Supply constants. |
plan_sha256 | string | optional | - |
route | string | optional | - |
scope | string | optional | - |
source_tenant | string | optional | - |
summary | map of integer | optional | - |
validation_error | string | optional | ValidationError is the configuration validation's verdict on the result (the caller fills it in; empty: valid). |
{
"blocked": true,
"bundle_digest": "0000000000000000000000000000000000000000000000000000000000000000",
"created_at": "2026-01-15T14:30:00Z",
"external_dependencies": [
{
"id": "example-id",
"kind": "example",
"note": "example",
"required_by": [
"example"
],
"sha256": "example",
"status": "ok",
"version": "1"
}
],
"format_version": 1,
"items": [
{
"action": "example",
"arrives_disabled": true,
"choices": [
"example"
],
"conflict": true,
"document_sha256": "example",
"from_version": 1,
"id": "example-id",
"kind": "example",
"notes": [
"example"
],
"paths": [
"example"
],
"permissions": [
"example"
],
"permitted": true,
"reasons": [
"Example text"
],
"target_id": "example-id"
}
],
"missing": [
{
"hint": "example",
"id": "example-id",
"kind": "example",
"required_by": [
"example"
]
}
],
"must_supply": [
{
"id": "example-id",
"kind": "example",
"note": "example",
"path": "example",
"reference": "example",
"type": "example"
}
],
"plan_sha256": "example",
"route": "example",
"scope": "example",
"source_tenant": "example",
"summary": {
"example": 1
},
"validation_error": "Example text"
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"bundle":{},"options":{"attest_baa":true,"conflict":"example","decisions":{"example":"example"}}}' \
"https://YOUR-CONSOLE-HOST/admin/v1/backup/restore/plan"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.