Use this API to post the shoppable photos with uris and metadata.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Photo Info Metadata
object
Photo file uris, not a file upload. Use [Upload Shoppable Photo File] to upload the image and obtain the photo_file_uri, then pass that URI in this field
Music ID
Post title:The maximum length is 5000 in UTF-16 runes. If not specified, the ticket post will not have any captions. - You can add relevant hashtags to increase discoverability. The format is simply # followed by the topic name. Multiple hashtags are supported,e.g.,#humor#BFCM
Photo anchor and linking metadata
object
1-LINK_TO_PRODUCT, 2-LINK_TO_SHOP, 3-LINK_TO_ONE_PIC_ONE_PRODUCT
Shop Info
object
Shop ID
1 for shop_home_page, 2 for category, 3 for collection
Category ID/Collection ID. Use [Get Shop Category And Collection] to retrieve a valid category_id or collection_id, then set it in this field
Photo Anchor List
object
Product ID
Photo Anchor Title:The title to be shown on the product anchor. Anchor title should be shorter than 30 characters
Field to indicate whether the content was AI generated. Marking this field as true will display a tag indicating this post as an AI generated post.
Example
{ "photos_info": [ { "photo_file_uris": "tos-useast5-i-photomode-tx/owBwaPnAIiaYg4Ck6aNcAmLkBA14n8QQQGEgi" } ], "music_id": "7577090708998212365", "title": "Post title", "link_info": { "post_type": "1", "shop_info": { "shop_id": "7494831143334152261", "group_type": "1", "group_id": "6" }, "links": [ { "product_id": "74998589993939330", "link_title": "product A" } ] }, "is_ai_generated": false}Responses
Section titled “Responses”Success
object
Status code; 0 means success.
Success or failure message.
Request log ID.
object
Post shoppable photos response
object
Photo post ID
Content posting quota for the creator. Returned on successful publish; included in the error message on failure; omitted if no quota restriction applies.
Example
{ "code": 0, "data": { "photo": { "photo_post_id": "34234234234324342" }, "quota": "3/day" }, "message": "Success", "request_id": "202203070749000101890810281E8C70B7"}