Write

Post content to one or more platforms simultaneously. Per-platform formatting is handled automatically.

POST/v1/social/write

Example request

result = client.write(
    platforms=["x", "instagram"],
    content={
        "text": "Markets today 📈",
        "media": "chart.jpg"
    }
)

for r in result.results:
    if r.success:
        print(f"Posted to {r.platform}: {r.url}")
    else:
        print(f"Failed on {r.platform}: {r.error}")

Request body

FieldTypeDescription
platformsrequiredstring[]Array of target platforms. Each platform must be authenticated for your account.
contentrequiredobjectPost content. Must include text, media, or both.
content.textstringPost body. Auto-truncated per platform limits (280 chars on X, etc).
content.mediastring | string[]URL or array of URLs to media files. Images, videos, GIFs supported.
content.alt_textstringAccessibility alt text for media. Recommended for compliance.
optionsobjectPer-platform overrides. e.g. options.instagram.format = 'feed' | 'stories'.

Example body

{
  "platforms": ["x", "instagram"],
  "content": {
    "text": "Markets looking spicy today 🌶️",
    "media": "https://example.com/chart.png",
    "alt_text": "Stock chart showing 15% gain"
  },
  "options": {
    "x": { "reply_to": null },
    "instagram": {
      "format": "feed",
      "first_comment": "#stocks #trading"
    }
  }
}

Response

FieldTypeDescription
resultsarrayOne result object per requested platform, in the same order as the request.
results[].platformstringPlatform identifier.
results[].successbooleanWhether the post succeeded on this platform.
results[].post_idstring | nullPlatform-native post ID. Null on failure.
results[].urlstring | nullDirect URL to the published post. Null on failure.
results[].errorstring | nullError message if success is false.
credits_usednumberTotal credits consumed for this multi-platform write.

Example response

{
  "results": [
    {
      "platform": "x",
      "success": true,
      "post_id": "1234567890",
      "url": "https://x.com/user/status/1234567890",
      "published_at": "2026-04-25T14:22:00Z"
    },
    {
      "platform": "instagram",
      "success": true,
      "post_id": "ig_abc123",
      "url": "https://instagram.com/p/abc123",
      "published_at": "2026-04-25T14:22:01Z"
    }
  ],
  "credits_used": 0.015
}