v1

latestSwagger 2.02026-07-172964242.9 KB
Database

List database tasks

Lists all tasks for a database.

get/v1/databases/{database_id}/tasks

Path parameters

database_idstring required

A user-specified identifier. Must be 1-36 characters, contain only lower-cased letters and hyphens, start and end with a letter or number, and not contain consecutive hyphens.

Query parameters

after_task_idstring uuid

ID of the task to start from.

limitinteger

Maximum number of tasks to return.

sort_order'asc' | 'ascend' | 'ascending' | 'desc' | 'descend' | 'descending'

Sort order for the tasks.

Response

OK response.

Example response

{
  "tasks": [
    {
      "completed_at": "2025-06-18T17:54:36Z",
      "created_at": "2025-06-18T17:54:28Z",
      "database_id": "storefront",
      "entity_id": "storefront",
      "instance_id": "storefront-n1-689qacsi",
      "scope": "database",
      "status": "completed",
      "task_id": "0197842d-9082-7496-b787-77bd2e11809f",
      "type": "node_backup"
    },
    {
      "completed_at": "2025-06-18T17:54:04Z",
      "created_at": "2025-06-18T17:53:17Z",
      "database_id": "storefront",
      "entity_id": "storefront",
      "scope": "database",
      "status": "completed",
      "task_id": "0197842c-7c4f-7a8c-829e-7405c2a41c8c",
      "type": "update"
    },
    {
      "completed_at": "2025-06-18T17:23:28Z",
      "created_at": "2025-06-18T17:23:14Z",
      "database_id": "storefront",
      "entity_id": "storefront",
      "scope": "database",
      "status": "completed",
      "task_id": "01978410-fb5d-7cd2-bbd2-66c0bf929dc0",
      "type": "update"
    },
    {
      "completed_at": "2025-06-18T16:52:35Z",
      "created_at": "2025-06-18T16:52:05Z",
      "database_id": "storefront",
      "entity_id": "storefront",
      "scope": "database",
      "status": "completed",
      "task_id": "019783f4-75f4-71e7-85a3-c9b96b345d77",
      "type": "create"
    }
  ]
}