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.
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 is a part, an attach://<part> reference or a fileId from IFiles/Upload. PNG is stored as WEBP. Each call adds a new item; deduplicating repeated uploads is the bot's job. Needs CreateExpressions.
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 Files & Attachments → Multipart requests.
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.
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.
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.
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