Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.81 KB

File metadata and controls

50 lines (34 loc) · 2.81 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]
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 (Late infra), unknown [optional]
errorSource ErrorSourceEnum Who caused the error: user (fix content/reconnect), platform (outage/API change), system (Late issue, rare) [optional]

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"