> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GeneratePostData

# Package: socialMedia

# Namespace: GeneratedContentService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/social-media/generated-content-v1/generate-post-data.md

## Permission Scopes:
Manage Social Posts: SCOPE.PROMOTE.MANAGE-SOCIAL-POSTS

## Introduction

Generates post content for one or more social channels.

Returns per-channel post payloads matching an item's content, so you can use the result to create a draft or publish. Provide site assets, a text prompt, or both.

---

## REST API

### Schema

```
 Method: generatePostData
 Description: Generates post content for one or more social channels.  Returns per-channel post payloads matching an item's content, so you can use the result to create a draft or publish. Provide site assets, a text prompt, or both.
 URL: https://www.wixapis.com/social-publisher/v1/generate-post-data
 Method: POST
 Method parameters:
   param name: channels | type: array<channels> | description: Channels to generate post content for. When empty, the response includes one entry for each supported channel: Instagram, Facebook, LinkedIn, Pinterest, Google Business Profile, and TikTok. A non-empty value narrows the response to the requested channels.  | validation: maxItems 10
                 - enum: INSTAGRAM, FACEBOOK, YOUTUBE, LINKEDIN, TWITTER, PINTEREST, GBP, TIKTOK
   param name: context | type: context | description: Additional context to incorporate into the generated content.  
   param name: media | type: array<media> | description: Candidate media for the generated post. Accepts images only. Each item carries a `type` (must be image), a `url`, and an optional Wix Media Manager `fileId` for media already in Wix.  | validation: maxItems 10
              - name: type | type: MediaType | description: Media type.  
                     - enum: IMAGE, VIDEO
              - name: url | type: string | description: Media URL.  | validation: format WEB_URL
              - name: fileId | type: string | description: Media Manager file GUID backing the media. Available only when the media is stored in the Media Manager.  | validation: maxLength 1000
   param name: siteAssets | type: array<siteAssets> | description: Site assets the generated post is based on.  | validation: maxItems 10
              - name: id | type: string | description: GUID of the asset in the Wix app that owns it. For example, a product GUID for a `STORES_PRODUCT` asset.  | validation: maxLength 256
              - name: type | type: Type | description: Type of asset.  
                     - enum:
                     -     BLOG_POST: A Wix Blog post.
                     -     EVENT: A Wix Events event.
                     -     STORES_PRODUCT: A Wix Stores product.
                     -     BOOKINGS_SERVICE: A Wix Bookings service.
                     -     STORES_COUPON: A Wix Stores coupon.
                     -     STORES_CATEGORY: A Wix Stores category.
   param name: userInput | type: userInput | description: Free-form guidance for the generated post content.  | validation: maxLength 5000
 Return type: GeneratePostDataResponse
  - name: results | type: array<ChannelPostData> | description: Generated post content, one entry per requested channel.  
     - ONE-OF: 
        - name: instagramPost | type: InstagramPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
                 - name: media | type: array<Media> | description: List of media items.  
                    - name: type | type: MediaType | description: Media type.  
                             - enum: IMAGE, VIDEO
                    - name: url | type: string | description: Media URL.  | validation: format WEB_URL
                    - name: fileId | type: string | description: Media Manager file GUID backing the media. Available only when the media is stored in the Media Manager.  | validation: maxLength 1000
           - name: caption | type: string | description: Caption for the post. Can include hashtags (for example, `#crazywildebeest`) and mentions of Instagram users (for example, `@natgeo`). Mentioned users are notified when the post is published. Supports up to 30 hashtags and 20 mentions.  | validation: maxLength 2200
           - name: postUrl | type: string | description: The post URL on Instagram.  | read-only: true 
           - name: insights | type: InstagramInsights | description: Insights from Instagram.  | read-only: true 
              - name: likes | type: integer | description: Number of likes.  
              - name: engagement | type: integer | description: Number of engagements.  
              - name: impressions | type: integer | description: Number of impressions.  
              - name: plays | type: integer | description: Number of plays.  
              - name: reach | type: integer | description: Number of accounts reached.  
              - name: comments | type: integer | description: Number of comments.  
              - name: shares | type: integer | description: Number of shares.  
              - name: saved | type: integer | description: Number of saves.  
              - name: totalInteractions | type: integer | description: Total number of interactions.  
        - name: facebookPost | type: FacebookPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: link | type: string | description: The link URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: pageId | type: string | description: The page GUID to publish the post to.  
           - name: caption | type: string | description: Caption for the post.  
           - name: postUrl | type: string | description: The post URL on Facebook.  | read-only: true 
           - name: linkMetadata | type: LinkMetadata | description: Link preview metadata. Available only when the post contains a link.  
              - name: thumbnailUrl | type: string | description: Thumbnail URL for the link preview.  
              - name: title | type: string | description: Title for the link preview.  
              - name: description | type: string | description: Description for the link preview.  
           - name: insights | type: FacebookInsights | description: Insights from Facebook.  | read-only: true 
              - name: impressions | type: FacebookImpressions | description: Impression counts.  
                 - name: unique | type: integer | description: Number of unique impressions.  
                 - name: total | type: integer | description: Total number of impressions.  
              - name: interactions | type: FacebookInteractions | description: Interaction counts.  
                 - name: unique | type: integer | description: Number of unique interactions.  
                 - name: total | type: integer | description: Total number of interactions.  
              - name: reactions | type: FacebookReactions | description: Reaction counts.  
                 - name: like | type: integer | description: Number of "like" reactions.  
                 - name: love | type: integer | description: Number of "love" reactions.  
                 - name: wow | type: integer | description: Number of "wow" reactions.  
                 - name: haha | type: integer | description: Number of "haha" reactions.  
                 - name: sad | type: integer | description: Number of "sad" reactions.  
                 - name: anger | type: integer | description: Number of "angry" reactions.  
              - name: activity | type: FacebokActivity | description: Activity counts.  
                 - name: share | type: integer | description: Number of shares.  
                 - name: like | type: integer | description: Number of likes.  
                 - name: comment | type: integer | description: Number of comments.  
              - name: updatedDate | type: string | description: Date and time the insights were last updated.  | validation: format date-time
        - name: linkedinPost | type: LinkedinPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: link | type: string | description: The link URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: authorId | type: string | description: Author GUID of the post. Can be an organization page or a personal feed.  
           - name: caption | type: string | description: Caption for the post.  
           - name: linkMetadata | type: LinkMetadata | description: Link preview metadata. Available only when the post contains a link.  
           - name: insights | type: LinkedinPostInsights | description: Insights from LinkedIn.  | read-only: true 
              - name: uniqueImpressions | type: integer | description: Number of unique impressions.  
              - name: impression | type: integer | description: Total number of impressions.  
              - name: shares | type: integer | description: Number of shares.  
              - name: engagement | type: float | description: Engagement rate.  
              - name: clicks | type: integer | description: Number of clicks.  
              - name: likes | type: integer | description: Number of likes.  
              - name: comments | type: integer | description: Number of comments.  
              - name: updatedDate | type: string | description: Date and time the insights were last updated.  | validation: format date-time
        - name: pinterestPost | type: PinterestPost | description:   
           - name: boardId | type: string | description: The board GUID to publish the post to.  | validation: maxLength 128
           - name: title | type: string | description: The title of the post.  | validation: maxLength 100
           - name: description | type: string | description: The description of the post.  | validation: maxLength 800
           - name: link | type: string | description: The link to include in the post.  | validation: maxLength 2048
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: PinterestInsights | description: Insights from Pinterest.  | read-only: true 
              - name: impressions | type: integer | description: Number of impressions.  
              - name: clicks | type: integer | description: Number of clicks.  
              - name: saves | type: integer | description: Number of saves.  
              - name: comments | type: integer | description: Number of comments.  
              - name: reactions | type: integer | description: Number of reactions.  
              - name: updatedDate | type: string | description: Date and time the insights were last updated.  | validation: format date-time
           - name: boardSectionId | type: string | description: GUID of the board section to publish the pin into. The section must be on the board in `board_id`.  | validation: maxLength 128
           - name: carouselItems | type: array<PinterestCarouselItem> | description: Title, description and link of each image of a carousel pin, in the order of the images in `media_wrapper.media`. A carousel has 2 to 5 images and no video.  When set, it has one entry per image. When omitted, each image uses the post's own title, description and link.  | validation: maxItems 5
              - name: title | type: string | description: Title of the image.  | validation: maxLength 100
              - name: description | type: string | description: Description of the image.  | validation: maxLength 800
              - name: link | type: string | description: Link the image opens.  | validation: maxLength 2048
        - name: gbpPost | type: GbpPost | description:   
           - name: locationId | type: string | description: The location GUID to publish the post to.  | validation: maxLength 128
           - name: locationAccountId | type: string | description: Account (group) GUID of the location.  | validation: maxLength 128
           - name: description | type: string | description: The description of the post.  | validation: maxLength 1500
           - name: callToAction | type: GbpPostCallToAction | description: Call to action type and URL to include in the post.  
              - name: actionType | type: GbpPostCallToActionType | description: Type of the call to action.  
                     - enum: BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP
              - name: url | type: string | description: URL of the call to action.  | validation: maxLength 2048
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: GbpInsights | description: Insights from Google Business Profile.  | read-only: true 
              - name: shares | type: integer | description: Number of shares. Google Business Profile post insights aren't currently available, so this returns `-1`.  
              - name: updatedDate | type: string | description: Date and time the insights were last updated.  | validation: format date-time
        - name: tiktokPhoto | type: TikTokPhoto | description:   
           - name: accountId | type: string | description: The account GUID to publish the photo to.  | validation: maxLength 128
           - name: privacyLevel | type: TikTokPrivacyLevel | description: Privacy level for the photo.  
                 - enum: PUBLIC_TO_EVERYONE, FOLLOWER_OF_CREATOR, MUTUAL_FOLLOW_FRIENDS, SELF_ONLY
           - name: title | type: string | description: A title for the photo.  | validation: maxLength 90
           - name: description | type: string | description: A description for the photo.  | validation: maxLength 4000
           - name: disableComment | type: boolean | description: Whether comments are disabled for the photo.  
           - name: autoAddMusic | type: boolean | description: Whether to automatically add music to the photo.  
           - name: brandContentToggle | type: boolean | description: Whether the content is a paid partnership promoting a third-party business.  
           - name: brandOrganicToggle | type: boolean | description: Whether the content promotes the creator's own business.  
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: TikTokInsights | description: Insights from TikTok.  | read-only: true 
              - name: views | type: integer | description: Number of views.  
              - name: likes | type: integer | description: Number of likes.  
              - name: comments | type: integer | description: Number of comments.  
              - name: shares | type: integer | description: Number of shares.  
              - name: updatedDate | type: string | description: Date and time the insights were last updated.  | validation: format date-time
     - name: channelName | type: ChannelName | description: Channel the content is generated for.  
         - enum: INSTAGRAM, FACEBOOK, YOUTUBE, LINKEDIN, TWITTER, PINTEREST, GBP, TIKTOK


