IExpressions
v1 stable/IExpressions/v1/
Read a space's sticker and custom emoji packs and add to them. Bots change only the packs and items they made, and never delete or reorder. Writing takes CreateExpressions among the bot's required entitlements; a space that installed the bot before it asked for it grants that only once the owner approves.
Authentication required
All endpoints require Authorization: Bot <token> header.
Get a token →
/IExpressions/v1/AddItem CreateExpressions Adds a sticker or emoji to a pack (multipart). file, and thumb for an animated item (a first-frame WEBP of the same size), are parts, attach://<part> references or fileIds from IFiles/Upload. PNG is stored as WEBP. Each call adds a new item; deduplicating a re-import is the bot's job, e.g. keep tg:<file_unique_id> as a keyword and check List first. Needs CreateExpressions; existing installs grant it after the owner re-approves the bot.
Form Fields multipart/form-data
Each field is a text part; a list repeats its field once per value, or sends one field holding a JSON array.
A file field is a part of that name, or a text field holding
attach://<part> that names another part of the request.
Where a route reuses uploads, it also takes the fileId of an
IFiles/Upload.
See Stickers & Custom Emoji → Files.
A file: the part of this name itself, or a text field holding attach://<name> (another part of the request) or the fileId of an IFiles/Upload.
A file: the part of this name itself, or a text field holding attach://<name> (another part of the request) or the fileId of an IFiles/Upload.
A part an attach://<name> reference names.
Response BotExpressionItemV1
Errors
Example
curl -X POST \
-H "Authorization: Bot YOUR_TOKEN" \
-F "spaceId=..." \
-F "packId=..." \
-F "name=..." \
-F "file=@./file" \
https://gateway.argon.zone/IExpressions/v1/AddItem /IExpressions/v1/CreatePack CreateExpressions Creates a sticker or emoji pack. Repeating it with the slug of a pack this bot made returns that pack. Needs CreateExpressions; existing installs grant it after the owner re-approves the bot.
Request Body CreatePackRequest
Response BotExpressionPackV1
Errors
Example
curl -X POST \
-H "Authorization: Bot YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"...","kind":"...","title":"...","slug":"..."}' \
https://gateway.argon.zone/IExpressions/v1/CreatePack /IExpressions/v1/GetPack Gets one pack with its items, by packId or by slug.
Query Parameters
Response BotExpressionPackV1
Errors
Example
curl -X GET \
-H "Authorization: Bot YOUR_TOKEN" \
"https://gateway.argon.zone/IExpressions/v1/GetPack?spaceId=...&packId=...&slug=..." /IExpressions/v1/GetQuota How many packs, stickers and emoji the space holds against its limits, which grow with its boost level.
Query Parameters
Response BotQuotaV1
Errors
Example
curl -X GET \
-H "Authorization: Bot YOUR_TOKEN" \
"https://gateway.argon.zone/IExpressions/v1/GetQuota?spaceId=..." /IExpressions/v1/List Lists the space's packs with their items. Pass the version you hold as known: packs is null while it is still current.
Query Parameters
Response ExpressionsListResponse
Errors
Example
curl -X GET \
-H "Authorization: Bot YOUR_TOKEN" \
"https://gateway.argon.zone/IExpressions/v1/List?spaceId=...&known=..." /IExpressions/v1/UpdateItem CreateExpressions Changes the name, associated emoji, keywords or text colouring of an item this bot made. Fields left out are kept. Needs CreateExpressions; existing installs grant it after the owner re-approves the bot.
Request Body UpdateItemRequest
Response BotExpressionItemV1
Errors
Example
curl -X PATCH \
-H "Authorization: Bot YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"...","itemId":"...","name":null,"emoji":null,"keywords":null,"textColor":null}' \
https://gateway.argon.zone/IExpressions/v1/UpdateItem /IExpressions/v1/UpdatePack CreateExpressions Changes the title or the cover item of a pack this bot made. Fields left out are kept. Needs CreateExpressions; existing installs grant it after the owner re-approves the bot.
Request Body UpdatePackRequest
Response BotExpressionPackV1
Errors
Example
curl -X PATCH \
-H "Authorization: Bot YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"spaceId":"...","packId":"...","title":null,"coverItemId":null}' \
https://gateway.argon.zone/IExpressions/v1/UpdatePack