Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 3.57 KB

File metadata and controls

61 lines (41 loc) · 3.57 KB

PlatformTarget

Properties

Name Type Description Notes
platform String Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram [optional]
accountId PlatformTargetAccountId [optional]
customContent String Platform-specific text override. When set, this content is used instead of the top-level post content for this platform. Useful for tailoring captions per platform (e.g. keeping tweets under 280 characters). [optional]
customMedia List<MediaItem> [optional]
scheduledFor OffsetDateTime Optional per-platform scheduled time override (uses post.scheduledFor when omitted) [optional]
platformSpecificData PlatformTargetPlatformSpecificData [optional]
status String Platform-specific status: pending, publishing, published, failed [optional]
platformPostId String The native post ID on the platform (populated after successful publish) [optional]
platformPostUrl URI Public URL of the published post. Included in the response for immediate posts; for scheduled posts, fetch via GET /v1/posts/{postId} after publish time. [optional]
publishedAt OffsetDateTime Timestamp when the post was published to this platform [optional]
isTrialReel Boolean Present and true only when this Instagram reel was launched as a Trial through Zernio (created with platformSpecificData.trialParams). Use it to segment trial reels in analytics. Note: Instagram's Graph API exposes no readable trial field, so this reflects creation-time intent only. It indicates the reel STARTED as a trial, not whether or when it graduated. [optional]
trialGraduationStrategy TrialGraduationStrategyEnum Graduation strategy the trial reel was launched with. Present only when isTrialReel is true. [optional]
errorMessage String Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed. [optional]
errorCategory ErrorCategoryEnum Error category for programmatic handling: auth_expired (token expired/revoked), user_content (wrong format/too long), user_abuse (rate limits/spam), account_issue (config problems), platform_rejected (policy violation), platform_error (5xx/maintenance), system_error (Zernio infra), unknown [optional]
errorSource ErrorSourceEnum Who caused the error: user (fix content/reconnect), platform (outage/API change), system (Zernio issue, rare) [optional]

Enum: TrialGraduationStrategyEnum

Name Value
MANUAL "MANUAL"
SS_PERFORMANCE "SS_PERFORMANCE"

Enum: ErrorCategoryEnum

Name Value
AUTH_EXPIRED "auth_expired"
USER_CONTENT "user_content"
USER_ABUSE "user_abuse"
ACCOUNT_ISSUE "account_issue"
PLATFORM_REJECTED "platform_rejected"
PLATFORM_ERROR "platform_error"
SYSTEM_ERROR "system_error"
UNKNOWN "unknown"

Enum: ErrorSourceEnum

Name Value
USER "user"
PLATFORM "platform"
SYSTEM "system"