POST
/
api
/
sticker-templates
Create a sticker template
curl --request POST \
  --url http://localhost:3000/api/sticker-templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "width": 1,
  "height": 1,
  "name": "<string>",
  "elements": [
    "<unknown>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "_id": "<string>",
    "name": "default",
    "width": 123,
    "height": 123,
    "elements": [
      "<unknown>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
width
number
required
Required range: x >= 0
height
number
required
Required range: x >= 0
name
string

Unique name (defaults to 'default')

Minimum string length: 1
elements
any[]

JSON array of sticker layout elements

Response

Sticker template created

success
boolean
Example:

true

message
string
data
object