{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-item-paged-response-schema.json",
  "title": "ItemPagedResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-groups-api-openapi.yml#/components/schemas/ItemPagedResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Contains the result data.",
      "items": {
        "$ref": "#/$defs/GenericItem"
      }
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of results returned based on the `limit` specified in the request. For example, if there are `30` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `20`. The rest of the results will not be returned. To retrieve the rest of the results, you must make another request and set the appropriate value for the offset parameter. In this example, you will set the offset parameter to 20 as the offset is zero-based.\n"
    },
    "links": {
      "$ref": "#/$defs/PageLinks"
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "Zero-based index of the first item in the collection. For example, If there are `30` results, and the request has the offset set to `28`, the response will return `2` results."
    },
    "size": {
      "type": "integer",
      "format": "int32",
      "description": "Number of results returned in the response. The `size` is the number of results returned considering the `offset` and the `limit` values sent in the request. For example, if there are `30` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `20`.<br>If there are `10` results, and the request has the offset set to `0` and the `limit` set to `20`, the `size` of the results will be `10`.<br>If there are `30` results, and the request has the offset set to `28` and the `limit` set to `20`, the `size` of the results will be `2` as the `offset` is the zero-based offset of the first item in the collection."
    },
    "total": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of results available. If the value of the `total` parameter is higher than the value of the `size` parameter, this means that there are more results that you can retrieve. To retrieve more results, you can make another request and set the `offset` value accordingly. For example, if there are `30` results, and the request has the `offset` set to `0` and the `limit` set to `20`, the `size` parameter will return `20` and the `total` parameter will return `30`. This means that there are 9 more results to retrieve (as the offset is zero-based)."
    },
    "type": {
      "type": "string"
    }
  },
  "$defs": {
    "AppCardData": {
      "type": "object",
      "description": "Contains app card item data, such as the title, description, or fields.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A short text description to add context about the app card."
        },
        "fields": {
          "type": "array",
          "description": "Array where each object represents a custom preview field. Preview fields are displayed on the bottom half of the app card in the compact view.",
          "items": {
            "$ref": "#/$defs/CustomField"
          }
        },
        "owned": {
          "type": "boolean",
          "description": "Defines whether the card is owned by the application making the call."
        },
        "status": {
          "type": "string",
          "description": "Status indicating whether an app card is connected and in sync with the source. When the source for the app card is deleted, the status returns `disabled`.",
          "enum": [
            "disconnected",
            "connected",
            "disabled"
          ]
        },
        "title": {
          "type": "string",
          "description": "A short text header to identify the app card."
        }
      }
    },
    "CardData": {
      "type": "object",
      "description": "Contains card item data, such as the title, description, due date, or assignee ID.",
      "properties": {
        "assigneeId": {
          "type": "string",
          "format": "int64",
          "description": "Unique user identifier. In the GUI, the user ID is mapped to the name of the user who is assigned as the owner of the task or activity described in the card. The identifier is numeric, and it is automatically assigned to a user when they first sign up."
        },
        "description": {
          "type": "string",
          "description": "A short text description to add context about the card."
        },
        "dueDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date when the task or activity described in the card is due to be completed. In the GUI, users can select the due date from a calendar. Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
        },
        "title": {
          "type": "string",
          "description": "A short text header for the card."
        }
      }
    },
    "CustomField": {
      "type": "object",
      "description": "Array where each object represents a custom preview field. Preview fields are displayed on the bottom half of the app card in the compact view.",
      "properties": {
        "fillColor": {
          "type": "string",
          "description": "Hex value representing the color that fills the background area of the preview field, when it's displayed on the app card."
        },
        "iconShape": {
          "type": "string",
          "default": "round",
          "description": "The shape of the icon on the preview field.",
          "enum": [
            "round",
            "square"
          ]
        },
        "iconUrl": {
          "type": "string",
          "description": "A valid URL pointing to an image available online.\nThe transport protocol must be HTTPS.\nPossible image file formats: JPG/JPEG, PNG, SVG."
        },
        "textColor": {
          "type": "string",
          "description": "Hex value representing the color of the text string assigned to `value`."
        },
        "tooltip": {
          "type": "string",
          "description": "A short text displayed in a tooltip when clicking or hovering over the preview field."
        },
        "value": {
          "type": "string",
          "description": "The actual data value of the custom field.\nIt can be any type of information that you want to convey."
        }
      }
    },
    "DocumentData": {
      "type": "object",
      "properties": {
        "documentUrl": {
          "type": "string",
          "description": "The URL to download the resource. You must use your access token to access the URL. The URL contains the `redirect` parameter to control the request execution.\n`redirect`: By default, the `redirect` parameter is set to `false` and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.\nIf the `redirect` parameter is set to `true`, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned is `application/octet-stream`."
        },
        "title": {
          "type": "string",
          "description": "A short text header to identify the document."
        }
      }
    },
    "EmbedData": {
      "type": "object",
      "properties": {
        "contentType": {
          "type": "string",
          "description": "Type of the embedded item's content."
        },
        "description": {
          "type": "string",
          "description": "Short description of the embedded item."
        },
        "html": {
          "type": "string",
          "description": "Html code of the embedded item."
        },
        "mode": {
          "type": "string",
          "description": "Defines how the content in the embed item is displayed on the board.\n`inline`: The embedded content is displayed directly on the board.\n`modal`: The embedded content is displayed inside a modal overlay on the board.",
          "enum": [
            "inline",
            "modal"
          ]
        },
        "previewUrl": {
          "type": "string",
          "description": "The URL to download the resource. You must use your access token to access the URL.\nThe URL contains the `redirect` parameter and the `format` parameter to control the request execution as described in the following parameters:\n`format` parameter: By default, the image format is set to the preview image. If you want to download the original image, set the `format` parameter in the URL to `original`.\n`redirect`: By default, the `redirect` parameter is set to `false` and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.\nIf the `redirect` parameter is set to `true`, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned can be `image/png`, 'image/svg', or 'image/jpg', depending on the original image type."
        },
        "providerName": {
          "type": "string",
          "description": "Name of the content's provider."
        },
        "providerUrl": {
          "type": "string",
          "description": "Url of the content's provider."
        },
        "title": {
          "type": "string",
          "description": "Title of the embedded item."
        },
        "url": {
          "type": "string",
          "description": "A [valid URL](https://developers.miro.com/reference/data#embeddata) pointing to the content resource that you want to embed in the board. Possible transport protocols: HTTP, HTTPS."
        }
      }
    },
    "FrameData": {
      "type": "object",
      "description": "Contains frame item data, such as the title, frame type, or frame format.",
      "properties": {
        "format": {
          "type": "string",
          "default": "custom",
          "description": "Only custom frames are supported at the moment.",
          "enum": [
            "custom",
            "desktop",
            "phone",
            "tablet",
            "a4",
            "letter",
            "ratio_1x1",
            "ratio_4x3",
            "ratio_16x9"
          ]
        },
        "title": {
          "type": "string",
          "description": "Title of the frame. This title appears at the top of the frame."
        },
        "type": {
          "type": "string",
          "default": "freeform",
          "description": "Only free form frames are supported at the moment.",
          "enum": [
            "freeform",
            "heap",
            "grid",
            "rows",
            "columns"
          ]
        }
      }
    },
    "GenericItem": {
      "type": "object",
      "description": "Contains the result data.",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the item was created. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
        },
        "createdBy": {
          "$ref": "#/$defs/createdBy"
        },
        "data": {
          "$ref": "#/$defs/WidgetDataOutput"
        },
        "geometry": {
          "$ref": "#/$defs/Geometry"
        },
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of an item."
        },
        "modifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the item was last modified. <br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC))."
        },
        "modifiedBy": {
          "$ref": "#/$defs/modifiedBy"
        },
        "parent": {
          "$ref": "#/$defs/Parent"
        },
        "position": {
          "$ref": "#/$defs/Position"
        },
        "type": {
          "type": "string",
          "description": "Type of item that is returned."
        }
      },
      "required": [
        "id",
        "type"
      ]
    },
    "Geometry": {
      "type": "object",
      "description": "Contains geometrical information about the item, such as its width or height.",
      "properties": {
        "height": {
          "type": "number",
          "format": "double",
          "description": "Height of the item, in pixels."
        },
        "rotation": {
          "type": "number",
          "format": "double",
          "description": "Rotation angle of an item, in degrees, relative to the board. You can rotate items clockwise (right) and counterclockwise (left) by specifying positive and negative values, respectively."
        },
        "width": {
          "type": "number",
          "format": "double",
          "description": "Width of the item, in pixels."
        }
      }
    },
    "ImageData": {
      "type": "object",
      "properties": {
        "imageUrl": {
          "type": "string",
          "description": "The URL to download the resource. You must use your access token to access the URL.\nThe URL contains the `redirect` parameter and the `format` parameter to control the request execution as described in the following parameters:\n`format` parameter: By default, the image format is set to the preview image. If you want to download the original image, set the `format` parameter in the URL to `original`.\n`redirect`: By default, the `redirect` parameter is set to `false` and the resource object containing the URL and the resource type is returned with a 200 OK HTTP code. This URL is valid for 60 seconds. You can use this URL to retrieve the resource file.\nIf the `redirect` parameter is set to `true`, a 307 TEMPORARY_REDIRECT HTTP response is returned. If you follow HTTP 3xx responses as redirects, you will automatically be redirected to the resource file and the content type returned can be `image/png`, 'image/svg', or 'image/jpg', depending on the original image type."
        },
        "title": {
          "type": "string",
          "description": "A short text header to identify the image."
        }
      }
    },
    "PageLinks": {
      "type": "object",
      "description": "Contains pagination links for the collection.",
      "properties": {
        "first": {
          "type": "string",
          "description": "Link to retrieve information in the first page of the collection."
        },
        "last": {
          "type": "string",
          "description": "Link to the retrieve information in the last page of the collection."
        },
        "next": {
          "type": "string",
          "description": "Link to retrieve information in the next page of the collection."
        },
        "prev": {
          "type": "string",
          "description": "Link to retrieve information in the previous page of the collection."
        },
        "self": {
          "type": "string",
          "description": "Link to retrieve information in the current page of the collection."
        }
      }
    },
    "Parent": {
      "type": "object",
      "description": "Contains information about the parent frame for the item.",
      "properties": {
        "id": {
          "type": "string",
          "format": "int64",
          "description": "Unique identifier (ID) of the parent frame for the item."
        }
      }
    },
    "Position": {
      "type": "object",
      "description": "Contains location information about the item, such as its x coordinate, y coordinate, and the origin of the x and y coordinates.",
      "properties": {
        "origin": {
          "type": "string",
          "default": "center",
          "description": "Area of the item that is referenced by its x and y coordinates. For example, an item with a center origin will have its x and y coordinates point to its center. The center point of the board has x: 0 and y: 0 coordinates.\nCurrently, only one option is supported.",
          "enum": [
            "center"
          ]
        },
        "relativeTo": {
          "type": "string",
          "enum": [
            "canvas_center",
            "parent_top_left"
          ]
        },
        "x": {
          "type": "number",
          "format": "double",
          "description": "X-axis coordinate of the location of the item on the board.\nBy default, all items have absolute positioning to the board, not the current viewport. Default: 0.\nThe center point of the board has `x: 0` and `y: 0` coordinates."
        },
        "y": {
          "type": "number",
          "format": "double",
          "description": "Y-axis coordinate of the location of the item on the board.\nBy default, all items have absolute positioning to the board, not the current viewport. Default: 0.\nThe center point of the board has `x: 0` and `y: 0` coordinates."
        }
      }
    },
    "ShapeData": {
      "type": "object",
      "description": "Contains shape item data, such as the content or shape type of the shape.",
      "properties": {
        "content": {
          "type": "string",
          "description": "The text you want to display on the shape."
        },
        "shape": {
          "type": "string",
          "default": "rectangle",
          "description": "Defines the geometric shape of the item when it is rendered on the board.",
          "enum": [
            "rectangle",
            "round_rectangle",
            "circle",
            "triangle",
            "rhombus",
            "parallelogram",
            "trapezoid",
            "pentagon",
            "hexagon",
            "octagon",
            "wedge_round_rectangle_callout",
            "star",
            "flow_chart_predefined_process",
            "cloud",
            "cross",
            "can",
            "right_arrow",
            "left_arrow",
            "left_right_arrow",
            "left_brace",
            "right_brace"
          ]
        }
      }
    },
    "StickyNoteData": {
      "type": "object",
      "description": "Contains sticky note item data, such as the content or shape of the sticky note.",
      "properties": {
        "content": {
          "type": "string",
          "description": "The actual text (content) that appears in the sticky note item."
        },
        "shape": {
          "type": "string",
          "default": "square",
          "description": "Defines the geometric shape of the sticky note and aspect ratio for its dimensions.",
          "enum": [
            "square",
            "rectangle"
          ]
        }
      }
    },
    "TextData": {
      "type": "object",
      "description": "Contains text item data, such as the title, content, or description. For more information on the JSON properties, see [Data](https://developers.miro.com/reference/data).",
      "properties": {
        "content": {
          "type": "string",
          "description": "The actual text (content) that appears in the text item."
        }
      },
      "required": [
        "content"
      ]
    },
    "WidgetDataOutput": {
      "type": "object",
      "description": "Contains the item data, such as the item title, content, or description.",
      "oneOf": [
        {
          "$ref": "#/$defs/TextData"
        },
        {
          "$ref": "#/$defs/EmbedData"
        },
        {
          "$ref": "#/$defs/CardData"
        },
        {
          "$ref": "#/$defs/AppCardData"
        },
        {
          "$ref": "#/$defs/ImageData"
        },
        {
          "$ref": "#/$defs/DocumentData"
        },
        {
          "$ref": "#/$defs/ShapeData"
        },
        {
          "$ref": "#/$defs/FrameData"
        },
        {
          "$ref": "#/$defs/StickyNoteData"
        }
      ]
    },
    "createdBy": {
      "type": "object",
      "description": "Contains information about the user who created the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    },
    "modifiedBy": {
      "type": "object",
      "description": "Contains information about the user who last modified the item.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier (ID) of the user."
        },
        "type": {
          "type": "string",
          "description": "Indicates the type of object returned. In this case, `type` returns `user`."
        }
      }
    }
  }
}