Stickers
GET /v1/accounts/{a}/custom-stickers
Read ordered Saved membership from the official profile without a network refresh.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Response: CustomStickerList
POST /v1/accounts/{a}/custom-stickers
Save a prepared or received sticker asynchronously without sending a message.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Request body: AddCustomStickerRequest
Response: MediaJob
DELETE /v1/accounts/{a}/custom-stickers/{id}
Remove Saved membership asynchronously using If-Match.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Stable Saved sticker identity. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
If-Match (required) | header | string | Quoted current Saved collection revision from its ETag. Stale revisions return 412 and the current revision. |
Response: MediaJob
GET /v1/accounts/{a}/custom-stickers/{id}
Read one Saved sticker by its stable identity.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Stable Saved sticker identity. |
Response: CustomSticker
PATCH /v1/accounts/{a}/custom-stickers/{id}
Change Saved placement using If-Match and a relative anchor.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Stable Saved sticker identity. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
If-Match (required) | header | string | Quoted current Saved collection revision from its ETag. Stale revisions return 412 and the current revision. |
Request body: MoveCustomStickerRequest
Response: MediaJob
GET /v1/accounts/{a}/sticker-collections
Derive Saved and every added official pack for the composer picker.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Response: StickerCollections
POST /v1/accounts/{a}/sticker-downloads
Acquire one Saved original, one pack item, one selected pack or an advertised preview asset, independently of membership.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Request body: StickerDownloadRequest
Response: MediaJob
GET /v1/accounts/{a}/sticker-packs
Read one available-feed page, or the complete canonical account-added list.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
cursor | query | string, nullable | Opaque available-feed continuation returned by the preceding page. |
membership | query | StickerMembershipFilter or , nullable | Select added for the complete canonical account list; omission browses the feed. |
Response: StickerPackList
GET /v1/accounts/{a}/sticker-packs/{id}
Read pack metadata and membership independently of media readiness.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Official product identity. |
Response: StickerPack
DELETE /v1/accounts/{a}/sticker-packs/{id}/membership
Remove account membership and reconcile canonical pack storage asynchronously.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Official product identity. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Response: MediaJob
PUT /v1/accounts/{a}/sticker-packs/{id}/membership
Establish eligible-free pack membership, independently of content acquisition.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Official product identity. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Request body: StickerPackMembershipRequest
Response: MediaJob
GET /v1/accounts/{a}/sticker-packs/{id}/stickers
Read ordered pack item identities, optional captions and media references.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Official product identity. |
language | query | string, nullable | Exact official locale; literal default is the fallback. Defaults to en. |
Response: StickerPackStickers
GET /v1/accounts/{a}/sticker-packs/{id}/stickers/{stickerId}
Read one pack item without starting a media acquisition.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Official product identity. |
stickerId (required) | path | string | Stable content identity of an item in the selected pack. |
language | query | string, nullable | Exact official locale; literal default is the fallback. Defaults to en. |
Response: StickerPackSticker
POST /v1/accounts/{a}/sticker-preparations
Prepare an uploaded image or GIF without saving or sending it.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Request body: StickerPreparationRequest
Response: MediaJob
GET /v1/accounts/{a}/sticker-preparations/{id}
Read a preparation job and its verified media references.
Scope: media
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
id (required) | path | string | Preparation job ID. |
Response: MediaJob
POST /v1/accounts/{a}/sticker-syncs
Request Saved, account-added packs, or both; GET views do not initiate reconciliation.
Scope: send
| Parameter | In | Type | Description |
|---|---|---|---|
a (required) | path | string | Account ID or alias. |
Idempotency-Key (required) | header | string | Repeating a request with the same key returns the original result instead of repeating the work. |
Request body: StickerSyncRequest
Response: MediaJob
Types
AddCustomStickerRequest
Save a prepared or received sticker; this does not send a chat message.
| Field | Type | Description |
|---|---|---|
source (required) | CustomStickerSource | Owned source, validated before the asynchronous operation is admitted. |
CustomSticker
One saved custom sticker read from the official profile.
| Field | Type | Description |
|---|---|---|
caption (required) | string, nullable | Optional official caption, not an editable local label. |
id (required) | string | Official content identity. |
original (required) | MediaAsset or , nullable | Verified original and visual preview references when the individual item is read. |
CustomStickerList
Saved membership and order read from one profile snapshot.
| Field | Type | Description |
|---|---|---|
freshness (required) | string | Origin of the observation, currently profile. |
items (required) | array of CustomSticker | Items in picker order. |
revision (required) | string | Ordered-identity digest, returned as the HTTP entity tag. |
CustomStickerPosition
Relative placement within Saved, avoiding stale numeric indexes.
| Field | Type | Description |
|---|---|---|
afterId | string, nullable | Place immediately after this identity; null places the item first. |
CustomStickerSource
Source to save into the account’s one custom Saved collection.
| Value | Description |
|---|---|
| object | Validated temporary output created by sticker preparation. |
| object | A verified original attachment belonging to a received sticker message. |
MediaAsset
One copy of a message’s attachment, and whether its bytes have been downloaded and checked.
| Field | Type | Description |
|---|---|---|
accountId (required) | string | ID of the account the attachment belongs to. |
actualVariant (required) | MediaVariant or , nullable | Which copy the cached bytes really are, once checked. Null until bytes are cached. |
advertisedByteLength | integer, nullable | Size in bytes the sender advertised, which can differ from the checked size. Omitted when the sender gave none, which does not mean the file is empty. |
animationFrames (required) | integer, nullable | Number of frames when the attachment is an animated image. Null otherwise. |
autoDownloadAllowed | boolean, nullable | True when the account’s current download setting allows this copy to be downloaded automatically. |
byteLength (required) | integer, nullable | Size in bytes of the cached bytes that were checked. Null until they are cached. |
contentType (required) | string, nullable | MIME type of the cached bytes. Null until they are cached. |
contentUrl (required) | string, nullable | Path on the daemon to fetch the cached bytes from. Null until the attachment is available. |
expiresAt (required) | integer, nullable | When WeChat’s copy expires, as Unix time in seconds. Null when WeChat gave no expiry. |
filename (required) | string, nullable | File name of the attachment, when it has one. Null otherwise. |
id (required) | string | Attachment ID, used to fetch or request this copy. |
jobId (required) | string, nullable | ID of the job downloading or sending this attachment. Null when there is none. |
kind (required) | MediaKind | What kind of attachment this is. |
messageId (required) | string, nullable | ID of the message the attachment belongs to. Null when it is not tied to a message. |
officialWriteback (required) | string | Whether the downloaded copy was also saved into the official profile’s own media folders: complete, pending, blocked, or unsupported for media that is never saved there. |
preview | MediaImagePreview or , nullable | |
reason (required) | string, nullable | Machine-readable code explaining the state, such as media_expired. Null when there is nothing to explain. |
retryable (required) | boolean | True when asking for the download again can still succeed. A failed image, voice note or sticker is retryable: a new transfer request starts a fresh download. |
sha256 (required) | string, nullable | SHA-256 of the cached bytes, as lowercase hex. Null until they are cached. |
state (required) | string | pending (not downloaded yet, or its download is queued or running), available (downloaded and checked), failed or cancelled (its last download ended without bytes), expired (WeChat no longer has it) or unsupported. |
variant (required) | MediaVariant | Which copy this is, as advertised by the message. |
MediaImagePreview
A separately hashed still image. Its bytes never replace the source asset.
| Field | Type | Description |
|---|---|---|
byteLength (required) | integer | Size of the preview in bytes. |
contentType (required) | string | MIME type of the preview. |
contentUrl (required) | string | Path on the daemon to fetch the preview from. |
filename (required) | string | File name of the preview. |
sha256 (required) | string | SHA-256 of the preview bytes, as lowercase hex. |
sourceSha256 (required) | string | SHA-256 of the original image bytes this preview was made from. |
MediaJob
A background media or sticker operation, with its progress and outcome.
| Field | Type | Description |
|---|---|---|
accountId (required) | string | ID of the account the job belongs to. |
assetId (required) | string, nullable | ID of the attachment being downloaded. Null for sends. |
attempts (required) | integer | How many times the job has been started. A failed job can be retried only while this is below 3. |
cancelRequested (required) | boolean | True when a cancel has been requested for the job. |
completedBytes (required) | integer | Bytes transferred so far. |
createdAt (required) | string | When the job was created, as an RFC 3339 time. |
id (required) | string | Job ID. |
kind (required) | string | send, download, sticker_prepare, sticker_saved, sticker_pack, sticker_acquire or sticker_send. |
phase (required) | string | Current step: queued, preparing, downloading, reserving, uploading, submitting, readback, projecting or completed. |
reason (required) | string, nullable | Error code of the last failure. Null when there has been none. |
result (required) | any | Details of the outcome. Its fields depend on the job, and it is null until there is something to report. |
retryable (required) | boolean | True when the job can be retried. |
serverMessageId (required) | string, nullable | WeChat’s ID of the sent message once WeChat accepted it. Null until then. |
sourceId (required) | string, nullable | ID of the uploaded source being sent. Null for downloads. |
state (required) | string | Where the job stands: queued, running, available (operation finished), accepted (WeChat took the send), needs_review (the outcome is unknown, so check before sending again), cancelled, expired, unsupported or failed. |
threadId (required) | string, nullable | ID of the chat a send goes to. Null for downloads. |
totalBytes (required) | integer, nullable | Total bytes to transfer, when known. Null otherwise. |
updatedAt (required) | string | When the job last changed, as an RFC 3339 time. |
MediaKind
The kind of an attachment.
| Value | Description |
|---|---|
| ”image” | A photo or other still image. |
| ”file” | Any file. A file is sent with its bytes unchanged. |
| ”video” | A video. |
| ”voice” | A voice note. |
| ”sticker” | A sticker. Stickers can be received and downloaded but not sent. |
MediaVariant
Which copy of an attachment, or which quality to request. For a request, best picks the best copy available.
| Value | Description |
|---|---|
| ”best” | The best copy available. It downloads one when none is cached. Only valid in a request. |
| ”thumbnail” | A small preview copy. |
| ”standard” | The standard-size copy of an image. |
| ”original” | The original copy as offered by the sender, which can be smaller than the sender’s own source. |
| ”normal” | The ordinary playback copy of a video, or the playable audio of a voice note. |
| ”encoded” | A voice note in its original encoded form. |
MoveCustomStickerRequest
Move one Saved sticker using a collection revision precondition.
| Field | Type | Description |
|---|---|---|
position (required) | CustomStickerPosition | Requested relative placement. |
StickerCollection
A derived composer collection; only Saved supports individual mutations.
| Field | Type | Description |
|---|---|---|
id (required) | string | Stable picker identity, saved or a pack-prefixed identity. |
kind (required) | string | saved or pack. |
packId (required) | string, nullable | Product identity for an added official pack. |
title (required) | string | Official display name; clients localize the Saved label themselves. |
StickerCollections
All current account-added picker collections, independent of catalog coverage.
| Field | Type | Description |
|---|---|---|
items (required) | array of StickerCollection | Saved followed by canonical added packs. |
StickerDownloadRequest
Explicit target for acquiring a Saved original, one pack item or one pack.
| Field | Type | Description |
|---|---|---|
assetId | string, nullable | Advertised pack icon, cover or thumbnail asset. Exclusive of pack/item IDs. |
packId | string, nullable | Product identity for one official pack. Omit for a Saved original. |
stickerId | string, nullable | Stable item identity. Required for Saved; optional for an entire pack. |
StickerMembershipFilter
Supported membership list filter.
Type: “added”
StickerPack
Public pack metadata with membership separate from verified media readiness.
| Field | Type | Description |
|---|---|---|
contentReadiness (required) | string | Media readiness; unverified does not mean that cached bytes are missing. |
cover (required) | MediaAsset or , nullable | Authenticated cover media reference, when indexed. |
description (required) | string, nullable | Optional official display description. |
eligible (required) | boolean, nullable | Whether this remote observation is in the validated eligible-free class. Null means eligibility has not been established by this view. |
icon (required) | MediaAsset or , nullable | Authenticated icon media reference, when indexed. |
id (required) | string | Official product identity. |
membership (required) | string | added or not_added, derived from the canonical account profile. |
name (required) | string | Official name, falling back to identity when absent locally. |
stickerCount (required) | integer, nullable | Item count when a complete detail read supplied it. |
StickerPackList
A bounded public-feed page or the complete canonical account-added list.
| Field | Type | Description |
|---|---|---|
coverage (required) | string | available_feed or account_added; neither claims a global inventory. |
items (required) | array of StickerPack | Pack metadata in the view’s order. |
nextCursor (required) | string, nullable | Opaque continuation for the available feed; null when complete. |
StickerPackMembershipRequest
Empty membership representation. Adding a pack does not purchase it or acquire media.
Type: object
StickerPackSticker
One item of an official pack. Captions are optional official metadata.
| Field | Type | Description |
|---|---|---|
caption (required) | string, nullable | Caption selected by exact requested locale then literal default fallback. |
captions (required) | array of array of any | All supplied official locale/text pairs. |
id (required) | string | Original content identity. |
ordinal (required) | integer | One-based pack ordinal. |
original (required) | MediaAsset or , nullable | Verified original metadata and authenticated media reference, when indexed. |
packId (required) | string | Product identity. |
thumbnail (required) | MediaAsset or , nullable | Thumbnail metadata and authenticated media reference, when indexed. |
StickerPackStickers
Complete supplied pack items, with no acquisition started by the read.
| Field | Type | Description |
|---|---|---|
items (required) | array of StickerPackSticker | Ordered pack contents. |
packId (required) | string | Product identity. |
StickerPreparationRequest
Explicit preparation of owned image/GIF/video bytes; never saves or sends a sticker.
| Field | Type | Description |
|---|---|---|
fit | boolean | Shrink proportionally to fit within the 1024-pixel sticker edge limit when the source is larger. Without it, a larger image or GIF is refused; smaller sources keep their size and encoding. |
fps | integer, nullable | Frame rate for a sticker made from video (1 to 30, default 10). Image and GIF sources keep their own timing and refuse this option. |
maxEdge | integer, nullable | Shrink proportionally so the longest edge is at most this many pixels (16 to 1024). Never enlarges. For video it replaces the 240-pixel default. |
sourceId (required) | string | ID returned by the existing upload endpoint. |
trim | StickerPreparationTrim or , nullable | Optional explicit segment, in milliseconds. Omission preserves the source duration. |
StickerPreparationTrim
Explicit segment retained when preparing an animation or video.
| Field | Type | Description |
|---|---|---|
durationMs (required) | integer | Duration of the retained segment in milliseconds, greater than zero. |
startMs (required) | integer | Start of the retained segment in milliseconds. |
StickerSyncRequest
Request reconciliation of the account’s custom Saved collection.
| Field | Type | Description |
|---|---|---|
scope | StickerSyncScope | Collections to reconcile: saved, added or all. |
StickerSyncScope
Collection selected for a reconciliation operation.
| Value | Description |
|---|---|
| ”saved” | The account’s custom Saved collection. |
| ”added” | Every account-added official pack, independently of the public feed. |
| ”all” | Saved and all account-added packs in one reconciliation job. |