Tool ID:
zernio_create_postRun this action
Use the TypeScript SDK for one call. Usectx.tools.execute(...) inside a Play for durable calls, scheduled calls, or CSV processing.
import { Deepline } from 'deepline';
const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
'zernio_create_post',
{
"platforms": [
{
"platform": "example",
"accountId": "123456789"
}
]
},
);
console.log(result.toolResponse.raw);
CLI
deepline run zernio_create_post --input '{
"platforms": [
{
"platform": "example",
"accountId": "123456789"
}
]
}'
Example response
The SDK returns this shape atresult.toolResponse.raw. The example values illustrate the response.
{
"data": {
"dryRun": true,
"canPublish": true,
"tiktok": [
{
"accountId": "123456789",
"canPublish": true,
"reason": "example"
}
]
}
}
deepline describe zernio_create_post --json for the latest machine-readable contract.
Input reference
Create a post, and optionally publish it in the same request. A post published immediately (publishNow: true) comes back with platformPostUrl in the response. ## Optional content content is optional in four cases: - media is attached - all platforms have customContent - every platform entry is an X Article (platformSpecificData.article) - every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text) See each platform’s schema for media constraints. ## Scheduling Pick one of: - scheduledFor: publish at the scheduled time - publishNow: true: publish synchronously, inside this request - queuedFromProfile: publish in the profile’s next queue slot With none of them and isDraft unset, the post is saved as a draft. platforms is required unless the post is a draft. Precedence: - isDraft: true wins over publishNow and scheduledFor See the live schema below for the complete notes.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
payload.title | string | No | — | Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted). |
payload.content | string | No | — | Post caption/text. Optional when media is attached, all platforms have customContent, every platform entry is an X Article (platformSpecificData.article), or every platform entry is a LinkedIn text-free reshare (platformSpecificData.reshareUrl with no text). Required for other text-only posts. |
payload.mediaItems | array | No | — | Media attached to every platform in the request (a platform entry can override it with customMedia). - Each entry needs a publicly reachable HTTPS url. - type (image, video, gif, document) is inferred from the URL extension when omitted. A type that contradicts the extension is rejected with 400. - Upload files with POST /v1/media/presign first. - Per-platform size, duration and format limits are listed on each platform schema. |
payload.platforms | array | Yes | — | Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms. |
payload.scheduledFor | string | No | — | When to publish. Required unless publishNow is true, queuedFromProfile is set, or the post is a draft. Ignored when publishNow is true. An ISO 8601 value: - With a Z or offset (2026-01-15T10:00:00Z, 2026-01-15T11:00:00+01:00): taken as-is. - Without one (2026-01-15T10:00:00 or 2026-01-15 10:00): read as local time in timezone. A value already in the past is published synchronously in the same request. Format: date-time. |
payload.publishNow | boolean | No | false | Publish to every platform synchronously in this request instead of scheduling. The response then carries each platform result and platformPostUrl, with HTTP 207 when some platforms failed. Takes precedence over scheduledFor. ignored when isDraft is true. |
payload.isDraft | boolean | No | false | When true, saves the post as a draft. When none of scheduledFor, publishNow, or queuedFromProfile are provided, the post defaults to draft automatically. |
payload.timezone | string | No | — | IANA timezone (Europe/Madrid, America/New_York) used to interpret a scheduledFor (root or per-platform) that carries no Z or offset. Stored on the post. No effect on values that already carry one. When omitted: the post takes its profile’s timezone (the queue’s profile for a queued post, else the profile its accounts share). UTC when there is none, or the accounts sit on profiles with different timezones. An unknown name returns 400 when scheduledFor is set. |
payload.tags | array | No | — | Tags/keywords. YouTube constraints: each tag max 100 chars, combined max 500 chars, duplicates auto-removed. |
payload.hashtags | array | No | — | Stored for reference only. Hashtags are NOT automatically appended to the caption when publishing. Include hashtags directly in the content field (platforms like Instagram only support hashtags as caption text). For YouTube keywords, use the tags field instead. |
payload.mentions | array | No | — | Stored for reference only. Publishing does not create mentions from this field. |
payload.metadata | object | No | — | Free-form key/value pairs of your own, stored on the post and returned on reads and in webhook payloads. Zernio also writes the bookkeeping keys usageCounted, usageRefunded and hidden into this object. do not set them, and they are stripped from webhook payloads. To look posts up by one of your ids, use externalId instead: metadata cannot be filtered. |
payload.externalId | string | No | — | Your own identifier for this post (a CMS id, a job id, a campaign item). Returned on every read and filterable with GET /v1/posts?externalId=. Leading and trailing spaces are trimmed. Not unique: several posts can share one value (for example the same article posted twice), and the filter returns all of them. To avoid creating a post twice on retries, send an Idempotency-Key header instead. Minimum length: 1. Maximum length: 255. |
payload.profileId | string | No | — | Files a draft with no platforms under this profile so it lists under ?profileId= and profile-scoped API keys. Ignored when platforms are set. When promoting the draft via PUT, send platforms, isDraft false and scheduledFor again. |
This input schema is too large for an inline display. Read the complete live contract with
deepline describe zernio_create_post --json.Output reference
Standard tool result payload.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
result.data | object | Yes | — | Provider response payload. |
result.data.dryRun | boolean | Yes | — | Always true on this response |
result.data.canPublish | boolean | Yes | — | True only when every evaluated TikTok account can publish now |
result.data.tiktok | array | Yes | — | One verdict per tiktok entry in the request, in request order |
result.data.tiktok[].accountId | string | Yes | — | — |
result.data.tiktok[].canPublish | boolean | Yes | — | — |
result.data.tiktok[].alreadyPostedToday | boolean | No | — | Whether this account already published a Direct Post today (an account that did can keep publishing). Absent for Creator Inbox drafts and when no per-user limit applies. |
result.data.tiktok[].reason | string | Yes | — | Human-readable explanation of the verdict |
result.data.message | string | No | — | — |
result.data.post | object | No | — | — |
result.data.post._id | string | No | — | — |
result.data.post.userId | string | object | No | — | — |
result.data.post.userId._id | string | No | — | — |
result.data.post.userId.email | string | No | — | — |
result.data.post.userId.name | string | No | — | — |
result.data.post.userId.role | string | No | — | — |
result.data.post.userId.disabledResourceGroups | array | No | — | Resource groups turned off for this team member. Empty for owners and unrestricted members. |
result.data.post.userId.createdAt | string | No | — | — |
result.data.post.title | string | null | No | — | Stored on the post for reference/display only. This field is NOT used as the video title when publishing. To set a YouTube video title, use platformSpecificData.title on the youtube platform target (falls back to the first line of content when omitted). |
result.data.post.content | string | null | No | — | Null once publishing finishes when the team does not retain content. |
result.data.post.contentNotRetained | boolean | No | — | True when this team does not retain content, so title, content and every customContent are null after publishing. Identifiers and metadata stay. |
result.data.post.mediaItems | array | No | — | — |
result.data.post.mediaItems[].type | "image" | "video" | "gif" | "document" | No | — | Optional when the item names a connected file (fileId): inferred from the file’s MIME type. |
result.data.post.mediaItems[].url | string | No | — | A media item with a null, missing or empty url is dropped, unless it names a connected file with fileId + accountId. A Google Drive share link is accepted here and in thumbnail, instagramThumbnail, customMedia and cover fields such as TikTok’s video_cover_image_url (drive.google.com/file/d/{id}/view, open?id={id}, uc?id={id}, drive.usercontent.google.com/download?id={id}). Zernio copies the file into its media storage when the post is created or updated and stores that copy’s See the live schema for the complete constraint. |
result.data.post.mediaItems[].fileId | string | No | — | A file of a connected Google Drive or OneDrive account (see the Files endpoints). Requires accountId. The file is copied into Zernio media storage when the post is created, and the item is stored as a plain url. A folder, an undownloadable file or an unknown id fails the request with a 4xx naming mediaItems[i].fileId. |
result.data.post.mediaItems[].accountId | string | No | — | The connected Google or Microsoft account the fileId belongs to (must have the files area). Required with fileId. |
result.data.post.mediaItems[].title | string | No | — | Optional title for the media item. Used as the document title for LinkedIn PDF/carousel posts. If omitted, falls back to the post title, then the filename. |
result.data.post.mediaItems[].altText | string | No | — | Accessibility alternative text for an image. Set once per image. The same value is sent to each selected platform. - Applied on: Instagram (feed images only, not Reels/Stories), Facebook, Threads, X (max 1000 chars), LinkedIn, Bluesky, Pinterest (max 500 chars). - Ignored on platforms without alt-text support (TikTok, YouTube, Snapchat, Telegram, Reddit, Google Business Profile, WhatsApp) and on video items where the platform does not accept it. |
result.data.post.mediaItems[].filename | string | No | — | — |
result.data.post.mediaItems[].size | integer | No | — | Optional file size in bytes |
result.data.post.mediaItems[].mimeType | string | No | — | Optional MIME type (e.g. image/jpeg, video/mp4) |
result.data.post.mediaItems[].thumbnail | string | No | — | Optional custom thumbnail/cover image URL for videos. Supported for Facebook video posts, Facebook Reels, YouTube videos and Shorts, and LinkedIn video posts. Max 50 MB on YouTube (JPEG, PNG or GIF) and 10 MB elsewhere, JPG/PNG recommended. |
result.data.post.mediaItems[].instagramThumbnail | string | No | — | Custom cover image URL for Instagram Reels. Can also be set via platformSpecificData.instagramThumbnail or platformSpecificData.reelCover. Resolution order: this field > platformSpecificData.instagramThumbnail > platformSpecificData.reelCover > platformSpecificData.thumbnailUrl (legacy). |
result.data.post.mediaItems[].subtitles | array | No | — | Subtitle (closed caption) files for a video item, in SRT or WebVTT. Each language may appear once per video. Zernio downloads each file when the post is created or updated and converts it to the format each platform requires. Sent to YouTube, Facebook videos, LinkedIn, X and Bluesky. ignored with a warning elsewhere. Per platform: - YouTube: every track. - Facebook: every track, up to 200 KB each. - Bluesky: every track, up to 20 KB each after conversion to WebVTT. - X: the first track only (one See the live schema for the complete constraint. |
result.data.post.mediaItems[].subtitles[].url | string | Yes | — | Public http(s) URL of an SRT or WebVTT file: your own host, or an upload from POST /v1/media/presign (contentType application/x-subrip or text/vtt). It must serve the file directly, since redirects are refused. |
result.data.post.mediaItems[].subtitles[].language | string | Yes | — | BCP-47 language code with a two-letter language, e.g. en, es or pt-BR. Viewers see the track labelled with the language name, e.g. English. |
result.data.post.mediaItems[].tiktokProcessed | boolean | No | — | Internal flag indicating the image was resized for TikTok |
result.data.post.platforms | array | No | — | — |
result.data.post.platforms[].platform | string | No | — | Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram |
result.data.post.platforms[].accountId | string | object | No | — | — |
result.data.post.platforms[].accountId._id | string | Yes | — | — |
result.data.post.platforms[].accountId.platform | "tiktok" | "instagram" | "facebook" | "youtube" | "linkedin" | "twitter" | "threads" | "pinterest" | "reddit" | "bluesky" | "googlebusiness" | "telegram" | "snapchat" | "discord" | "slack" | "whatsapp" | "shopify" | "wordpress" | "wix" | "linkedinads" | "metaads" | "pinterestads" | "tiktokads" | "xads" | "googleads" | "openaiads" | "redditads" | "sms" | "phone" | "rcs" | "whopads" | "applovinads" | "snapchatads" | "taboolaads" | "outbrainads" | "criteoads" | "spotifyads" | "klaviyo" | "attentive" | "mailchimp" | "customendpoint" | "impact" | "awin" | "google" | "microsoft" | "imap" | "hubspot" | "salesforce" | "webflow" | "googleanalytics" | "imessage" | "tiktokshop" | "microsoftads" | "line" | "wechat" | "googletagmanager" | "stripe" | "paddle" | "chargebee" | "googlesearchconsole" | "campaignmanager360" | "tradedeskads" | "tradedeskdsp" | "amazonads" | "gohighlevel" | Yes | — | — |
result.data.post.platforms[].accountId.profileId | string | object | Yes | — | — |
result.data.post.platforms[].accountId.profileId._id | string | No | — | — |
result.data.post.platforms[].accountId.profileId.userId | string | No | — | — |
result.data.post.platforms[].accountId.profileId.name | string | No | — | — |
result.data.post.platforms[].accountId.profileId.description | string | No | — | — |
result.data.post.platforms[].accountId.profileId.color | string | No | — | — |
result.data.post.platforms[].accountId.profileId.timezone | string | null | No | — | IANA timezone new posts on this profile use when the request names no timezone. Null means UTC. |
result.data.post.platforms[].accountId.profileId.externalId | string | null | No | — | Your own identifier for this profile, set on create or update. Null when none is set. |
This output schema is too large for an inline display. Read the complete live contract with
deepline describe zernio_create_post --json.Deepline cost
- Pricing model:
fixed(per call). - Estimated Deepline credits:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.