RestoreStatusResponse
One restore of a channel's database. ``status`` is ``queued``, ``extracting``, ``loading``, ``swapping``, ``succeeded``, or ``failed``. ``queued`` also covers a restore that has started and puts the read-only hold on, so a surface shows ``activity`` and ``waiting`` rather than the word "queued". ``during_restore`` is the mode the request chose, ``read_only``, ``maintenance``, or ``live``, and ``maintenance_channel_id`` the static channel a ``maintenance`` restore's page shows, null for the platform's page. While the restore is active, ``waiting`` names why it waits, ``queue_ahead`` counts the restores before a ``received`` one on its database server, and ``activity`` says in one plain sentence what it does now (``postgres/api.py::restore_queue_state``); each is null when it does not apply. ``error_code`` is set on a failed restore, and ``message`` says why in plain words. ``notice`` is the mode's sentence from :data:`RESTORE_MODE_NOTICES`.
Properties
| Name | Type | Description |
|---|---|---|
| restore_id | string | |
| app_id | string | |
| channel_id | string | |
| snapshot_id | string | |
| during_restore | object | |
| maintenance_channel_id | object | |
| status | string | |
| waiting | object | |
| queue_ahead | object | |
| activity | object | |
| progress | object | |
| error_code | object | |
| message | object | |
| notice | string | |
| submitted_at | string | |
| started_at | object | |
| updated_at | string | |
| finished_at | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/xhostd-com/json-schema/xhostd-com-restore-status-response-schema.json",
"title": "RestoreStatusResponse",
"description": "One restore of a channel's database.\n\n``status`` is ``queued``, ``extracting``, ``loading``, ``swapping``,\n``succeeded``, or ``failed``. ``queued`` also covers a restore that\nhas started and puts the read-only hold on, so a surface shows\n``activity`` and ``waiting`` rather than the word \"queued\".\n``during_restore`` is the mode the request chose, ``read_only``,\n``maintenance``, or ``live``, and ``maintenance_channel_id`` the\nstatic channel a ``maintenance`` restore's page shows, null for the\nplatform's page. While the restore is active, ``waiting`` names why\nit waits, ``queue_ahead`` counts the restores before a ``received``\none on its database server, and ``activity`` says in one plain\nsentence what it does now (``postgres/api.py::restore_queue_state``);\neach is null when it does not apply. ``error_code`` is set on a\nfailed restore, and ``message`` says why in plain words. ``notice``\nis the mode's sentence from :data:`RESTORE_MODE_NOTICES`.",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/api.xhostd.com-openapi.json#/components/schemas/RestoreStatusResponse",
"properties": {
"restore_id": {
"type": "string",
"format": "uuid",
"title": "Restore Id"
},
"app_id": {
"type": "string",
"format": "uuid",
"title": "App Id"
},
"channel_id": {
"type": "string",
"format": "uuid",
"title": "Channel Id"
},
"snapshot_id": {
"type": "string",
"format": "uuid",
"title": "Snapshot Id"
},
"during_restore": {
"$ref": "#/$defs/DuringRestore"
},
"maintenance_channel_id": {
"anyOf": [
{
"type": "string",
"format": "uuid"
},
{
"type": "null"
}
],
"title": "Maintenance Channel Id"
},
"status": {
"type": "string",
"enum": [
"queued",
"extracting",
"loading",
"swapping",
"succeeded",
"failed"
],
"title": "Status"
},
"waiting": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Waiting"
},
"queue_ahead": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Queue Ahead"
},
"activity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Activity"
},
"progress": {
"anyOf": [
{
"$ref": "#/$defs/RestoreProgress"
},
{
"type": "null"
}
]
},
"error_code": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Error Code"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"notice": {
"type": "string",
"title": "Notice"
},
"submitted_at": {
"type": "string",
"format": "date-time",
"title": "Submitted At"
},
"started_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "Started At"
},
"updated_at": {
"type": "string",
"format": "date-time",
"title": "Updated At"
},
"finished_at": {
"anyOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
],
"title": "Finished At"
}
},
"type": "object",
"required": [
"restore_id",
"app_id",
"channel_id",
"snapshot_id",
"during_restore",
"maintenance_channel_id",
"status",
"waiting",
"queue_ahead",
"activity",
"progress",
"error_code",
"message",
"notice",
"submitted_at",
"started_at",
"updated_at",
"finished_at"
],
"$defs": {
"DuringRestore": {
"type": "string",
"enum": [
"read_only",
"maintenance",
"live"
],
"title": "DuringRestore",
"description": "What the channel's app can do with its database while the restore\nruns, from the claim to the swap.\n\n``read_only``: the ``hold`` step makes every new transaction of\n``r_<ch32>`` in ``ch_<ch32>`` read-only, so a write fails with\nSQLSTATE 25006 rather than vanish at the swap. ``maintenance``: the\nsame hold, and the edge serves a page in place of the app\n(``restore_dispatch.py::project_maintenance``), the restore's\n``maintenance_channel_id`` parameter naming a static channel for the\npage or ``None`` for the platform's own. ``live``: the app keeps writing, and the swap\ndiscards those writes."
},
"RestoreProgress": {
"properties": {
"phase": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Phase"
},
"bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Bytes"
},
"segments": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Segments"
},
"waiting": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Waiting"
},
"items_done": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Items Done"
},
"items_total": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Items Total"
}
},
"type": "object",
"required": [
"phase",
"bytes",
"segments",
"waiting",
"items_done",
"items_total"
],
"title": "RestoreProgress",
"description": "How far a restore's current step got.\n\nWhile the restore extracts, ``phase`` names the extract's phase:\n``fetch``, ``refetch``, ``replay``, or ``dump``. ``bytes`` counts the\nbytes the database server has fetched from the backup, or written to\nthe snapshot's dump, so far, and ``segments`` counts the log files\nthe ``replay`` phase has replayed. ``waiting`` names why the extract\nwaits for the database server, such as ``extraction_busy``.\n``items_done`` of ``items_total`` counts the snapshot's entries\nloaded. A field the step does not report is null."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/xhostd-com-restore-status-response"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.