TikTok API Configuration
Overview
TikTok’s Direct Post API allows developers to integrate “Share to TikTok” functionality into their applications. However, TikTok enforces strict compliance guidelines to ensure authenticity, privacy, and user control over posted content.
Configuration
The following configuration options should be included when setting up TikTok posting:
export interface TikTokSocialConfig {
isEnabled: boolean;
privacyStatus?: string; // Options: 'SELF_ONLY', 'FRIENDS', 'EVERYONE'
allowComment?: boolean; // Users must manually enable
allowDuet?: boolean; // Not applicable for photo posts
allowStitch?: boolean; // Not applicable for photo posts
isCommercial?: boolean; // Indicates if the post is promotional
yourBrand?: boolean; // "Promotional content" label
brandedContent?: boolean; // "Paid partnership" label
agreeToTerms?: boolean; // Required before posting
}
For further details, refer to the official TikTok guidelines: TikTok Developer Documentation
Additional Notes
- If an unaudited API client exceeds the posting limit, users will be prompted to try again later.
- Before publishing, users must confirm compliance with TikTok’s Music Usage Confirmation and Branded Content Policy (if applicable).
- After posting, content may take a few minutes to process before appearing on the user’s profile.
Last updated on