{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/brevo/main/json-schema/brevo-tasks-get-all-tasks-response-200-schema.json",
  "title": "Tasks_getAllTasks_Response_200",
  "description": "List of tasks",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brevo-tasks-api-openapi.yml#/components/schemas/Tasks_getAllTasks_Response_200",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Task"
      },
      "description": "List of tasks"
    }
  },
  "$defs": {
    "Task": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique task id"
        },
        "taskTypeId": {
          "type": "string",
          "description": "Id for type of task e.g Call / Email / Meeting etc."
        },
        "name": {
          "type": "string",
          "description": "Name of task"
        },
        "companiesIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Companies ids for companies a task is linked to"
        },
        "dealsIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Deal ids for deals a task is linked to"
        },
        "contactsIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "Contact ids for contacts linked to this task"
        },
        "assignToId": {
          "type": "string",
          "description": "Account id of the user assigned to this task"
        },
        "date": {
          "type": "string",
          "format": "date-time",
          "description": "Task due date and time"
        },
        "notes": {
          "type": "string",
          "description": "Notes added to a task"
        },
        "done": {
          "type": "boolean",
          "description": "Whether the task is marked as done"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Task creation date/time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Task last update date/time"
        }
      },
      "required": [
        "taskTypeId",
        "name",
        "date"
      ],
      "description": "Task Details",
      "title": "Task"
    }
  }
}