ProtectedapiGet the API base URL for the platform
ProtectedcommonCommon parameters for all social media actions
Metadata about this action
ProtectedoauthOAuth-specific parameters that all OAuth actions should include
Define the parameters this action expects
ProtectedplatformGet the platform name (e.g., 'Twitter', 'LinkedIn')
ProtectedbuildBuild common API headers including authentication
OptionaladditionalHeaders: Record<string, string>ProtectedextractExtract hashtags from video description
ProtectedformatFormat date for API requests (ISO 8601)
ProtectedgetGet the current access token
ProtectedgetInitialize axios instance with interceptors
ProtectedgetGet current user info
ProtectedgetGet custom attributes from company integration
ProtectedgetHelper to get parameter value from params array
ProtectedgetGet profile ID from parameters or default from integration
ProtectedgetGet the refresh token
ProtectedgetGet user's videos
ProtectedhandleProtectedhandleHandle rate limiting with exponential backoff
OptionalretryAfter: numberProtectedinitializeInitialize OAuth connection by loading integration details.
the MJ Company Integration ID to load
Optionalparams: RunActionParamsthe running action's params; params.Provider is captured so all
subsequent entity loads/saves bind to the per-request provider (multi-tenant
correctness). When omitted, falls back to the global default Metadata provider.
ProtectedInternalProtectedisDetermine if an error is an authentication error. Can be overridden by subclasses for platform-specific error detection.
ProtectedisCheck if the current token is expired
ProtectedlogLog API request for debugging
Optionaldata: anyProtectedlogLog API response for debugging
ProtectedmakeProtectedmakeMake authenticated TikTok API request
Optionaldata: anyOptionalparams: anyProtectednormalizeProtectednormalizeProtectedparseParse date from API response
ProtectedparseParse rate limit headers from API response
ProtectedrefreshRefresh TikTok access token
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
ProtectedsearchSearch posts (videos) - TikTok only allows searching user's own videos
ProtectedsetSet custom attributes in company integration
ProtectedupdateUpdate stored tokens after refresh
OptionalrefreshToken: stringOptionalexpiresIn: numberProtecteduploadProtecteduploadProtectedvalidate
Action to search for videos on TikTok Note: TikTok API only allows searching within authenticated user's own videos