```

### Examples

### Generate post content for Instagram and Facebook
Generate per-channel post payloads from a prompt and an image. The results can be used to create a draft or publish an item.

```curl
curl -X POST \
'https://www.wixapis.com/social-publisher/v1/generate-post-data' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "userInput": "Announce our new summer collection of handmade ceramic mugs with a 20% discount this week",
  "media": [
    {
      "type": "IMAGE",
      "url": "https://static.wixstatic.com/media/cf2434_4b3a2d8eb7f54bc89c0d4524430a2af3~mv2.jpg"
    }
  ],
  "channels": ["INSTAGRAM", "FACEBOOK"]
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGrowthToolsPublisher.generatedContent.generatePostData(options)
 Description: Generates post content for one or more social channels.  Returns per-channel post payloads matching an item's content, so you can use the result to create a draft or publish. Provide site assets, a text prompt, or both.
 Method parameters:
   param name: options | type: GeneratePostDataOptions  none  
        - name: siteAssets | type: array<SiteAsset> | description: Site assets the generated post is based on.  | validation: maxItems 10
           - name: _id | type: string | description: GUID of the asset in the Wix app that owns it. For example, a product GUID for a `STORES_PRODUCT` asset.  | validation: maxLength 256
           - name: type | type: Type | description: Type of asset.  
                 - enum:
                 -     BLOG_POST: A Wix Blog post.
                 -     EVENT: A Wix Events event.
                 -     STORES_PRODUCT: A Wix Stores product.
                 -     BOOKINGS_SERVICE: A Wix Bookings service.
                 -     STORES_COUPON: A Wix Stores coupon.
                 -     STORES_CATEGORY: A Wix Stores category.
        - name: userInput | type: string | description: Free-form guidance for the generated post content.  | validation: maxLength 5000
        - name: media | type: array<Media> | description: Candidate media for the generated post. Accepts images only. Each item carries a `type` (must be image), a `url`, and an optional Wix Media Manager `fileId` for media already in Wix.  | validation: maxItems 10
           - name: type | type: MediaType | description: Media type.  
                 - enum: IMAGE, VIDEO
           - name: url | type: string | description: Media URL.  | validation: format WEB_URL
           - name: fileId | type: string | description: Media Manager file GUID backing the media. Available only when the media is stored in the Media Manager.  | validation: maxLength 1000
        - name: context | type: object | description: Additional context to incorporate into the generated content.  
        - name: channels | type: array<ChannelName> | description: Channels to generate post content for. When empty, the response includes one entry for each supported channel: Instagram, Facebook, LinkedIn, Pinterest, Google Business Profile, and TikTok. A non-empty value narrows the response to the requested channels.  | validation: maxItems 10
             - enum: INSTAGRAM, FACEBOOK, YOUTUBE, LINKEDIN, TWITTER, PINTEREST, GBP, TIKTOK
 Return type: PROMISE<GeneratePostDataResponse>
  - name: results | type: array<ChannelPostData> | description: Generated post content, one entry per requested channel.  
     - ONE-OF: 
        - name: instagramPost | type: InstagramPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
                 - name: media | type: array<Media> | description: List of media items.  
                    - name: type | type: MediaType | description: Media type.  
                             - enum: IMAGE, VIDEO
                    - name: url | type: string | description: Media URL.  | validation: format WEB_URL
                    - name: fileId | type: string | description: Media Manager file GUID backing the media. Available only when the media is stored in the Media Manager.  | validation: maxLength 1000
           - name: caption | type: string | description: Caption for the post. Can include hashtags (for example, `#crazywildebeest`) and mentions of Instagram users (for example, `@natgeo`). Mentioned users are notified when the post is published. Supports up to 30 hashtags and 20 mentions.  | validation: maxLength 2200
           - name: postUrl | type: string | description: The post URL on Instagram.  | read-only: true 
           - name: insights | type: InstagramInsights | description: Insights from Instagram.  | read-only: true 
              - name: likes | type: integer | description: Number of likes.  
              - name: engagement | type: integer | description: Number of engagements.  
              - name: impressions | type: integer | description: Number of impressions.  
              - name: plays | type: integer | description: Number of plays.  
              - name: reach | type: integer | description: Number of accounts reached.  
              - name: comments | type: integer | description: Number of comments.  
              - name: shares | type: integer | description: Number of shares.  
              - name: saved | type: integer | description: Number of saves.  
              - name: totalInteractions | type: integer | description: Total number of interactions.  
        - name: facebookPost | type: FacebookPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: link | type: string | description: The link URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: pageId | type: string | description: The page GUID to publish the post to.  
           - name: caption | type: string | description: Caption for the post.  
           - name: postUrl | type: string | description: The post URL on Facebook.  | read-only: true 
           - name: linkMetadata | type: LinkMetadata | description: Link preview metadata. Available only when the post contains a link.  
              - name: thumbnailUrl | type: string | description: Thumbnail URL for the link preview.  
              - name: title | type: string | description: Title for the link preview.  
              - name: description | type: string | description: Description for the link preview.  
           - name: insights | type: FacebookInsights | description: Insights from Facebook.  | read-only: true 
              - name: impressions | type: FacebookImpressions | description: Impression counts.  
                 - name: unique | type: integer | description: Number of unique impressions.  
                 - name: total | type: integer | description: Total number of impressions.  
              - name: interactions | type: FacebookInteractions | description: Interaction counts.  
                 - name: unique | type: integer | description: Number of unique interactions.  
                 - name: total | type: integer | description: Total number of interactions.  
              - name: reactions | type: FacebookReactions | description: Reaction counts.  
                 - name: like | type: integer | description: Number of "like" reactions.  
                 - name: love | type: integer | description: Number of "love" reactions.  
                 - name: wow | type: integer | description: Number of "wow" reactions.  
                 - name: haha | type: integer | description: Number of "haha" reactions.  
                 - name: sad | type: integer | description: Number of "sad" reactions.  
                 - name: anger | type: integer | description: Number of "angry" reactions.  
              - name: activity | type: FacebokActivity | description: Activity counts.  
                 - name: share | type: integer | description: Number of shares.  
                 - name: like | type: integer | description: Number of likes.  
                 - name: comment | type: integer | description: Number of comments.  
              - name: _updatedDate | type: Date | description: Date and time the insights were last updated.  
        - name: linkedinPost | type: LinkedinPost | description:   
           - ONE-OF: 
              - name: imageUrl | type: string | description: The image URL.  
              - name: videoUrl | type: string | description: The video URL.  
              - name: link | type: string | description: The link URL.  
              - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: authorId | type: string | description: Author GUID of the post. Can be an organization page or a personal feed.  
           - name: caption | type: string | description: Caption for the post.  
           - name: linkMetadata | type: LinkMetadata | description: Link preview metadata. Available only when the post contains a link.  
           - name: insights | type: LinkedinPostInsights | description: Insights from LinkedIn.  | read-only: true 
              - name: uniqueImpressions | type: integer | description: Number of unique impressions.  
              - name: impression | type: integer | description: Total number of impressions.  
              - name: shares | type: integer | description: Number of shares.  
              - name: engagement | type: float | description: Engagement rate.  
              - name: clicks | type: integer | description: Number of clicks.  
              - name: likes | type: integer | description: Number of likes.  
              - name: comments | type: integer | description: Number of comments.  
              - name: _updatedDate | type: Date | description: Date and time the insights were last updated.  
        - name: pinterestPost | type: PinterestPost | description:   
           - name: boardId | type: string | description: The board GUID to publish the post to.  | validation: maxLength 128
           - name: title | type: string | description: The title of the post.  | validation: maxLength 100
           - name: description | type: string | description: The description of the post.  | validation: maxLength 800
           - name: link | type: string | description: The link to include in the post.  | validation: maxLength 2048
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: PinterestInsights | description: Insights from Pinterest.  | read-only: true 
              - name: impressions | type: integer | description: Number of impressions.  
              - name: clicks | type: integer | description: Number of clicks.  
              - name: saves | type: integer | description: Number of saves.  
              - name: comments | type: integer | description: Number of comments.  
              - name: reactions | type: integer | description: Number of reactions.  
              - name: _updatedDate | type: Date | description: Date and time the insights were last updated.  
           - name: boardSectionId | type: string | description: GUID of the board section to publish the pin into. The section must be on the board in `board_id`.  | validation: maxLength 128
           - name: carouselItems | type: array<PinterestCarouselItem> | description: Title, description and link of each image of a carousel pin, in the order of the images in `media_wrapper.media`. A carousel has 2 to 5 images and no video.  When set, it has one entry per image. When omitted, each image uses the post's own title, description and link.  | validation: maxItems 5
              - name: title | type: string | description: Title of the image.  | validation: maxLength 100
              - name: description | type: string | description: Description of the image.  | validation: maxLength 800
              - name: link | type: string | description: Link the image opens.  | validation: maxLength 2048
        - name: gbpPost | type: GbpPost | description:   
           - name: locationId | type: string | description: The location GUID to publish the post to.  | validation: maxLength 128
           - name: locationAccountId | type: string | description: Account (group) GUID of the location.  | validation: maxLength 128
           - name: description | type: string | description: The description of the post.  | validation: maxLength 1500
           - name: callToAction | type: GbpPostCallToAction | description: Call to action type and URL to include in the post.  
              - name: actionType | type: GbpPostCallToActionType | description: Type of the call to action.  
                     - enum: BOOK, ORDER, SHOP, LEARN_MORE, SIGN_UP
              - name: url | type: string | description: URL of the call to action.  | validation: maxLength 2048
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: GbpInsights | description: Insights from Google Business Profile.  | read-only: true 
              - name: shares | type: integer | description: Number of shares. Google Business Profile post insights aren't currently available, so this returns `-1`.  
              - name: _updatedDate | type: Date | description: Date and time the insights were last updated.  
        - name: tiktokPhoto | type: TikTokPhoto | description:   
           - name: accountId | type: string | description: The account GUID to publish the photo to.  | validation: maxLength 128
           - name: privacyLevel | type: TikTokPrivacyLevel | description: Privacy level for the photo.  
                 - enum: PUBLIC_TO_EVERYONE, FOLLOWER_OF_CREATOR, MUTUAL_FOLLOW_FRIENDS, SELF_ONLY
           - name: title | type: string | description: A title for the photo.  | validation: maxLength 90
           - name: description | type: string | description: A description for the photo.  | validation: maxLength 4000
           - name: disableComment | type: boolean | description: Whether comments are disabled for the photo.  
           - name: autoAddMusic | type: boolean | description: Whether to automatically add music to the photo.  
           - name: brandContentToggle | type: boolean | description: Whether the content is a paid partnership promoting a third-party business.  
           - name: brandOrganicToggle | type: boolean | description: Whether the content promotes the creator's own business.  
           - name: mediaWrapper | type: MediaWrapper | description: The media list.  
           - name: insights | type: TikTokInsights | description: Insights from TikTok.  | read-only: true 
              - name: views | type: integer | description: Number of views.  
              - name: likes | type: integer | description: Number of likes.  
              - name: comments | type: integer | description: Number of comments.  
              - name: shares | type: integer | description: Number of shares.  
              - name: _updatedDate | type: Date | description: Date and time the insights were last updated.  
     - name: channelName | type: ChannelName | description: Channel the content is generated for.  
         - enum: INSTAGRAM, FACEBOOK, YOUTUBE, LINKEDIN, TWITTER, PINTEREST, GBP, TIKTOK


