Queue a post on a managed account
publish_to_managed_accountQueue a post on a hosted / managed account. Hosted accounts are operated by people, so there is NO publish-now: the post is booked for a day (queueFor, YYYY-MM-DD) and goes live on that day or the next — never promise an exact time. Omit queueFor to take the earliest day the account can accept; get_managed_account_capacity shows that day (posts need a few days' notice, and an account still warming up can only be booked for after warm-up ends) plus which days are already full. Requires a caption plus media: a completed project's video via sourceProjectId, a direct videoUrl, or imageUrls (1 = photo, 2+ = carousel; a TikTok carousel gets a curated sound picked for it unless you pass musicLink). The account must be postable (status 'active'). Costs 20 VidGuy credits per post (402 if the balance is too low; refunded automatically if the post is rejected). Max 2 posts per account per day — a full day returns 409 naming the day. Errors: 400 (day too early / missing sound, with earliestQueueDate), 409 (account not ready / day full). The returned post has status 'scheduled' with scheduledAt on the booked day. NOTE: this creates a real work order and is not retried server-side — never call it twice for the same content. If a call times out, resend it with the SAME idempotencyKey: you get the post the first call created (duplicate: true) instead of a second booking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | Yes | Post caption (required) | |
| queueFor | No | Day to queue the post for (YYYY-MM-DD, UTC). Must be on/after the account's earliestQueueDate; omit for the earliest day. | |
| videoUrl | No | Direct video URL (alternative to sourceProjectId) | |
| accountId | Yes | Managed account UUID | |
| imageUrls | No | Image URLs for a photo (1) or slideshow (2+) post | |
| musicLink | No | Optional music/sound link | |
| idempotencyKey | No | Your own unique id for this post (e.g. a UUID). Reuse it to retry safely after a timeout. | |
| sourceProjectId | No | A completed VidGuy project; its rendered video is posted |