Postifuse Docs

Posts

Create a post

POSThttps://postifuse.com/v1/posts

One post to any mix of networks, for one profile. Preflight runs on every create: an account that would be refused is held with the rule and the fix, the others go ahead.

  • No publish and no publish_at: a draft
  • "publish": "now": posts at once. publish_at: schedules it
  • "dry_run": true: returns what would happen to each account and saves nothing
  • Accounts from two profiles are refused with profile_mismatch: one post never crosses clients
curl --request POST \
  --url 'https://postifuse.com/v1/posts' \
  --header 'Authorization: Bearer pf_live_…' \
  --header 'Idempotency-Key: create-post-1' \
  --header 'Content-Type: application/json' \
  --data '{
  "accounts": [
    "acc_ig",
    "acc_tt",
    "acc_yt",
    "acc_x"
  ],
  "text": "Three pacing mistakes from my first marathon",
  "media": [
    "med_42"
  ],
  "publish_at": "2027-01-08T17:00:00Z",
  "overrides": {
    "youtube": {
      "title": "3 marathon pacing mistakes"
    },
    "x": {
      "text": "3 pacing mistakes, one marathon"
    }
  }
}'
{
  "id": "pst_42",
  "status": "scheduled",
  "targets": [
    {
      "account": "acc_ig",
      "status": "scheduled"
    },
    {
      "account": "acc_tt",
      "status": "scheduled"
    },
    {
      "account": "acc_yt",
      "status": "scheduled"
    },
    {
      "account": "acc_x",
      "status": "held",
      "rule": "x.video.max_duration",
      "fix": "Trim to 140 s or less"
    }
  ]
}

Headers

Authorizationstringrequired

Bearer followed by a workspace key, a profile key or an OAuth token. See authentication.

Example Bearer pf_live_…

Idempotency-Keystringrequired

Any unique string. The same key within 24 h returns the same result and posts nothing twice.

Body application/json

accountsarray<string>required

Account ids, all in the same profile.

Example ["acc_ig","acc_tt"]

textstring

The text, used on every network unless overridden.

Example Three pacing mistakes from my first marathon

mediaarray<string>

Media ids from upload media.

Example ["med_42"]

publishstring

now publishes at once.

One of now

Example now

publish_atstring<date-time>

When to publish, ISO 8601 UTC.

Example 2027-01-08T17:00:00Z

overridesobject

Per-network text, YouTube title, or X thread.

Example {"youtube":{"title":"3 marathon pacing mistakes"}}

Show 3 child attributes (per network)
textstring
titlestring
threadboolean
dry_runboolean

Return what would happen to each account and save nothing.

Example true

Response

200The post, one target per account
422profile_mismatch
403Workspace not active