Solutions / Content publishing API

Content publishing API

Stop learning each network's upload dance. Send a caption and your media once; SocialWire resizes nothing, validates everything against each platform's limits, uploads the way each network wants and tells you where it landed.

  • Photos
  • Videos
  • Carousels
  • Reels & Shorts
  • Threads
  • Scheduling
terminal
curl -X POST https://api.zaynstack.com/v1/posts \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "MirrorDroid: your Android phone, on your Mac. No setup.",
    "title": "MirrorDroid in 60 seconds",
    "media": [{ "source_type": "url", "source": "https://downloads.zaynstack.com/mirrordroid-demo.mp4", "type": "video" }],
    "targets": [
      { "account_id": "<tiktok-account-id>" },
      { "account_id": "<youtube-account-id>" }
    ],
    "publish_now": true
  }'

How it works

Four calls from zero to live

  1. 1Upload or link media

    Upload into your media library, or pass any public https URL. Large files go straight to storage with a signed upload URL.

    GET  /v1/media/upload-url?media_type=video/mp4&filename=bts.mp4
    PUT  <upload url>   (the bytes)
    POST /v1/media/{id}/verify
  2. 2Check it first

    Validate a post against every target's limits before you send it: caption length, media count, sizes and durations.

    POST /v1/posts/validate
    → { "valid": false, "errors": [{ "platform": "youtube", "message": "Shorts must be 60 s or less" }] }
  3. 3Publish everywhere

    Videos finish in the background. Each target reports published, processing or failed with a reason.

    POST /v1/posts  { …, "publish_now": true }
    GET  /v1/posts/{id}  → targets[].status, targets[].url
  4. 4Get told when it's live

    post.published and post.failed webhooks carry the live URL or the error code.

    { "event": "post.published", "data": { "post_id": "…", "targets": [ … ] } }

Included

What else comes with it

Per-network options

TikTok privacy and duet settings, YouTube title and visibility, Pinterest board, Instagram first comment: all in platform_data.

Threads and carousels

Multi-part threads on X, Threads and Bluesky; carousels on Instagram, LinkedIn and TikTok photo mode.

Retry what failed

One call resends only the targets that failed, keeping the ones that went out.

Edit and unpublish

Change a scheduled post, or take a published one down where the network allows it.

Import history

Bring existing posts in so analytics cover what you published before.

Usage you can see

Posts, interactions and storage used this month at /v1/usage, per plan.

Networks

Works on

Questions

Do you resize or transcode media?+

No. Media is sent as you give it, so validate first: /v1/posts/validate tells you exactly what a network will refuse.

How are long videos handled?+

Uploads run in the background in chunks where the network supports it; the post shows processing until the network finishes.

Can I publish to personal Facebook profiles?+

No. Meta only allows Pages through its API.

Also

Free to start

Your next post can go everywhere at once.

No card. Connect a profile, send a post, see it land.