Create a text post
Publish a post right away with action: "now". caption, socialAccountId, and media
are required — pass an empty media array for a text-only post where the platform allows
it.
curl -X POST https://api.schedulin.app/v0/posts \ -H "x-api-key: sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "socialAccountId": "acc_123", "caption": "Shipping something new today 🚀", "media": [], "action": "now" }'
import { SchedulinClient } from "@schedulin/sdk"; const client = new SchedulinClient({ apiKey: process.env.SCHEDULIN_API_KEY }); await client.posts.create({ socialAccountId: "acc_123", caption: "Shipping something new today 🚀", media: [], action: "now", });
from schedulin import Schedulin client = Schedulin(api_key=os.environ["SCHEDULIN_API_KEY"]) client.posts.create( social_account_id="acc_123", caption="Shipping something new today 🚀", media=[], action="now", )