Skip to content

Stickers

GET /v1/accounts/{a}/custom-stickers

Read ordered Saved membership from the official profile without a network refresh.

Scope: media

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.

Response: CustomStickerList

POST /v1/accounts/{a}/custom-stickers

Save a prepared or received sticker asynchronously without sending a message.

Scope: send

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
Idempotency-Key (required)headerstringRepeating 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringStable Saved sticker identity.
Idempotency-Key (required)headerstringRepeating a request with the same key returns the original result instead of repeating the work.
If-Match (required)headerstringQuoted 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringStable Saved sticker identity.

Response: CustomSticker

PATCH /v1/accounts/{a}/custom-stickers/{id}

Change Saved placement using If-Match and a relative anchor.

Scope: send

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringStable Saved sticker identity.
Idempotency-Key (required)headerstringRepeating a request with the same key returns the original result instead of repeating the work.
If-Match (required)headerstringQuoted 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

ParameterInTypeDescription
a (required)pathstringAccount 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
Idempotency-Key (required)headerstringRepeating 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
cursorquerystring, nullableOpaque available-feed continuation returned by the preceding page.
membershipqueryStickerMembershipFilter or , nullableSelect 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringOfficial product identity.

Response: StickerPack

DELETE /v1/accounts/{a}/sticker-packs/{id}/membership

Remove account membership and reconcile canonical pack storage asynchronously.

Scope: send

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringOfficial product identity.
Idempotency-Key (required)headerstringRepeating 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringOfficial product identity.
Idempotency-Key (required)headerstringRepeating 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringOfficial product identity.
languagequerystring, nullableExact 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringOfficial product identity.
stickerId (required)pathstringStable content identity of an item in the selected pack.
languagequerystring, nullableExact 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
Idempotency-Key (required)headerstringRepeating 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
id (required)pathstringPreparation 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

ParameterInTypeDescription
a (required)pathstringAccount ID or alias.
Idempotency-Key (required)headerstringRepeating 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.

FieldTypeDescription
source (required)CustomStickerSourceOwned source, validated before the asynchronous operation is admitted.

CustomSticker

One saved custom sticker read from the official profile.

FieldTypeDescription
caption (required)string, nullableOptional official caption, not an editable local label.
id (required)stringOfficial content identity.
original (required)MediaAsset or , nullableVerified original and visual preview references when the individual item is read.

CustomStickerList

Saved membership and order read from one profile snapshot.

FieldTypeDescription
freshness (required)stringOrigin of the observation, currently profile.
items (required)array of CustomStickerItems in picker order.
revision (required)stringOrdered-identity digest, returned as the HTTP entity tag.

CustomStickerPosition

Relative placement within Saved, avoiding stale numeric indexes.

FieldTypeDescription
afterIdstring, nullablePlace immediately after this identity; null places the item first.

CustomStickerSource

Source to save into the account’s one custom Saved collection.

ValueDescription
objectValidated temporary output created by sticker preparation.
objectA 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.

FieldTypeDescription
accountId (required)stringID of the account the attachment belongs to.
actualVariant (required)MediaVariant or , nullableWhich copy the cached bytes really are, once checked. Null until bytes are cached.
advertisedByteLengthinteger, nullableSize 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, nullableNumber of frames when the attachment is an animated image. Null otherwise.
autoDownloadAllowedboolean, nullableTrue when the account’s current download setting allows this copy to be downloaded automatically.
byteLength (required)integer, nullableSize in bytes of the cached bytes that were checked. Null until they are cached.
contentType (required)string, nullableMIME type of the cached bytes. Null until they are cached.
contentUrl (required)string, nullablePath on the daemon to fetch the cached bytes from. Null until the attachment is available.
expiresAt (required)integer, nullableWhen WeChat’s copy expires, as Unix time in seconds. Null when WeChat gave no expiry.
filename (required)string, nullableFile name of the attachment, when it has one. Null otherwise.
id (required)stringAttachment ID, used to fetch or request this copy.
jobId (required)string, nullableID of the job downloading or sending this attachment. Null when there is none.
kind (required)MediaKindWhat kind of attachment this is.
messageId (required)string, nullableID of the message the attachment belongs to. Null when it is not tied to a message.
officialWriteback (required)stringWhether 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.
previewMediaImagePreview or , nullable
reason (required)string, nullableMachine-readable code explaining the state, such as media_expired. Null when there is nothing to explain.
retryable (required)booleanTrue 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, nullableSHA-256 of the cached bytes, as lowercase hex. Null until they are cached.
state (required)stringpending (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)MediaVariantWhich copy this is, as advertised by the message.

MediaImagePreview

A separately hashed still image. Its bytes never replace the source asset.

FieldTypeDescription
byteLength (required)integerSize of the preview in bytes.
contentType (required)stringMIME type of the preview.
contentUrl (required)stringPath on the daemon to fetch the preview from.
filename (required)stringFile name of the preview.
sha256 (required)stringSHA-256 of the preview bytes, as lowercase hex.
sourceSha256 (required)stringSHA-256 of the original image bytes this preview was made from.

MediaJob

