Skip to content

Create sticker pack

POST
/api/stickers/packs
curl --request POST \
--url http://localhost:3001/api/stickers/packs \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "stickers": [ { "image_data": "example", "mime_type": "example" } ] }'

Create a new sticker pack with multiple stickers (max 50 stickers per pack)

Sticker pack creation request

Media typeapplication/json
object
name

Sticker pack name

string
stickers

Array of stickers to upload

Array<object>
object
image_data

Base64-encoded sticker image

string
mime_type

MIME type (e.g., “image/png”, “image/webp”)

string
Examplegenerated
{
"name": "example",
"stickers": [
{
"image_data": "example",
"mime_type": "example"
}
]
}

OK

Media typeapplication/json
object
message
string
sticker_pack
object
created_at
string
creator_address
string
id
string
name
string
sticker_count
integer
stickers
Array<object>
object
chunk_id

MeshStorage chunk ID

integer
created_at
string
id
string
mime_type
string
pack_id
string
success
boolean
Examplegenerated
{
"message": "example",
"sticker_pack": {
"created_at": "example",
"creator_address": "example",
"id": "example",
"name": "example",
"sticker_count": 1,
"stickers": [
{
"chunk_id": 1,
"created_at": "example",
"id": "example",
"mime_type": "example",
"pack_id": "example"
}
]
},
"success": true
}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}