For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workflow and common mistakes

Choose only the requested REST operations, preserve asynchronous IDs, and verify results without duplicate writes.

Compact reference for agents making REST requests. All endpoint paths below are relative to https://backend.blotato.com/v2. For task instructions, read the workflow guide. For tool calls, use the MCP reference.

Complete workflow (for ai agents)

Use only the stages needed for the user's request. A setup test ends after a read-only account lookup. A source extraction or visual request does not authorize publication. Reuse supplied media when suitable. Do not generate paid media to test a connection or to publish an existing file.

1. accounts = GET /users/me/accounts
   For publishing, match the platform and destination requested by the user.
   For a Facebook Page or LinkedIn company Page:
   GET /users/me/accounts/{accountId}/subaccounts and select target.pageId.
   For a LinkedIn personal profile: omit target.pageId.
   For YouTube playlist placement, fetch subaccounts and select target.playlistIds.
   Omit playlistIds when no playlist placement is requested.
   For Pinterest: also GET /social/pinterest/boards?accountId={accountId}
   Select target.boardId. Stop if the requested account or required destination is unresolved.
2. Optional source extraction: POST /source-resolutions-v3. Save response.id.
3. Only for a submitted source, poll GET /source-resolutions-v3/{id} at least 10 seconds apart.
   On "completed", use content and title. On "failed", report message and stop.
4. Optional, authorized visual generation: read GET /videos/templates.
   Select a template matching the requested output and keep its exact id.
   Read its inputs schema before supplying manual values.
   POST /videos/from-templates { templateId, inputs: {}, prompt, render: true }
   Use a nonempty prompt for AI-filled inputs. Save response.item.id.
5. Only for a submitted visual, poll GET /videos/creations/{id} at least 15 seconds apart.
   Inspect item.error first. Stop on error, failure, insufficient credits, or draft.
   On "done", verify the mediaUrl or imageUrls needed for the requested output exists.
   Stop here for a visual-only request. Do not create a post.
6. Only when publication or scheduling is authorized:
   POST /posts { post: { accountId, content, target } }
   Save response.postSubmissionId. For scheduling, scheduledTime and useNextFreeSlot
   go OUTSIDE "post". A returned scheduledTime confirms scheduling, not publication.
7. For immediate posts, poll GET /posts/{postSubmissionId} at least 10 seconds apart.
   Stop on "published" or "failed". On "scheduled", report the time and stop polling.
   On "failed", report errorMessage. Do not claim publication for "in-progress".
8. Report publicUrl only if returned after publication. The URL field is optional.
   Use bounded polling. Preserve IDs and pending state when the wait budget ends.
   Resume lookup of the saved ID. Do not repeat a write because polling timed out.

Common mistakes

Return to the agent reference index.

Last updated