Posts

Create Post

POSThttps://tryferra.co/api/public/v1/posts

Create or schedule a new post. Each social media platform has its own settings schema.

Authorization

Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.

Body

type"draft" | "schedule" | "now"required

Post type

datestringrequired

Publish date in UTC ISO format

shortLinkbooleanrequired

Whether to use short links

orderstring

Order of posts

internumber

Interval between posts

tagsobject[]required
valuestringrequired
labelstringrequired
postsobject[]

Required if type is not 'draft'

integrationobjectrequired
idstringrequired

Integration ID

valueobject[]required
contentstringrequired

Post text content

idstring

Post ID (for updates)

imageobject[]
groupstring

Group ID for related posts

settingsobject (one of the platform schemas)

Provider-specific settings

Request

curl -X POST 'https://tryferra.co/api/public/v1/posts' \
  -H 'Authorization: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "draft",
  "date": "string",
  "shortLink": false,
  "order": "string",
  "inter": 0,
  "tags": [
    {
      "value": "string",
      "label": "string"
    }
  ],
  "posts": [
    {
      "integration": {
        "id": "string"
      },
      "value": [
        {
          "content": null,
          "id": null,
          "image": null
        }
      ],
      "group": "string",
      "settings": "string"
    }
  ]
}'

Responses

200Post created successfully
[
  {
    "postId": "post-123",
    "integration": "integration-456"
  }
]

Post type: now, schedule, or draft

The top-level type field controls when (and whether) the post is published:

ValueBehaviour
"now"Publish immediately. date is ignored.
"schedule"Publish at the time given in date (ISO 8601).
"draft"Save as a draft. The post is created and stored against the integration but not scheduled or published. You can promote it to a real post later from the Ferra UI.

Drafts are how you stage content via the API without committing to a publish time, useful for content review workflows or pre-filling a calendar from an external CMS.

Duplicating a post

There is no dedicated duplicate / clone endpoint. To copy an existing post, fetch it with GET /posts and submit the content as a new POST /posts request.

Before re-submitting, strip the server-managed fields from the fetched object, re-sending them either causes validation errors or, worse, accidentally updates the original. At minimum drop:

  • id and any nested post IDs
  • createdAt, updatedAt, and any other timestamps
  • state / status / releaseId (these are assigned by the scheduler)
  • Anything else the API didn't ask you to provide when you originally created the post

Then set a fresh type (now, schedule, or draft) and date, and POST the cleaned object.

Image alt text (alt)

Each media object in a post's image array accepts an optional alt field: a text description of the image for accessibility.

{
  "image": [{ "id": "img-123", "path": "https://tryferra.co/uploads/sunset.jpg", "alt": "A sunset over the sea" }]
}

Providers that support alt text (Instagram, Instagram Standalone, Bluesky, Mastodon, Slack, Tumblr) send it with the image; other providers ignore the field. Instagram applies it to images only (single images and carousel items, up to 1000 characters), not to videos or stories.

Video cover frame (thumbnailTimestamp)

Each media object in a post's image array accepts an optional thumbnailTimestamp field: the number of milliseconds into the video to use as the cover/thumbnail frame.

{
  "image": [{ "id": "vid-123", "path": "https://tryferra.co/uploads/video.mp4", "thumbnailTimestamp": 3000 }]
}

Supported providers: Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only: the UPLOAD/inbox flow does not support cover selection). Other providers ignore the field.

For TikTok, in our testing the cover was applied only to public posts (privacy_level: "PUBLIC_TO_EVERYONE"); posts published with a restricted privacy level kept the first frame as the cover.

Provider-Specific Settings

When creating posts, each social media platform requires different settings. The settings object must include a __type field that identifies the platform.

All 27 Supported Platforms

Platform__typeRequired Settings
X (Twitter)xwho_can_reply_post (optional: community, made_with_ai, paid_partnership)
LinkedInlinkedin-
LinkedIn Pagelinkedin-page-
Facebookfacebook- (optional: url)
Instagram (FB-linked)instagrampost_type
Instagram Standaloneinstagram-standalonepost_type
Threadsthreads-
Blueskybluesky-
Mastodonmastodon-
Warpcast (Farcaster)warpcast- (optional: subreddit[] for channels)
Nostrnostr-
VKvk-

Platforms Without Custom Settings

These platforms only need the __type field:

{
  "settings": {
    "__type": "threads"
  }
}

Platforms: threads, mastodon, bluesky, telegram, nostr, vk

Detailed Provider Settings

See the Provider Settings section for detailed schemas and examples for each platform.

Parts of these docs are adapted from open-source documentation under the MIT License (© 2023 Mintlify).