publish_draft
Publish ONE ready article draft live on the user's own Shopify store (ids from list_pending_approvals). Takes TWO calls. Call it first WITHOUT confirmToken: nothing changes, and you get a preview plus a confirmToken (valid 10 minutes, single use). Show the preview to the user and ask them. Only if they clearly say yes, call again with the same arguments plus that confirmToken. Never confirm on your own judgement, and never loop over many items. Needs a key with the "approve" permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Draft id from list_pending_approvals | |
| api_key | No | Store-bound SeoAiX API key (inxy_sk_…). Optional if already sent as an Authorization: Bearer header. | |
| confirmToken | No | Only on the second call, from the preview |