# Return running backup operations

This function returns the backup, restore and extract operations still
running for the domain parameter, most recently updated first.

Note:

* A client that lost the operation identifier it was polling, after a
  page reload for example, can use this function to reattach its
  progress display. The work itself runs in a detached daemon and
  survives the reload. Only the caller's in-memory id is lost.
* Each row is the shape the WebsiteBackup::operation_status function
  returns, plus the operationId return value needed to resume polling.
* The function lists only operations that can still finish. It omits a
  terminal operation, meaning one that is ready or failed, because
  the WebsiteBackup::list_backups function reflects a completed
  backup. It also omits a non-terminal log whose daemon is no longer
  alive, which is a job that crashed without writing a terminal frame
  and can never complete.
 This function returns an array, so UAPI's generic api.filter_,
  api.sort_ and api.paginate_ parameters apply, and a
  caller-supplied sort replaces the default ordering of the data
  return value.
* This function requires the account's backup feature.

Endpoint: GET /WebsiteBackup/list_operations
Version: 11.138.0.19
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The website whose running operations to list.

Note:
The account must own this domain.
    Example: "example.com"

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "list_operations"

  - `module` (string)
    The name of the module called.
    Example: "WebsiteBackup"

  - `result` (object)

  - `result.data` (array)
    The still-running operations for the requested domain.
Empty when none are running.

Note:
The function orders rows by the operation log's last
write, so most recently updated comes first. That is
not necessarily most recently started. Sort on the
startedAtMs return value if you need start order.

  - `result.data.domain` (string)
    The website the operation is running against.
Always the requested domain parameter.
    Example: "example.com"

  - `result.data.extractPath` (string)
    For an extract operation, the home-relative
destination folder the caller named in the
path parameter of the
WebsiteBackup::extract_backup function.

Note:
Absent for create and restore.
    Example: "backup-restore/example.com"

  - `result.data.kind` (string)
    Which function started the operation.

* create - The WebsiteBackup::create_backup
  function.
* restore - The
  WebsiteBackup::restore_backup function.
* extract - The
  WebsiteBackup::extract_backup function.
    Enum: "create", "restore", "extract"

  - `result.data.operationId` (string)
    Identifier to resume polling this operation
through the WebsiteBackup::operation_status
function.
    Example: "2026-08-18T12:53:12Z.1"

  - `result.data.progressPct` (number)
    Completion percentage, from 0 to 100.

Note:
Absent until the job reports its first progress
frame. Never 100 here, because a finished
operation is terminal and so is not listed.
    Example: 42

  - `result.data.startedAtMs` (integer)
    Epoch milliseconds at which the operation
started.

Note:
Absent when the log recorded no start time.
    Example: 1755520392000

  - `result.data.status` (string)
    Always inProgress, because this function does
not list terminal operations.
    Enum: "inProgress"

  - `result.data.subStatus` (string)
    Localized description of the step the operation
is currently on.

Note:
Absent until the job logs its first step.
    Example: "Archiving website files…"

  - `result.data.title` (string)
    Localized, user-facing title of the operation,
for example Backing up “example.com”.

Note:
Empty string when the log recorded no title.
    Example: "Backing up “example.com”"

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.metadata.transformed` (integer)
    Post-processing may have transformed the data.
    Enum: 1

  - `result.status` (integer)
    * 1 - Success.
* 0 - Failed. Check the errors field for more
  details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings
describe non-critical failures or other problematic
conditions noted while running an API.


