Webhooks & Notifications
Upload-Post allows you to receive real-time notifications about upload statuses and social account connection changes. This eliminates the need to poll endpoints for status updates.
Configuration
You can configure notifications in the Upload-Post Dashboard:
You can choose to receive notifications via:
- Webhook: A POST request sent to your server with a JSON payload.
- Telegram: A message sent to a configured Telegram chat.
Configuration via API
You can also configure your notification preferences programmatically using the API.
Endpoint: POST https://app.upload-post.com/api/uploadposts/users/notifications
Authentication: Requires a valid API Key.
Request Body:
{
"channels": {
"webhook": true,
"telegram": false
},
"webhook_url": "https://your-server.com/webhook-endpoint",
"telegram_chat_id": "123456789",
"webhook_events": {
"upload_completed": true,
"social_account_connected": true,
"social_account_disconnected": true,
"social_account_reauth_required": true
}
}
Response:
{
"success": true,
"notifications": {
"channels": { "webhook": true, ... },
"webhook_url": "...",
"webhook_secret": "whsec_3f9a…",
"webhook_events": { "upload_completed": true, "social_account_connected": true, ... },
...
}
}
The same endpoint supports GET (read the current settings, including
webhook_secret) and DELETE (remove the account webhook: clears
webhook_url, webhook_events and webhook_secret and turns the webhook
channel off; Telegram/Slack/WhatsApp settings are untouched).
Per-profile webhooks
Agencies and white-label integrators can route each profile's (tenant's)
events to a different URL. A profile webhook fires in addition to the
account webhook, has its own optional webhook_events filter, and is signed
with the same account webhook_secret. Leave the account-level webhook
channel off if you only want per-profile delivery.
| Method | Endpoint | Body / query |
|---|---|---|
GET | /api/uploadposts/users/profile-webhook | ?profile_username=acme |
POST | /api/uploadposts/users/profile-webhook | {"profile_username": "acme", "webhook_url": "https://…", "webhook_events": {"upload_completed": true}} — webhook_events is optional (omit = all events, null = reset) |
DELETE | /api/uploadposts/users/profile-webhook | {"profile_username": "acme"} |
curl -X POST https://api.upload-post.com/api/uploadposts/users/profile-webhook \
-H "Authorization: Apikey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profile_username": "acme", "webhook_url": "https://acme.example.com/upload-post"}'
Response: {"success": true, "profile_username": "acme", "webhook_url": "https://acme.example.com/upload-post", "webhook_events": null}.
Authentication: account API key or dashboard session (the profile-scoped
connect JWT cannot change webhooks).
Verifying signatures
Every webhook request (account and per-profile) carries these headers:
| Header | Value |
|---|---|
X-Upload-Post-Signature | sha256=<hex HMAC-SHA256> — present whenever the account has a webhook_secret |
X-Upload-Post-Timestamp | Unix time (seconds) when the request was signed |
X-Upload-Post-Event | Event name, e.g. upload_completed |
X-Upload-Post-Delivery | Unique id of the delivery. The same on every retry of that delivery: use it to deduplicate |
X-Upload-Post-Attempt | Attempt number for this delivery: 1 for the first send, 2–6 for retries |
X-Upload-Post-Redelivery-Of | Only on a manual redelivery: the X-Upload-Post-Delivery of the original |
Content-Type | application/json |
User-Agent | Upload-Post-Webhooks/1.0 |
The signature is HMAC_SHA256(webhook_secret, "<timestamp>.<raw body>").
Verify it against the raw request bytes — do not parse and re-serialise
the JSON first — reject timestamps older than ~5 minutes to prevent replays,
and compare with a constant-time function.
The secret is created automatically the first time you save a webhook_url
(or a profile webhook). Read it with GET /api/uploadposts/users/notifications
or in the dashboard, on the notifications page (Signing secret). Rotate it with:
curl -X POST https://api.upload-post.com/api/uploadposts/users/webhook-secret \
-H "Authorization: Apikey YOUR_API_KEY"
# → {"success": true, "webhook_secret": "whsec_…"}
To send events to several URLs (for example one per integration, like the n8n trigger), use webhook subscriptions (not generally available yet).
Rotation takes effect immediately: deploy the new secret on your receiver first (accept both during the switch) to avoid rejected deliveries. Deliveries made before a secret existed carry no signature header.
Node.js (Express)
import crypto from "node:crypto";
import express from "express";
const app = express();
const SECRET = process.env.UPLOAD_POST_WEBHOOK_SECRET;
app.post("/upload-post", express.raw({ type: "application/json" }), (req, res) => {
const ts = req.header("X-Upload-Post-Timestamp");
const sig = (req.header("X-Upload-Post-Signature") || "").replace("sha256=", "");
if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return res.sendStatus(400);
const expected = crypto.createHmac("sha256", SECRET).update(`${ts}.`).update(req.body).digest("hex");
const ok = sig.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig, "hex"), Buffer.from(expected, "hex"));
if (!ok) return res.sendStatus(401);
const event = JSON.parse(req.body);
// handle event…
res.sendStatus(200);
});
Python (Flask)
import hmac, hashlib, time
from flask import Flask, request, abort
app = Flask(__name__)
SECRET = "whsec_…"
@app.post("/upload-post")
def upload_post_webhook():
ts = request.headers.get("X-Upload-Post-Timestamp", "")
sig = request.headers.get("X-Upload-Post-Signature", "").removeprefix("sha256=")
if not ts or abs(time.time() - int(ts)) > 300:
abort(400)
expected = hmac.new(SECRET.encode(), f"{ts}.".encode() + request.get_data(), hashlib.sha256).hexdigest()
if not hmac.compare_digest(sig, expected):
abort(401)
event = request.get_json()
return "", 200
Retries and delivery log
Webhooks are delivered at least once. If a delivery fails in a way that may
be temporary, Upload-Post sends it again later with the same body and the
same X-Upload-Post-Delivery id (each attempt is signed again with a fresh
X-Upload-Post-Timestamp, so your replay check keeps working).
What is retried: a timeout (no connection within 5 seconds, no data for
10 seconds, or no response status within 15 seconds in total; we never read your
response body), a connection error,
any 5xx, 408 Request Timeout and 429 Too Many Requests.
What is not retried: any other 4xx (for example 400, 401, 404, 410):
we take it as your endpoint refusing that event. Redirects are not followed and
a 3xx counts as delivered, so point the webhook at its final URL.
| Attempt | When |
|---|---|
| 1 | Right away |
| 2 | 1 minute after attempt 1 failed |
| 3 | 5 minutes after attempt 2 |
| 4 | 30 minutes after attempt 3 |
| 5 | 2 hours after attempt 4 |
| 6 | 6 hours after attempt 5 (about 8.5 hours after the event) |
Times are approximate: a retry can go out up to about a minute later. An endpoint with a long backlog receives at most about 20 deliveries per minute.
After the sixth failed attempt the delivery is marked failed. Retries always go
to the webhook URL and secret configured at the time of the retry: if you fix
the URL, pending retries go to the new one; if you remove the webhook or stop
subscribing to that event, its pending retries are cancelled.
Duplicates and order. Because delivery is at least once, your endpoint can
receive the same delivery more than once (for example, it processed the event but
answered after the 10-second timeout). Store the X-Upload-Post-Delivery ids you
have processed for a few days and skip repeats. Events are not guaranteed to
arrive in order: a retried event can arrive after a newer one, so use the
created_at field of the payload when order matters.
While a channel is paused. After 5 consecutive failures a webhook is paused
for 30 minutes (see Usage Notes). Events that happen during the
pause are kept and sent when the pause ends, and they then follow the same
retry schedule. A delivery that is still pending 24 hours after the event is
marked failed. Account and per-profile webhooks are paused independently.
All webhook types are covered: upload_completed, the social_account_* events,
dm_received, comment_received and the Google Business events (review_received...),
for both account and per-profile webhooks. telegram_update is the exception: it is real-time and carries other people's raw Telegram data, so it is sent once, never retried, queued or redelivered, and the deliveries log keeps only its envelope (event, update type and id).
List deliveries
GET /api/uploadposts/webhooks/deliveries returns the deliveries of your account
(account and per-profile webhooks), newest first. Deliveries are kept for
7 days.
| Query parameter | Description |
|---|---|
event | Only this event, e.g. upload_completed or dm_received (social_account.connected is accepted too) |
status | pending (a retry is scheduled, or the event is waiting for a paused webhook to resume), delivered, failed (all attempts used, refused with a 4xx, or still pending 24 hours after the event) or cancelled (the webhook or the event subscription was removed, or the URL is no longer allowed) |
request_id | Only the deliveries of one upload (request_id of the upload response) |
job_id | Only the deliveries of one scheduled/async job |
profile_username | Only the deliveries of that profile's webhook |
subscription_id | Only the deliveries of one webhook subscription (whsub_...) |
limit | Page size, 1–100 (default 20) |
page | Page number, 1–50 (a higher page answers 400). For older rows, narrow the list with status, event or request_id |
include_payload | true to include each delivery's payload (left out by default to keep the list light; Get one delivery always includes it) |
An unknown status answers 400 ("status must be one of: pending, delivered, failed, cancelled"); out-of-range limit values are clamped.
curl "https://api.upload-post.com/api/uploadposts/webhooks/deliveries?status=failed&limit=20&include_payload=true" \
-H "Authorization: Apikey YOUR_API_KEY"
{
"success": true,
"page": 1,
"limit": 20,
"total": 1,
"has_more": false,
"retention_days": 7,
"deliveries": [
{
"delivery_id": "3f1c9a0e5b2d4c7f8a6e1b0d9c8f7a6e",
"event": "upload_completed",
"status": "failed",
"target": "account",
"profile_username": null,
"url": "https://example.com/upload-post",
"request_id": "a1b2c3d4",
"job_id": null,
"platform": "tiktok",
"test": false,
"attempt_count": 6,
"max_attempts": 6,
"last_status_code": 503,
"last_error": null,
"next_attempt_at": null,
"created_at": "2026-11-13T10:00:00Z",
"updated_at": "2026-11-13T18:36:00Z",
"delivered_at": null,
"redelivery_of": null,
"redelivery_count": 0,
"attempts": [
{"attempt": 1, "at": "2026-11-13T10:00:00Z", "ok": false, "status_code": 503, "error": null, "duration_ms": 412},
{"attempt": 2, "at": "2026-11-13T10:01:00.412000Z", "ok": false, "status_code": null, "error": "timeout", "duration_ms": 10003}
// … attempts 3 to 6
],
"payload": {"event": "upload_completed", "...": "the exact body that was sent"}
}
]
}
urlis shown without its query string.attempts[].error(andlast_error) istimeout,connection_erroror another short error label when there was no HTTP answer; the body of your endpoint's answer is never stored or shown.last_errorcan also say why a delivery is waiting or was closed:channel_paused,expired,webhook_removed,event_unsubscribed,blocked_urlorretries_disabled(and, for a subscription,subscription_removed,subscription_disabledorsubscriptions_disabled).- Timestamps are UTC ISO 8601 and carry microseconds when there are any
(
2026-11-13T10:00:00.412000Z). targetisaccount,profile(thenprofile_usernamesays which) orsubscription(thensubscription_idsays which).testistruefor deliveries sent byPOST /api/uploadposts/users/notifications/test. They are logged so you can see them, but they are sent once (max_attempts: 1): never retried. While the webhook is paused a test is neither sent nor logged.- Team members acting on the account see the account's deliveries. A profile-scoped connect JWT cannot read the log.
Get one delivery
GET /api/uploadposts/webhooks/deliveries/{delivery_id} returns one delivery in
the same shape, always with its payload: {"success": true, "delivery": {…}}.
404 if it does not exist, is older than 7 days or belongs to another account:
{"success": false, "message": "Delivery not found", "reason": "not_found"}
Redeliver a webhook
POST /api/uploadposts/webhooks/deliveries/{delivery_id}/redeliver sends a
logged delivery again, right away, with the same body. It is a new delivery:
it gets its own X-Upload-Post-Delivery id, carries the original id in
X-Upload-Post-Redelivery-Of, and if it fails in a retryable way it follows the
retry schedule above. It is sent to the webhook URL configured now, right away
even while the webhook is paused, and it counts toward the pause counter. Any
delivery can be redelivered, whatever its status. A redelivery of a test delivery
is again a test (not retried).
curl -X POST "https://api.upload-post.com/api/uploadposts/webhooks/deliveries/3f1c9a0e5b2d4c7f8a6e1b0d9c8f7a6e/redeliver" \
-H "Authorization: Apikey YOUR_API_KEY"
Response: {"success": true, "delivery": { …same shape as in the list, with payload… }}.
success: true means the redelivery was made, not that your endpoint accepted it:
check delivery.status and delivery.attempts for the outcome.
Errors have the shape {"success": false, "message": "…", "reason": "…"}:
| Status | reason | message |
|---|---|---|
| 404 | not_found | Delivery not found (does not exist, older than 7 days, or another account's) |
| 409 | webhook_removed | This webhook is no longer configured, so there is nowhere to redeliver to |
| 409 | event_unsubscribed | This webhook no longer subscribes to the event |
| 409 | blocked_url | The webhook URL is not allowed |
| 409 | not_redeliverable | This event is real-time and is not kept, so it cannot be redelivered (telegram_update) |
| 409 | subscription_removed | This webhook subscription was deleted, so there is nowhere to redeliver to |
| 409 | subscription_disabled | This webhook subscription is disabled; create it again to re-enable it |
| 503 | delivery_log_disabled | Webhook redelivery is temporarily disabled |
| 503 | subscriptions_disabled | Webhook subscriptions are temporarily disabled (a delivery of a subscription, while subscriptions are not generally available) |
Webhook Events
You can subscribe to specific event types using the webhook_events object. Set each event key to true to receive it, or false to disable it. If omitted, all events are enabled by default.
| Event | Description |
|---|---|
upload_completed | Fired when an upload process completes (success or failure). |
social_account_connected | Fired when a social account is connected or reconnected. |
social_account_disconnected | Fired when a social account is disconnected (manually or automatically). |
social_account_reauth_required | Fired when a social account requires re-authentication. |
dm_received | Fired when someone sends a direct message to a connected Instagram or Bluesky account, a connected WhatsApp Business number, or your Telegram bot (Facebook Page Messenger messages: limited rollout). Opt-in. |
telegram_update | Every update your Telegram bot receives, raw (button presses, inline queries, join requests, payments, reactions...). Needs the bot's updates turned on: see Telegram. Opt-in. |
comment_received | Fired when someone comments on a post of a connected Instagram, TikTok or LinkedIn Company Page account (Threads is rolling out and Bluesky is not generally available yet, see below). Opt-in. |
review_received | A Google Business Profile location got a new review. Not generally available yet. Opt-in, needs Google Business notifications turned on. |
review_updated | A review of a Google Business Profile location was edited. Not generally available yet. Opt-in, same requirement. |
customer_media_received | A Google Maps user added a photo to a Google Business Profile location. Not generally available yet. Opt-in, same requirement. |
listing_google_update | Google suggests updates to a Google Business Profile listing. Not generally available yet. Opt-in, same requirement. |
listing_duplicate | Google flagged a change in a listing's possible duplicate. Not generally available yet. Opt-in, same requirement. |
listing_control_changed | The merchant's control over the listing changed (verification, suspension...). Not generally available yet. Opt-in, same requirement. |
youtube_video_published | Fired when the YouTube channel of a profile publishes a video. Needs YouTube notifications turned on for the channel. Opt-in. Not generally available yet. |
youtube_video_updated | Fired when a video of that channel changes its title or description. Needs YouTube notifications. Opt-in. Not generally available yet. |
dm_received, comment_received and telegram_update are only sent when you list them explicitly in webhook_events: leaving webhook_events empty does not turn them on, so an existing integration does not start receiving a call for every message. They are delivered only to webhooks, never to Telegram, Slack or WhatsApp.
The first time you subscribe to one of them, Upload-Post asks the network to start sending that account's activity. It is in place within a few seconds of saving your settings (Bluesky DMs: see the table below). Accounts reconnected later are picked up again automatically.
Which networks send them
| Network | comment_received | dm_received | Notes |
|---|---|---|---|
| Yes | Yes | Professional (Business or Creator) accounts. Comments on posts from private accounts are not reported by Meta. | |
| Threads | Rolling out | No | Replies to your posts. Needs the Threads permission to read replies: if you connected Threads before November 2026, reconnect it once. Replies on posts from private accounts are not reported. |
| TikTok | Yes | No | New comments and replies on public posts. TikTok sends them within about five minutes. If you do not receive them, reconnect the TikTok account. |
| Yes | No | Comments on posts of a Company Page the connected member administers. Comments posted as the Page itself are not reported. Personal profiles are not supported by LinkedIn. | |
| Bluesky | Not generally available yet | Yes | comment_received: replies, mentions and quotes, checked about every 5 minutes (see Bluesky comments); it is not active yet. dm_received: checked every 5 minutes (Bluesky has no push), so expect up to ~5 minutes of delay. A new subscription starts within about 30 minutes and reports messages received from then on, never older ones. If Upload-Post cannot read the account for more than 6 hours (for example the app password was revoked), messages received meanwhile are not reported; reconnect Bluesky to resume. Needs an app password created with "Allow access to your direct messages"; see Bluesky Direct Messages. |
| Telegram | No | Yes | Private messages to your own bot and, with Telegram Business, the chats of your account. Needs the bot's updates turned on (Telegram); Telegram then pushes them at once. |
| — | Yes | Messages to a WhatsApp Business number connected from the dashboard. Active as soon as the number is connected. WhatsApp is a messaging channel only, it has no posts or comments. | |
| No | Limited rollout | Messenger is in limited rollout (available on request). dm_received covers Messenger messages to the profile's Page (platform: "facebook"). Needs the Facebook connection with messaging permissions; a Page starts reporting messages the first time you use it with the DM endpoints (send or list conversations). Facebook comments are not notified: use Get Post Comments. | |
| YouTube, X, Pinterest, Reddit | No | No | These networks do not offer comment notifications we can deliver today. Use Get Post Comments to read them. |
Webhook Payloads
upload_completed
Sent when an upload process completes (whether successfully or with a failure).
{
"event": "upload_completed",
"request_id": "f7e8d9c0b1a2...",
"job_id": "a1b2c3d4e5f6...",
"external_id": "cms-post-8841",
"user_email": "[email protected]",
"profile_username": "your_profile_username",
"platform": "instagram",
"media_type": "video",
"title": "My Awesome Video",
"caption": "Check this out! #cool",
"result": {
"success": true,
"url": "https://www.instagram.com/p/C1234567890/",
"publish_id": "17987654321098765",
"post_id": "17987654321098765",
"error": null
},
"created_at": "2024-03-15T14:30:00.000000"
}
Field Descriptions
| Field | Type | Description |
|---|---|---|
event | string | The type of event: upload_completed. |
request_id | string | The request_id of the upload request that produced this result. Use it to match the event with the Upload Status endpoint and with Upload History. |
job_id | string | The persistent job identifier returned when the post was created or scheduled. Use this to correlate webhook events with your original API requests. Only present when the upload was triggered via the API with a job_id. |
external_id | string | Your own identifier for the post, exactly as you sent it when creating the upload (external_id field or X-External-Id header). Only present when the upload had one. |
user_email | string | The email address of the user who initiated the upload. |
profile_username | string | The username of the profile associated with the upload. |
platform | string | The social platform where the post was uploaded (e.g., instagram, youtube, tiktok). |
media_type | string | The type of media uploaded (video, photo, or text). |
title | string | The title provided for the post. |
caption | string | The caption or description of the post. |
result | object | An object containing the outcome of the upload attempt. |
result.success | boolean | true if the upload was successful, false otherwise. |
result.url | string | The direct URL to the published post (if available and successful). |
result.publish_id | string | The ID assigned to the post by the platform. |
result.error | string | A description of the error if the upload failed. |
created_at | string | The timestamp of the event in ISO 8601 format. |
social_account_connected
Sent when a social account is successfully connected or reconnected via OAuth.
{
"event": "social_account_connected",
"user_email": "[email protected]",
"platform": "instagram",
"account_name": "my_instagram_handle",
"status": "connected",
"profile_username": "your_profile_username",
"created_at": "2024-03-15T14:30:00.000000"
}
social_account_disconnected
Sent when a social account is disconnected. This can happen due to:
- Manual disconnection by the user
- Automatic disconnection due to persistent authentication failures (account blocked)
{
"event": "social_account_disconnected",
"user_email": "[email protected]",
"platform": "tiktok",
"account_name": "my_tiktok_handle",
"status": "disconnected",
"profile_username": "your_profile_username",
"reason": "manual_disconnect",
"created_at": "2024-03-15T14:30:00.000000"
}
social_account_reauth_required
Sent when a social account's access token can no longer be refreshed and the user must re-authenticate. This typically happens when:
- The refresh token has expired
- The user revoked access on the platform
- Multiple consecutive token refresh attempts have failed
{
"event": "social_account_reauth_required",
"user_email": "[email protected]",
"platform": "youtube",
"account_name": "UCxxxxxxxxx",
"status": "reauth_required",
"reason": "token_refresh_threshold_exceeded",
"created_at": "2024-03-15T14:30:00.000000"
}
dm_received
{
"event": "dm_received",
"user_email": "[email protected]",
"profile_username": "my-profile",
"platform": "instagram",
"account_id": "17841461478253980",
"sender": { "id": "1234567890123456" },
"message": {
"id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxND...",
"text": "Here is my email: [email protected]",
"attachments": [],
"reply_to": null,
"reply_to_story": null,
"story_mention": null,
"quick_reply_payload": null
},
"timestamp": 1792529472000,
"created_at": "2026-10-20T12:00:00.000000"
}
sender.id is the person's Instagram-scoped id: the same id you see in the participants of Get Conversations and the recipient_id you pass to send them a DM. timestamp is Meta's, in milliseconds. Messages your own account sends are not reported. When the message answers one of your stories, reply_to_story is { "id", "url" } (the story id and Meta's temporary CDN URL); when someone mentions your account in their story, story_mention is { "url" }. Both are null otherwise. reply_to stays the mid of the message being answered, as before.
On Bluesky, platform is bluesky, account_id and sender.id are DIDs (did:plc:...; sender.id works as recipient_id), the payload adds conversation_id and message.type (text) and has no reply_to_story, story_mention or quick_reply_payload, message.attachments holds a shared post ({type: "post", uri, url, text, author: {id, username}}, or {type: "post", uri, url, unavailable: true} when the post was deleted or is blocked) and message.reply_to is {message_id} or null. Messages sent by the account itself, deleted messages and group system events are not reported. timestamp is when the message was sent, in milliseconds.
On Telegram, platform is telegram, account_id is your bot's id, sender is {id, username, name} (sender.id is the chat id to pass as recipient_id), the payload adds conversation_id and, for Business chats, business_connection_id; message has id, text, type (text, photo, video, document, voice...), attachments ({type, media_id, ...}, downloadable with /dms/media), reply_to and media_group_id. timestamp is an ISO 8601 date. See Telegram, which also describes telegram_update.
WhatsApp and Messenger messages use the same event with platform set to whatsapp or facebook:
{
"event": "dm_received",
"user_email": "[email protected]",
"profile_username": "my-profile",
"platform": "whatsapp",
"account_id": "106540352242922",
"sender": { "id": "34600111222", "name": "Jane" },
"message": {
"id": "wamid.HBgLMzQ2MDAxMTEyMjIVAgASGBQzQTk...",
"type": "image",
"text": "Is this one still available?",
"attachments": [
{ "type": "image", "media_id": "1037543291543636", "mime_type": "image/jpeg", "caption": "Is this one still available?", "filename": null }
],
"reply_to": null
},
"timestamp": 1793615400000,
"created_at": "2026-11-03T10:30:00.000000"
}
| Field | Messenger (facebook) | |
|---|---|---|
account_id | Id of your connected WhatsApp number | Id of your Facebook Page |
sender.id | The person's phone number, international format without +. Use it as recipient_id to answer. | The person's Page-scoped id (PSID). Use it as recipient_id to answer. |
sender.name | Their WhatsApp profile name, when WhatsApp sends it | — |
message.type | text, image, video, audio, document, sticker, location, button, interactive, reaction… | text, attachment or postback (a tapped button) |
message.text | The text, the caption of a media message, the title of a tapped button or a reaction's emoji | The text, or the title of the tapped button |
message.attachments | {type, media_id, mime_type, caption, filename}; download the file with Get Media. A location is {type, latitude, longitude, name, address}. | {type, url} |
message.reply_to | Id of the message the person quoted | mid of the message the person replied to |
Extra message fields | — | quick_reply_payload when they tapped a quick reply, payload for a postback |
Each incoming message also opens (or renews) the 24-hour window to answer that person on that channel.
comment_received
{
"event": "comment_received",
"user_email": "[email protected]",
"profile_username": "my-profile",
"platform": "instagram",
"account_id": "17841461478253980",
"comment": {
"id": "17900000000000001",
"text": "POST",
"parent_id": null,
"from": { "id": "17841400000000002", "username": "a_follower" }
},
"post": { "id": "17900000000000003", "media_product_type": "REELS" },
"created_at": "2026-10-20T12:00:00.000000"
}
The same shape is used on every network; platform tells you which one. parent_id is set when the comment is a reply to another comment. Comments made by the account itself are not reported.
| Field | TikTok | Threads | ||
|---|---|---|---|---|
account_id | Instagram professional account id | TikTok account id (open_id) | Threads user id | Company Page (organization) id |
comment.id | Comment id (use it with Reply to Comment) | Comment id | Reply id | Comment URN, urn:li:comment:(…) |
comment.from | {id, username} | {id}: TikTok's unique_identifier for the commenter | {username} | {id}: the commenter's URN |
comment.url | — | — | Link to the reply | — |
post.id | Media id, plus media_product_type | Video or photo post id | Id of the post that was replied to | Activity URN of the post, plus its text |
timestamp | — | Milliseconds | ISO 8601 | Milliseconds |
Bluesky comments
comment_received for Bluesky is not active yet. You can already list it in webhook_events: once it is turned on, events start arriving without any change on your side. Notifications from before it was activated are never sent.
Bluesky has no webhooks, so Upload-Post checks the account's notifications about every 5 minutes: expect up to ~5 minutes of delay. Only accounts that list comment_received in webhook_events are checked. Replies, mentions and quotes written by the account itself are not reported, and the account's notifications are not marked as seen in the Bluesky app. If Upload-Post cannot read the account for more than 6 hours (for example the app password was revoked), what arrived meanwhile is not reported; reconnect Bluesky to resume.
{
"event": "comment_received",
"user_email": "[email protected]",
"profile_username": "my-profile",
"platform": "bluesky",
"account_id": "did:plc:abc123...",
"reason": "reply",
"comment": {
"id": "at://did:plc:def456.../app.bsky.feed.post/3lb9abc",
"cid": "bafyreib...",
"text": "Great thread, thanks!",
"parent_id": null,
"from": { "id": "did:plc:def456...", "username": "bob.bsky.social", "name": "Bob" },
"url": "https://bsky.app/profile/bob.bsky.social/post/3lb9abc"
},
"post": {
"id": "at://did:plc:abc123.../app.bsky.feed.post/3lb2xyz",
"url": "https://bsky.app/profile/did:plc:abc123.../post/3lb2xyz"
},
"timestamp": 1794215642800,
"created_at": "2026-11-12T09:14:05.000000"
}
| Field | Bluesky |
|---|---|
account_id | DID of the connected Bluesky account. |
reason | reply, mention or quote. A reply that also mentions the account can arrive as mention. |
comment.id | at:// URI of the reply, mention or quote. Use it as comment_id in List Comments to read the replies under it. |
comment.parent_id | at:// URI of the reply it answers, or null when it answers the post directly. |
comment.from | {id, username, name}: DID, handle and display name of the author. |
comment.url | Link to it on bsky.app. |
post.id | at:// URI of the post the event is about, never null: the thread's root post for a reply (or for a mention inside a thread), the quoted post for a quote, and the mentioning post itself for a mention outside a thread. |
post.url | Link to that post. |
timestamp | Milliseconds. |
Google Business events
review_received, review_updated, customer_media_received, listing_google_update, listing_duplicate and listing_control_changed have platform: "google_business", account_id (accounts/{id}), notification_type and location, plus review or media_item when they apply. See Google Business Real-time Notifications for an example.
Post approval events
Not generally available yet. While post approval is on, webhook_events (and webhook subscriptions) also accept post_approval_requested, post_approved, post_rejected and post_approval_expired. Opt-in: they are only sent when listed, an empty webhook_events does not include them. The body is {event, user_email, profile_username, approval: {...}, created_at}; see Webhook events.
Connection Status Event Fields
| Field | Type | Description |
|---|---|---|
event | string | The event type: social_account_connected, social_account_disconnected, or social_account_reauth_required. |
user_email | string | The email address of the account owner. |
platform | string | The social platform (e.g., instagram, youtube, tiktok, x, linkedin, facebook, threads, pinterest, reddit, bluesky, google_business, discord, telegram, slack, mastodon, nostr, lemmy, devto, hashnode, wordpress, whop, listmonk, whatsapp). |
account_name | string | The account identifier on the platform (e.g., username, channel ID). |
status | string | The new connection status: connected, disconnected, or reauth_required. |
profile_username | string | The Upload-Post profile associated with this account (if applicable). |
reason | string | Additional context for the status change (e.g., manual_disconnect, account_blocked, token_refresh_threshold_exceeded, max_auth_strikes). Only present for disconnected and reauth_required events. |
created_at | string | The timestamp of the event in ISO 8601 format. |
Usage Notes
- At-least-once delivery with retries: a timeout, connection error,
5xx,408or429is retried up to 6 attempts over about 8.5 hours; other4xxanswers are final. See Retries and delivery log, and checkGET /api/uploadposts/webhooks/deliveriesor redeliver anything you missed. For long outages (more than ~8 hours), reconcile with the Upload Status endpoint or Upload History. - Idempotency: you can receive the same delivery more than once. Deduplicate by
X-Upload-Post-Delivery, which stays the same across retries (a manual redelivery has a new id and names the original inX-Upload-Post-Redelivery-Of). Your own identifiers (request_id, andpost_id/publish_idfor successful posts) work too. - Security: Use HTTPS and verify the signature of every delivery.
- Delivery pause after repeated failures: each notification channel (webhook, Telegram, Slack, WhatsApp) has a circuit breaker. After 5 consecutive failed deliveries (timeouts, connection errors,
4xx/5xxresponses; retries count too) the channel is paused for 30 minutes and then retried; one successful delivery resets the counter. Per-profile webhooks have their own counter, and changing a webhook URL resets its counter. Webhook events that happen while the webhook is paused are queued and sent when the pause ends (Telegram, Slack and WhatsApp messages are not). Keep your endpoint answering2xxwithin 10 seconds and process the payload asynchronously. - Event Filtering: Use the
webhook_eventsfield in your notification settings to subscribe only to the events you need. If not specified, all events are enabled by default, exceptdm_received,comment_receivedand the Google Business events (review_received,review_updated,customer_media_received,listing_google_update,listing_duplicate,listing_control_changed) and the YouTube events (youtube_video_published,youtube_video_updated), which you always have to list. - Replacing Polling: If you were previously polling the profile endpoint to check connection status, subscribe to
social_account_connected,social_account_disconnected, andsocial_account_reauth_requiredevents instead.