Post a story
post_storyPublish a WhatsApp story using text on a colored background or media from a URL or uploaded file, with an optional caption.
Instructions
Post a story from the account: text on a colored background, or an image or video with an optional caption, from a public URL (mediaUrl) or a file uploaded with upload_file (uploadId).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The story text (required for `text`), or the caption. | |
| type | No | Default `text`. | |
| mediaUrl | No | Image or video: public http(s) URL of the file. | |
| uploadId | No | The id of an upload made with upload_file (or `POST /v1/uploads`): a file wuapi already stores. Usable for 24 hours, any number of times. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. | |
| backgroundColor | No | Text stories: `#RRGGBB`. |