Import posts from CSV
POST
/api/posts/bulkCreate many posts from a CSV file: one post per row, each checked like posts_create.
- Columns:
text,platforms(space-separated, with an optionalplatformSetId) oraccountIds,scheduledFororuseQueue(neither: a draft),linkUrl,media(space-separated public URLs;.mp4,.m4v,.movand.webmare videos, the rest images) andtext_<platform>for per-platform text. - The dashboard's CSV export has the same columns, so an exported file imports again (its read-only columns are skipped).
- Send
dryRun: truefirst: it checks every row without creating anything. - A bad row does not stop the others;
rows[]gives each row'sstatus(valid,createdorerror) anderrorswith the column. - Unknown columns are skipped with a warning.
- Plans import at most 50 (Free), 1,000 (Pro), 2,500 (Max) or 5,000 (Scale) rows per request.
- An import and a dry run each take one token per row from the hourly
importPostslimit (two runs of the plan's largest file an hour, e.g. a dry run and its import); a file with more rows than are left fails with 429RATE_LIMITEDand creates nothing. - Send an idempotency key with the import: a retry with the same key and file returns the first result and creates nothing new.
- REST also accepts multipart with the file in a part named
file.
- Key scope
- posts:write
- MCP tool
- posts_import_csv
- Retries
- Safe with an Idempotency-Key
Headers
AuthorizationstringrequiredBearer <API key>. Create a key in the dashboard under API keys.Idempotency-KeystringA unique value per logical request, so a retry never creates a second post. See Idempotency.
Form data
filefilerequiredThe CSV file (UTF-8)
dryRunstringtruechecks the rows without creating posts. Defaultfalse.
Over MCP
Run with dryRun: true first and show the user the rows with errors. Then import with dryRun: false and a new idempotencyKey; a retry with the same key creates nothing new.
Errors return { error: { code, message } }; every code is in Error codes.