---
updatedAt: 2026-04-21T11:23:22.000Z
agentTools:
  projectIndex: https://developers.miro.com/llms.txt
---

# Create shape item

Adds a shape item to a board.<br/><h3>Required scope</h3> <a target="blank" href="/reference/scopes">boards:write</a> <br/><h3>Rate limiting</h3> <a target="blank" href="/reference/rate-limiting#rate-limit-tiers">Level 2</a><br/>

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Platform",
    "version": "v2.0"
  },
  "x-settings": {
    "publish": true
  },
  "servers": [
    {
      "url": "https://api.miro.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Shape items"
    }
  ],
  "paths": {
    "/v2/boards/{board_id}/shapes": {
      "post": {
        "description": "Adds a shape item to a board.<br/><h3>Required scope</h3> <a target=\"blank\" href=\"/reference/scopes\">boards:write</a> <br/><h3>Rate limiting</h3> <a target=\"blank\" href=\"/reference/rate-limiting#rate-limit-tiers\">Level 2</a><br/>",
        "operationId": "create-shape-item",
        "parameters": [
          {
            "description": "Unique identifier (ID) of the board where you want to create the item.",
            "in": "path",
            "name": "board_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ShapeCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShapeItem"
                }
              }
            },
            "description": "Shape item created"
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "summary": "Create shape item",
        "tags": [
          "Shape items"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "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.",
            "example": 60
          },
          "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.",
            "example": 320
          }
        }
      },
      "Parent": {
        "type": "object",
        "description": "Contains information about the parent this item must be attached to. A maximum of 5000 items can be attached to a frame. Passing `null` for `parent.id` directly attaches an item to the canvas.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier (ID) of the parent frame for the item."
          }
        }
      },
      "ParentLinksEnvelope": {
        "type": "object",
        "description": "Contains information about the parent frame for the item.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier (ID) of the parent frame for the item.",
            "example": "3074457362577955300"
          },
          "links": {
            "$ref": "#/components/schemas/SelfLink"
          }
        }
      },
      "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 (center).",
            "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.",
            "example": 100
          },
          "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.",
            "example": 100
          },
          "slotId": {
            "type": "string",
            "description": "Unique identifier (ID) of the slot on the doc where the item is placed. This helps determine where in the doc a certain item has been placed. This is used only for Miro docs currently.",
            "example": "123"
          }
        }
      },
      "PositionChange": {
        "type": "object",
        "description": "Contains information about the item's position on the board, such as its x coordinate, y coordinate, and the origin of the x and y coordinates.",
        "properties": {
          "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.",
            "example": 100
          },
          "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.",
            "example": 100
          }
        }
      },
      "SelfLink": {
        "type": "object",
        "description": "Contains applicable links for the current object.",
        "properties": {
          "self": {
            "type": "string",
            "description": "Link to obtain more information about the current object.",
            "example": "http://api.miro.com/v2/boards/o9J_koQspF4=/object_type/3074457349143649487"
          }
        }
      },
      "ShapeCreateRequest": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ShapeData"
          },
          "style": {
            "$ref": "#/components/schemas/ShapeStyle"
          },
          "position": {
            "$ref": "#/components/schemas/PositionChange"
          },
          "geometry": {
            "$ref": "#/components/schemas/Geometry"
          },
          "parent": {
            "$ref": "#/components/schemas/Parent"
          }
        }
      },
      "ShapeData": {
        "type": "object",
        "description": "Contains shape item data, such as the content or the type of the shape.",
        "properties": {
          "content": {
            "type": "string",
            "description": "The text you want to display on the shape.",
            "example": "Hello"
          },
          "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"
            ]
          }
        }
      },
      "ShapeItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier (ID) of an item.",
            "example": "3458764517517819000"
          },
          "data": {
            "$ref": "#/components/schemas/ShapeData"
          },
          "style": {
            "$ref": "#/components/schemas/ShapeStyle"
          },
          "position": {
            "$ref": "#/components/schemas/Position"
          },
          "geometry": {
            "$ref": "#/components/schemas/Geometry"
          },
          "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)).",
            "example": "2022-03-30 17:26:50+00:00"
          },
          "createdBy": {
            "$ref": "#/components/schemas/createdBy"
          },
          "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)).",
            "example": "2022-03-30 17:26:50+00:00"
          },
          "modifiedBy": {
            "$ref": "#/components/schemas/modifiedBy"
          },
          "parent": {
            "$ref": "#/components/schemas/ParentLinksEnvelope"
          },
          "links": {
            "$ref": "#/components/schemas/WidgetLinks"
          },
          "type": {
            "type": "string",
            "description": "Type of item that is returned.",
            "example": "shape"
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "ShapeStyle": {
        "type": "object",
        "description": "Contains information about the shape style, such as the border color or opacity.",
        "properties": {
          "borderColor": {
            "type": "string",
            "description": "Defines the color of the border of the shape.\nDefault: `#1a1a1a` (dark gray)."
          },
          "borderOpacity": {
            "type": "string",
            "description": "Defines the opacity level of the shape border.\nPossible values: any number between `0.0` and `1.0`, where:\n`0.0`: the background color is completely transparent or invisible\n`1.0`: the background color is completely opaque or solid\nDefault: If a value for `borderColor` is passed, the default value for `borderColor` is `1.0`. If a value for `borderColor` is not passed, the default value is `0.0`.",
            "maximum": 1,
            "minimum": 0
          },
          "borderStyle": {
            "type": "string",
            "description": "Defines the style used to represent the border of the shape.\nDefault: `normal`.",
            "enum": [
              "normal",
              "dotted",
              "dashed"
            ]
          },
          "borderWidth": {
            "type": "string",
            "description": "Defines the thickness of the shape border, in dp.\nDefault: `2.0`.",
            "maximum": 24,
            "minimum": 1
          },
          "color": {
            "type": "string",
            "description": "Hex value representing the color for the text within the shape item.\nDefault: `#1a1a1a`.",
            "example": "#1a1a1a"
          },
          "fillColor": {
            "type": "string",
            "description": "Fill color for the shape.\nHex values: `#f5f6f8` `#d5f692` `#d0e17a` `#93d275` `#67c6c0` `#23bfe7` `#a6ccf5` `#7b92ff` `#fff9b1` `#f5d128` `#ff9d48` `#f16c7f` `#ea94bb` `#ffcee0` `#b384bb` `#000000`\nDefault: #ffffff.",
            "example": "#8fd14f"
          },
          "fillOpacity": {
            "type": "string",
            "description": "Opacity level of the fill color.\nPossible values: any number between `0` and `1`, where:\n`0.0`: the background color is completely transparent or invisible\n`1.0`: the background color is completely opaque or solid\nDefault: `1.0` if `fillColor` provided, `0.0` if no `fillColor` provided.\n",
            "maximum": 1,
            "minimum": 0
          },
          "fontFamily": {
            "type": "string",
            "description": "Defines the font type for the text in the shape item.\nDefault: `arial`.",
            "enum": [
              "arial",
              "abril_fatface",
              "bangers",
              "eb_garamond",
              "georgia",
              "graduate",
              "gravitas_one",
              "fredoka_one",
              "nixie_one",
              "open_sans",
              "permanent_marker",
              "pt_sans",
              "pt_sans_narrow",
              "pt_serif",
              "rammetto_one",
              "roboto",
              "roboto_condensed",
              "roboto_slab",
              "caveat",
              "times_new_roman",
              "titan_one",
              "lemon_tuesday",
              "roboto_mono",
              "noto_sans",
              "plex_sans",
              "plex_serif",
              "plex_mono",
              "spoof",
              "tiempos_text",
              "formular"
            ]
          },
          "fontSize": {
            "type": "string",
            "description": "Defines the font size, in dp, for the text on the shape.\nDefault: `14`.",
            "maximum": 288,
            "minimum": 10
          },
          "textAlign": {
            "type": "string",
            "description": "Defines how the sticky note text is horizontally aligned.\nDefault: `center`.",
            "enum": [
              "left",
              "right",
              "center"
            ]
          },
          "textAlignVertical": {
            "type": "string",
            "description": "Defines how the sticky note text is vertically aligned.\nDefault: `top`.",
            "enum": [
              "top",
              "middle",
              "bottom"
            ]
          }
        }
      },
      "WidgetLinks": {
        "type": "object",
        "description": "Contains applicable links for the item.",
        "properties": {
          "related": {
            "type": "string",
            "description": "Link to obtain information about the child items related to the frame.",
            "example": "http://api.miro.com/v2/boards/o9J_koQspF4=/items?parent_item_id=307445734914369434&limit=10&cursor="
          },
          "self": {
            "type": "string",
            "description": "Link to obtain information about the current item.",
            "example": "http://api.miro.com/v2/boards/o9J_koQspF4=/item/3074457349143649487"
          }
        }
      },
      "createdBy": {
        "type": "object",
        "description": "Contains information about the user who created the item.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier (ID) of the user.",
            "example": "3458764517517852417"
          },
          "type": {
            "type": "string",
            "description": "Indicates the type of object returned. In this case, `type` returns `user`.",
            "example": "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.",
            "example": "3458764517517852417"
          },
          "type": {
            "type": "string",
            "description": "Indicates the type of object returned. In this case, `type` returns `user`.",
            "example": "user"
          }
        }
      },
      "BasicError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "HTTP status code."
          },
          "code": {
            "type": "string",
            "description": "Description of the status code."
          },
          "message": {
            "type": "string",
            "description": "Explanation for the error"
          },
          "type": {
            "type": "string",
            "description": "Type of the object returned.",
            "default": "error"
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Malformed request",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 400
                    },
                    "code": {
                      "default": "invalidParameters"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "404": {
        "description": "Invalid access",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 404
                    },
                    "code": {
                      "default": "notFound"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "429": {
        "description": "Too many requests",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/BasicError"
                },
                {
                  "type": "object",
                  "properties": {
                    "status": {
                      "default": 429
                    },
                    "code": {
                      "default": "tooManyRequests"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

# Sibling pages

* [Get shape item](https://developers.miro.com/miro-ea/reference/get-shape-item-1.md)
* [Update shape item](https://developers.miro.com/miro-ea/reference/update-shape-item-1.md)
* [Delete shape item](https://developers.miro.com/miro-ea/reference/delete-shape-item-1.md)