```

### Examples

### Generate post content for Instagram and Facebook
```javascript
// @description: The results match an item's content, so they can be used to create a draft or publish an item.
import { generatedContent } from "@wix/promote-growth-tools-publisher";

const options = {
  userInput:
    "Announce our new summer collection of handmade ceramic mugs with a 20% discount this week",
  media: [
    {
      type: generatedContent.MediaType.IMAGE,
      url: "https://static.wixstatic.com/media/cf2434_4b3a2d8eb7f54bc89c0d4524430a2af3~mv2.jpg",
    },
  ],
  channels: [generatedContent.ChannelName.INSTAGRAM, generatedContent.ChannelName.FACEBOOK],
};

async function generatePostData() {
  const response = await generatedContent.generatePostData(options);
}

/* Promise resolves to:
 * {
 *   "results": [
 *     {
 *       "channelName": "INSTAGRAM",
 *       "instagramPost": {
 *         "mediaWrapper": {
 *           "media": [
 *             {
 *               "type": "IMAGE",
 *               "url": "https://static.wixstatic.com/media/cf2434_4b3a2d8eb7f54bc89c0d4524430a2af3~mv2.jpg"
 *             }
 *           ]
 *         },
 *         "caption": "New summer collection: handmade ceramic mugs ☀️🍶 Hand-thrown, one-of-a-kind pieces with a matte glaze - perfect for morning coffee or iced tea on warm days. 20% off this week - limited run! ✨🛍️ #HandmadeMugs #CeramicLove #SummerCollection #ArtisanMade #SmallBatch #GiftIdea #CoffeeTime #CeramicStudio\n\nShop the summer collection while the sale lasts - grab yours today!"
 *       }
 *     },
 *     {
 *       "channelName": "FACEBOOK",
 *       "facebookPost": {
 *         "mediaWrapper": {
 *           "media": [
 *             {
 *               "type": "IMAGE",
 *               "url": "https://static.wixstatic.com/media/cf2434_4b3a2d8eb7f54bc89c0d4524430a2af3~mv2.jpg"
 *             }
 *           ]
 *         },
 *         "caption": "Meet our summer collection of handmade ceramic mugs - unique, hand-thrown pieces in fresh seasonal glazes. This week only: 20% off the full collection! ☀️🍵✨\n\nBrowse the collection and shop now: https://www.janespotterystudio.com/summer-collection\n\nWhich color are you bringing home? Tell us below! #Handmade #Ceramics #SummerSale #ShopSmall"
 *       }
 *     }
 *   ]
 * }
 */

```

### generatePostData (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { generatedContent } from '@wix/promote-growth-tools-publisher';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { generatedContent },
  // Include the auth strategy and host as relevant
});


async function generatePostData(options) {
  const response = await myWixClient.generatedContent.generatePostData(options);
};
```

---