/api/v2/postsPOSTplatform (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.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.status is pending or
publishing.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.x_post_limit_reached; other platforms are unaffected.application/jsonrequired1Max length: 1000^(?:(?:\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))$1Max length: 200curl -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" }'