Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.
/api/v2/postsPOST
Publishes or schedules a post targeting one or more platforms. A workspace holds one account per platform, so a target only needs its platform (accountId is optional). The top-level content is shared; each target can override it and add typed platformSpecificData options. Media is referenced by public URL in mediaItems (upload local files with the media upload endpoint first).
  • publishNow: true publishes immediately.
  • scheduledFor schedules for a future time.
  • To save without publishing, create a draft instead.
Pass an idempotencyKey to make retries safe: a repeated request with the same key returns the original post and is not billed again. 409 idempotency_in_progress means the first request with that key is still running; idempotency_key_reused means the key belongs to a request with different targets.
Publishing may still be in progress when the response returns — poll the get post endpoint while status is pending or publishing.
A single tweet is capped at 280 characters. Longer text must be published as a thread: put the root tweet in the X target's content override and the remaining tweets in platformSpecificData.threadItems. Every tweet in the thread must fit the same cap. Exceeding it returns 400 with code post_too_long; nothing is published or billed.
Requires an active subscription (402 otherwise). Post and account limits from your plan are enforced (403 when exceeded). Each platform target counts as one post toward the monthly limit.
X (Twitter) posts have their own monthly cap on top of the overall post limit, because X charges for API posting far above every other platform. A tweet containing a link counts as 10 X posts (X bills link tweets at 10x the plain rate). During the 7-day free trial the X cap is lower. Hitting it returns 403 with code x_post_limit_reached; other platforms are unaffected.
Authorization
apiKey *Bearer <token>
Akarso API key from the dashboard. Token in: header
Request Bodyapplication/jsonrequired
content *string
Post text body, shared by every platform target
mediaItems?object[]
Media attachments (images, videos, GIFs) referenced by public URL
Show item properties
type *"image" | "video" | "gif" | "document"
Media kind
url *string (uri)
Publicly accessible URL of the media file
altText?string
Accessibility description of an image. Ignored for videos and on platforms without alt text.
Min length: 1Max length: 1000
thumbnail?string (uri)
Thumbnail image URL for video items. JPEG, PNG, or GIF, max 2 MB, min 640 px wide.
platforms *object | object | object | object | object | object | object | object | object | object[]
Target accounts to publish to
publishNow?boolean
Publish immediately. Required when scheduledFor is omitted.
scheduledFor?string (date-time)
ISO 8601 datetime to schedule the post for future publishing
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
timezone?string
IANA timezone for the scheduled time (e.g. America/New_York). Defaults to UTC.
idempotencyKey?string
Unique key you generate per post (a UUID works) to retry safely. A repeated request with the same key returns the original post instead of publishing again, and is not billed again. Scoped to your workspace, never expires.
Min length: 1Max length: 200
Response
200
success *boolean
False only when every platform failed
status *"draft" | "pending" | "scheduled" | "publishing" | "published" | "failed" | "partial"
scheduledFor?string | null
ISO 8601 datetime the post is scheduled for (scheduled posts only)
postId *string
ID of the saved post
platforms *object[]
Show item properties
platform *"twitter" | "instagram" | "youtube" | "tiktok" | "pinterest" | "linkedin" | "bluesky" | "facebook" | "threads" | "googlebusiness"
success *boolean
For publish-now timeout fallback, true means accepted and final status still pending
platformPostUrl?string | null
Direct URL to the published post
error?string | null
Error message when success is false
warningMessage?string | null
Warning when the post published but a non-critical follow-up failed
400 · Invalid request body, path, or query parameters
message *string
Human-readable error message
code?string
Machine-readable error code
401 · Missing or invalid API key
message *string
Human-readable error message
code?string
Machine-readable error code
402
message *string
Human-readable error message
code?string
Machine-readable error code
subscribeUrl?string
URL to start a subscription
403
message *string
Human-readable error message
code?string
Machine-readable error code
limit?number
The plan limit that was hit
used?number
Current usage in this billing period
connected?number
Currently connected accounts
409 · Several accounts of a target platform are connected, or the same idempotency key is still in progress
message *string
Human-readable error message
code?string
Machine-readable error code
429 · Upstream rate limit reached
message *string
Human-readable error message
code?string
Machine-readable error code
502 · Upstream platform request failed
message *string
Human-readable error message
code?string
Machine-readable error code
503 · Upstream service temporarily unavailable or submission outcome unknown
message *string
Human-readable error message
code?string
Machine-readable error code
Request example
curl -X POST "https://akarso.co/api/v2/posts" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "content": "string", "mediaItems": [ { "type": "image", "url": "https://example.com", "altText": "string", "thumbnail": "https://example.com" } ], "platforms": [ { "platform": "twitter", "accountId": "string", "content": "string", "platformSpecificData": { "communityId": "string", "shareWithFollowers": true, "replyToTweetId": "string", "replySettings": "following", "threadItems": [ { "content": "string", "mediaItems": [ { "type": "image", "url": "https://example.com", "altText": "string", "thumbnail": "https://example.com" } ] } ], "longPost": true, "poll": { "options": [ "string", "string" ], "durationMinutes": 5 } } } ], "publishNow": true, "scheduledFor": "2024-01-15T09:30:00Z", "timezone": "string", "idempotencyKey": "string" }'