Notification when a scheduled post has been processed. Only future scheduled posts using the scheduleDate field of the /post endpoint receive a webhook notification. The webhook will be called when the post in sent on the scheduleDate.
{"action":"scheduled",// The action taken"subAction":"tikTokPublished",// Only present when TikTok video publishing complete"created":"2023-01-05T01:18:47Z","code":200,// HTTP response code"refId":"140b8700bd6ade089b242d845e268fb886130c53",// User Reference ID"status":"success",// success or error"id":"TBAAAqAMMpoweA9wKHUp",// Ayrshare id of post"errors":[],// List of errors if any occurred"postIds":[// Individual successful posts status{"postUrl":"https://www.facebook.com/102775127855689_361718068618052","platform":"facebook","status":"success","id":"102775127855689_361718068618052"}],"url":"https://mysite.com/webhook"}
When working with TikTok via Ayrshare, you might receive two different webhooks for a scheduled post.
If your post was scheduled rather than immediate, you’ll receive the standard Scheduled Action webhook first. This indicates that the video has been successfully sent to TikTok for processing and posting.
Afterwards, you will receive the subAction: tikTokPublished webhook. This is triggered once TikTok has completed processing the video. This webhook is activated for both immediate posts and scheduled posts. In the Ayrshare dashboard, this event is labeled as tikTok (pub).
{"action":"social",// The action taken"created":"2023-01-05T01:18:47Z","code":200,// HTTP response code"details":{// Optional: if details available"status":"error","code":349,"message":"Account locked"},"displayName":"Instagram Title",// If a user account name is present at the social network"hookId":"TKLc30192HLGw5UeJ46","platform":"instagram",// The social platform the action occured"refId":"140b8700bd6ade089b242d845e268fb886130c53",// User Reference ID"refreshBy":"2022-11-05T12:21:29Z"// Optional: If type is refresh, the date the social network authorization must be refreshed on the social account linkage page"source":"system",// Initiated by "system" or "user"."title":"User Profile Name",// The user profile's account title"type":"link"// Type of action: link, unlink, or refresh"url":"https://mysite.com/webhook"}
A source of system means Ayrshare automatically unlinked the account, such as when the social network connection is no longer valid. We recommend you notify your user so they can continue posting. Details of the unlinking found details field. An email will also be sent to the Primary Account email address, or alt emails if they have been setup.
A source of user means the user initiated the action themselves, such as they manually unlinked an account. An email will not be sent when a user initiated action occurs.
{"action":"messages","code":200,"conversationId":"aWdfZAG06MTpJR01lc3NhZA2VUaHJlYWQ6MTc4","created":"2024-06-07T11:58:44Z","hookId":"JC6IgqFjvDliTJ8MLqzE","id":"aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUyMjEyNzA3NDk4","mediaUrls":[],"message":"This is an amazing message","platform":"instagram","recipientId":"7270633706358444","refId":"9abf1426d6ce9122ef11c72bd62e59807c5cc083","scheduleDate":"2024-06-07T11:58:44Z","senderDetails":{"id":"7270633706358444","picture":"https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19","username":"SweetMessage","name":"Sweet"},"senderId":"17841452212707444","subAction":"messageCreated","timeStamp":"2024-06-07T11:58:44Z","title":"Primary Profile","type":"received","url":"https://mysite.com/webhook"}
{"action":"messages","code":200,"conversationId":"t_10161117434308936","created":"2024-06-06T00:49:18Z","hookId":"LcgLuXzZki15lqBNt69h","mediaUrls":[],"platform":"facebook","reaction":"😮","recipientId":"106638148652444","refId":"9abf1426d6ce9432","scheduleDate":"2024-06-06T00:49:18Z","senderId":"7101149746568444","subAction":"reactionCreated",// reactionDeleted if deleted"timeStamp":1717634958,"title":"Primary Profile","type":"reaction","url":"https://mysite.com/webhook"}
Notification when a batch has completed processing and the file is available, such as get all user profiles. You may access the file with the pre-signed URL in the url field.
Notification when a new RSS feed item is found for registered RSS feeds. Note: if the Webhook is active, new RSS items will not be automatically posted to the social networks.
{"action":"feed","created":"2023-01-05T01:18:47Z","code":200,// HTTP response code"refId":"140b8700bd6ade089b242d845e268fb886130c53",// User Reference ID"title":"Title of profile if available",// optional, only if available"data":{ ... },"url":"https://api.myapp.com/Webhook/Ayrshare/Feed"}