A background media or sticker operation, with its progress and outcome.

FieldTypeDescription
accountId (required)stringID of the account the job belongs to.
assetId (required)string, nullableID of the attachment being downloaded. Null for sends.
attempts (required)integerHow many times the job has been started. A failed job can be retried only while this is below 3.
cancelRequested (required)booleanTrue when a cancel has been requested for the job.
completedBytes (required)integerBytes transferred so far.
createdAt (required)stringWhen the job was created, as an RFC 3339 time.
id (required)stringJob ID.
kind (required)stringsend, download, sticker_prepare, sticker_saved, sticker_pack, sticker_acquire or sticker_send.
phase (required)stringCurrent step: queued, preparing, downloading, reserving, uploading, submitting, readback, projecting or completed.
reason (required)string, nullableError code of the last failure. Null when there has been none.
result (required)anyDetails of the outcome. Its fields depend on the job, and it is null until there is something to report.
retryable (required)booleanTrue when the job can be retried.
serverMessageId (required)string, nullableWeChat’s ID of the sent message once WeChat accepted it. Null until then.
sourceId (required)string, nullableID of the uploaded source being sent. Null for downloads.
state (required)stringWhere 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, nullableID of the chat a send goes to. Null for downloads.
totalBytes (required)integer, nullableTotal bytes to transfer, when known. Null otherwise.
updatedAt (required)stringWhen the job last changed, as an RFC 3339 time.

MediaKind

The kind of an attachment.

ValueDescription
”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.

ValueDescription
”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.

FieldTypeDescription
position (required)CustomStickerPositionRequested relative placement.

StickerCollection

A derived composer collection; only Saved supports individual mutations.

FieldTypeDescription
id (required)stringStable picker identity, saved or a pack-prefixed identity.
kind (required)stringsaved or pack.
packId (required)string, nullableProduct identity for an added official pack.
title (required)stringOfficial display name; clients localize the Saved label themselves.

StickerCollections

All current account-added picker collections, independent of catalog coverage.

FieldTypeDescription
items (required)array of StickerCollectionSaved followed by canonical added packs.

StickerDownloadRequest

Explicit target for acquiring a Saved original, one pack item or one pack.

FieldTypeDescription
assetIdstring, nullableAdvertised pack icon, cover or thumbnail asset. Exclusive of pack/item IDs.
packIdstring, nullableProduct identity for one official pack. Omit for a Saved original.
stickerIdstring, nullableStable 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.

FieldTypeDescription
contentReadiness (required)stringMedia readiness; unverified does not mean that cached bytes are missing.
cover (required)MediaAsset or , nullableAuthenticated cover media reference, when indexed.
description (required)string, nullableOptional official display description.
eligible (required)boolean, nullableWhether this remote observation is in the validated eligible-free class. Null means eligibility has not been established by this view.
icon (required)MediaAsset or , nullableAuthenticated icon media reference, when indexed.
id (required)stringOfficial product identity.
membership (required)stringadded or not_added, derived from the canonical account profile.
name (required)stringOfficial name, falling back to identity when absent locally.
stickerCount (required)integer, nullableItem count when a complete detail read supplied it.

StickerPackList

A bounded public-feed page or the complete canonical account-added list.

FieldTypeDescription
coverage (required)stringavailable_feed or account_added; neither claims a global inventory.
items (required)array of StickerPackPack metadata in the view’s order.
nextCursor (required)string, nullableOpaque 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.

FieldTypeDescription
caption (required)string, nullableCaption selected by exact requested locale then literal default fallback.
captions (required)array of array of anyAll supplied official locale/text pairs.
id (required)stringOriginal content identity.
ordinal (required)integerOne-based pack ordinal.
original (required)MediaAsset or , nullableVerified original metadata and authenticated media reference, when indexed.
packId (required)stringProduct identity.
thumbnail (required)MediaAsset or , nullableThumbnail metadata and authenticated media reference, when indexed.

StickerPackStickers

Complete supplied pack items, with no acquisition started by the read.

FieldTypeDescription
items (required)array of StickerPackStickerOrdered pack contents.
packId (required)stringProduct identity.

StickerPreparationRequest

Explicit preparation of owned image/GIF/video bytes; never saves or sends a sticker.

FieldTypeDescription
fitbooleanShrink 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.
fpsinteger, nullableFrame rate for a sticker made from video (1 to 30, default 10). Image and GIF sources keep their own timing and refuse this option.
maxEdgeinteger, nullableShrink 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)stringID returned by the existing upload endpoint.
trimStickerPreparationTrim or , nullableOptional explicit segment, in milliseconds. Omission preserves the source duration.

StickerPreparationTrim

Explicit segment retained when preparing an animation or video.

FieldTypeDescription
durationMs (required)integerDuration of the retained segment in milliseconds, greater than zero.
startMs (required)integerStart of the retained segment in milliseconds.

StickerSyncRequest

Request reconciliation of the account’s custom Saved collection.

FieldTypeDescription
scopeStickerSyncScopeCollections to reconcile: saved, added or all.

StickerSyncScope

Collection selected for a reconciliation operation.

ValueDescription
”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.