Create an engagement task that acts as a container for grouping messages with similar content and rules, allowing sellers to track and compare task performance across different types of content. Note that each task has a mandatory end time, and once expired, it cannot be used to send additional messages.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Identifies the shop. Obtain it from the Get Authorized Shops API.
A unique key to recognize a request and prevent duplicate processing of the same request, especially in cases of connection issues. Ensure this key is unique for each request to avoid accidental duplicates. Note: We recommend that you generate v4 UUIDs for use as keys.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The ID of engagement message templates predefined by TikTok Shop. Retrieve the value from Get Message Templates.
The name of the task. Length: 1–256 bytes.
The time at which the task ends, and messages will no longer be sent. Unix timestamp (seconds).
The engagement channel. Only TIKTOK_IM is supported.
The product ID. Retrieve this value from the Search Products API.
The coupon ID. Retrieve this value and other coupon-related information from the Search Coupons API.
Note: The coupon properties must comply with the rules defined in coupon_card_rules.coupon_type of the Get Message Templates API.
Examplegenerated
{ "template_id": "example", "task_name": "example", "end_time": 1, "channel": "example", "product_ids": [ "example" ], "coupon_ids": [ "example" ]}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
The unique identifier for the customer engagement task. Pass this value in the Send Engagement Message API to associate the task with the message sending operation.
Example
{ "code": 0, "data": { "task_id": "475910475643" }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}