Tool ID:
zernio_list_postsRun 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_list_posts',
{
"page": 1,
"limit": 10,
"offset": 123
},
);
console.log(result.toolResponse.raw);
CLI
deepline run zernio_list_posts --input '{
"page": 1,
"limit": 10,
"offset": 123
}'
Example response
The SDK returns this shape atresult.toolResponse.raw. The example values illustrate the response.
{
"data": {
"posts": [
{
"_id": "_123",
"userId": "user_123",
"title": "VP of Engineering"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123
}
}
}
deepline describe zernio_list_posts --json for the latest machine-readable contract.
Input reference
Returns a paginated list of posts. Published posts include platformPostUrl with the public URL on each platform. A query parameter that is not listed here returns 400 naming it and the accepted parameters, so a misspelled filter never silently returns the unfiltered list. To learn when posts publish or fail, subscribe to thepost.published, post.failed and post.partial webhooks instead of re-reading this list.
| Name | Type | Required | Default | Details |
|---|---|---|---|---|
payload.page | integer | No | 1 | Page number (1-based) Minimum: 1. |
payload.limit | integer | No | 10 | Page size. Values above the maximum return 400 rather than being clamped. Minimum: 1. Maximum: 500. |
payload.offset | integer | No | — | Row offset. Takes precedence over page when both are sent. The response pagination.page is derived from it. Minimum: 0. |
payload.cursor | string | No | — | Opaque cursor from a previous response’s pagination.nextCursor. Returns the next page in the same sortBy order and takes precedence over page and offset. Each cursor page costs the same however deep it is, unlike page/offset, which get slower the further you go. Prefer it to walk a long history. - Send the same filters and sortBy as the request that issued it. A cursor from another sortBy returns 400. - Not available with sortBy=status or sortBy=platform, or with See the live schema for the complete constraint. |
payload.fields | string | No | — | Comma-separated list of post fields to return. Each post then carries _id plus only these fields, which makes large pages much cheaper: leave out platforms, content, mediaItems or metadata when you do not need them. Accepted: userId, title, content, mediaItems, platforms, scheduledFor, timezone, status, tags, hashtags, mentions, visibility, metadata, externalId, recycling, recycledFromPostId, queuedFromProfile, queueId, createdAt, updatedAt. An See the live schema for the complete constraint. |
payload.view | "full" | "summary" | No | "full" | full returns the whole post. summary returns only what an agent needs to read a page of posts: - Post: _id, title, content, externalId, status, scheduledFor, timezone, tags, createdAt, updatedAt, and contentNotRetained when set. - Each platform: platform, status, accountId (the id), username, scheduledFor, publishedAt, platformPostId, platformPostUrl, errorMessage, errorCategory. - Left out: the author (userId), mediaItems, metadata, See the live schema for the complete constraint. |
payload.updatedSince | string | No | — | Only posts whose updatedAt is at or after this ISO 8601 timestamp (an offset or Z required). updatedAt moves when the post or any of its platforms changes (an edit, a status change, a platform publishing or failing). To keep a copy in sync, send the time your previous sync started instead of reading every page again. For a stable walk, pair it with sortBy=created-asc and follow pagination.nextCursor until it is null: the cursor is keyed on (createdAt, _id), which never change, so a See the live schema for the complete constraint. |
payload.externalId | string | No | — | Only posts whose externalId equals this value exactly (case-sensitive). Returns every matching post, since externalId is not unique. Combines with the other filters. Not available with source=external. Values stored in metadata cannot be filtered: set externalId on create or update to look a post up by your own id. Minimum length: 1. Maximum length: 255. |
payload.source | "zernio" | "external" | No | "zernio" | Which collection to read. zernio (default) returns posts authored through Zernio. external returns posts synced from the platform (existing/historical posts that were published outside Zernio). Combine with accountId and paginate via page/limit to walk the full synced history (we keep up to the last ~12 months per account). Allowed: zernio, external. |
payload.status | "draft" | "pending_approval" | "scheduled" | "publishing" | "published" | "partial" | "failed" | "cancelled" | No | — | Allowed: draft, pending_approval, scheduled, publishing, published, partial, failed, cancelled. |
payload.platform | string | No | — | Filter posts to those with at least one destination on one of these platforms. Send one platform or a comma-separated list. Unknown platform names are ignored. when none is known the list is empty. |
payload.profileId | string | No | — | Filter posts to a specific profile (24-char hex ObjectId), including drafts filed under it without platforms. Omit it, or send all or an empty value, to list posts across every profile. |
payload.createdBy | string | No | — | Filter posts to those created by a specific team user (24-char hex ObjectId). |
payload.fromDate | string | No | — | Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter. any other malformed value returns 400. The same name the other date-window filters use (ads, analytics). Format: date. |
payload.toDate | string | No | — | Zero-padded YYYY-MM-DD, or a full ISO 8601 datetime. An empty value means no date filter. any other malformed value returns 400. The same name the other date-window filters use (ads, analytics). Format: date. |
payload.dateFrom | string | No | — | Alias of fromDate, kept for existing callers Format: date. |
payload.dateTo | string | No | — | Alias of toDate, kept for existing callers Format: date. |
payload.includeHidden | boolean | No | false | — |
payload.search | string | No | — | Search posts by text content. Not available with source=external (400). |
payload.tags | string | No | — | Comma-separated tags (at most 20). Returns only posts carrying every listed tag, matched exactly and case-sensitively against the tags set when the post was created. An empty value means no tag filter. tag is accepted as an alias. |
payload.sortBy | "scheduled-desc" | "scheduled-asc" | "created-desc" | "created-asc" | "status" | "platform" | No | "scheduled-desc" | Sort order for results. Allowed: scheduled-desc, scheduled-asc, created-desc, created-asc, status, platform. |
payload.accountId | string | No | — | Filter posts to those published via a specific account (24-char hex ObjectId). |
Output reference
Standard tool result payload.| Name | Type | Required | Default | Details |
|---|---|---|---|---|
result.data | object | Yes | — | Provider response payload. |
result.data.posts | array | No | — | — |
result.data.posts[]._id | string | No | — | — |
result.data.posts[].userId | string | object | No | — | — |
result.data.posts[].userId._id | string | No | — | — |
result.data.posts[].userId.email | string | No | — | — |
result.data.posts[].userId.name | string | No | — | — |
result.data.posts[].userId.role | string | No | — | — |
result.data.posts[].userId.disabledResourceGroups | array | No | — | Resource groups turned off for this team member. Empty for owners and unrestricted members. |
result.data.posts[].userId.createdAt | string | No | — | — |
result.data.posts[].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.posts[].content | string | null | No | — | Null once publishing finishes when the team does not retain content. |
result.data.posts[].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.posts[].mediaItems | array | No | — | — |
result.data.posts[].mediaItems[].type | "image" | "video" | "gif" | "document" | No | — | Optional when the item names a connected file (fileId): inferred from the file’s MIME type. Allowed: image, video, gif, document. |
result.data.posts[].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.posts[].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.posts[].mediaItems[].accountId | string | No | — | The connected Google or Microsoft account the fileId belongs to (must have the files area). Required with fileId. |
result.data.posts[].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.posts[].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.posts[].mediaItems[].filename | string | No | — | — |
result.data.posts[].mediaItems[].size | integer | No | — | Optional file size in bytes |
result.data.posts[].mediaItems[].mimeType | string | No | — | Optional MIME type (e.g. image/jpeg, video/mp4) |
result.data.posts[].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. Format: uri. |
result.data.posts[].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). Format: uri. |
result.data.posts[].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.posts[].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. Format: uri. |
result.data.posts[].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.posts[].mediaItems[].tiktokProcessed | boolean | No | — | Internal flag indicating the image was resized for TikTok |
result.data.posts[].platforms | array | No | — | — |
result.data.posts[].platforms[].platform | string | No | — | Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram |
result.data.posts[].platforms[].accountId | string | object | No | — | — |
result.data.posts[].platforms[].accountId._id | string | Yes | — | — |
result.data.posts[].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.posts[].platforms[].accountId.profileId | string | object | Yes | — | — |
result.data.posts[].platforms[].accountId.profileId._id | string | No | — | — |
result.data.posts[].platforms[].accountId.profileId.userId | string | No | — | — |
result.data.posts[].platforms[].accountId.profileId.name | string | No | — | — |
result.data.posts[].platforms[].accountId.profileId.description | string | No | — | — |
result.data.posts[].platforms[].accountId.profileId.color | string | No | — | — |
result.data.posts[].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.posts[].platforms[].accountId.profileId.externalId | string | null | No | — | Your own identifier for this profile, set on create or update. Null when none is set. |
result.data.posts[].platforms[].accountId.profileId.contentRetention | "standard" | "none" | No | — | This profile’s own zero content retention setting. none stores identifiers and metadata only for this profile. Change it with contentRetention on update. Only the team owner can. |
result.data.posts[].platforms[].accountId.profileId.effectiveContentRetention | "standard" | "none" | No | — | The mode that applies to this profile: none when the profile or the whole team uses zero content retention. |
result.data.posts[].platforms[].accountId.profileId.maxOutboundCallsPerHour | integer | null | No | — | Most outbound calls placed from this profile’s numbers in any rolling hour. Null means only the team limits apply. |
result.data.posts[].platforms[].accountId.profileId.maxDailyCallSpendUsd | number | null | No | — | Most billed spend, in USD, on outbound calls and calls forwarded to a phone from this profile’s numbers in any rolling 24 hours. Null means only the team limits apply. |
result.data.posts[].platforms[].accountId.profileId.maxForwardedMinutesPerDay | integer | null | No | — | Most minutes of inbound calls forwarded to a phone from this profile’s numbers in any rolling 24 hours. Null means only the team limits apply. |
result.data.posts[].platforms[].accountId.profileId.isDefault | boolean | No | — | — |
result.data.posts[].platforms[].accountId.profileId.isOverLimit | boolean | No | — | Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit. |
result.data.posts[].platforms[].accountId.profileId.accountCount | integer | No | — | In the profile list. Connected accounts on the profile, including ones that need reconnecting. phone and SMS number internals and posting accounts hidden by an ads connect are not counted. |
This output schema is too large for an inline display. Read the complete live contract with
deepline describe zernio_list_posts --json.Deepline cost
- Pricing model:
fixed(per call). - Estimated Deepline credits:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.