Microboard.Developers
ApiItemsStickers

Create a sticker

POST
/developers/boards/{boardId}/stickers

Authorization

apiKey<token>

In: query

Request Body

application/jsonRequired
type
Required
string
Value in: "Sticker"
textstring
colorstring
Default: "rgb(174, 212, 250)"
transformationobject

Path Parameters

boardId
Required
string
curl -X POST "https://api.microboard.com/api/v1/developers/boards/string/stickers" \
  -H "apiKey: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "Sticker",
    "text": "Important note",
    "color": "#FFE4B5"
  }'

Sticker created successfully

{
  "id": "sticker-123",
  "itemType": "Sticker",
  "transformation": {
    "rotate": 0,
    "scaleX": 1,
    "scaleY": 1,
    "translateX": 200,
    "translateY": 200
  },
  "backgroundColor": "#FFE4B5",
  "text": {
    "children": [
      {
        "type": "paragraph",
        "children": [
          {
            "text": "Important note",
            "type": "text",
            "fontSize": 14,
            "fontColor": "black",
            "fontFamily": "Arial"
          }
        ]
      }
    ]
  }
}