Webhooks

Webhooks send a signed POST request to your URL when something happens to a post: it's published, it fails, or it's scheduled. Use them to start Zapier, Make or n8n automations, or to keep your own system in sync without polling GET /posts. Add them in Settings > API, MCP & webhooks or with the endpoints below. Anyone on the team except clients can manage them. When someone leaves the workspace or becomes a client, the webhooks they added are turned off.

Base path: https://api.shortsync.app/v1

Events

FieldTypeDescription
post.publishedeventA post went live on a platform. Sent once per post (one per platform). data.post.url links to it when the platform gives us a link.
post.failedeventA post couldn't be published after ShortSync's automatic retries. data.post.error says why. A post you retry can fail again and send another event.
post.scheduledeventA post was scheduled or rescheduled. data.post.scheduled_for is the new time.
dm_contact.createdeventA DM automation collected an email. data.contact has email, username, platform, rule_id, source_media_id and created_at. JSON endpoints only, not Slack, Teams or Discord.
webhook.testeventSent by "Send test event". Uses a sample post; you can't subscribe to it.

Payload

Every request has the same shape. id is unique per event (use it to skip duplicates). Posts to several platforms send one event per platform.

json
{
  "id": "evt_6f1c2a9b3d4e4f5a8b7c6d5e4f3a2b1c",
  "type": "post.published",
  "created_at": "2026-10-21T12:00:05.120Z",
  "workspace_id": "bbdeeb40-c106-4ed6-95b5-c0e76086c957",
  "data": {
    "post": {
      "id": "3f0d7c1e-8a2b-4c5d-9e6f-0a1b2c3d4e5f",
      "upload_id": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "platform": "instagram",
      "status": "published",
      "content_type": "carousel",
      "caption": "Five things we learned shipping our app",
      "scheduled_for": "2026-10-21T12:00:00.000Z",
      "published_at": "2026-10-21T12:00:04.871Z",
      "platform_post_id": "17912345678901234",
      "url": "https://www.instagram.com/p/C1a2B3c4D5e/",
      "error": null
    }
  }
}

Headers

FieldTypeDescription
X-ShortSync-EventstringThe event type, e.g. post.published.
X-ShortSync-DeliverystringUnique id of this delivery. Retries of the same delivery keep it.
X-ShortSync-Signaturestringt=<unix seconds>,v1=<hex>, where v1 is an HMAC-SHA256 of <t>.<raw body> using the webhook's signing secret.

Checking the signature

You get the signing secret (whsec_…) once, when you create the webhook or roll its secret. Check it on your own server so nobody else can send you fake events. Zapier, Make and n8n don't need it.

ts
import crypto from "node:crypto"

// rawBody: the request body exactly as received (a string, before JSON.parse)
export function verifyShortSyncSignature(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(",").map(p => p.split("=")))
  const timestamp = Number(parts.t)
  // Reject requests older than 5 minutes (replay protection)
  if (!timestamp || Math.abs(Date.now() / 1000 - timestamp) > 300) return false

  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex")
  return (
    expected.length === parts.v1?.length &&
    crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
  )
}

Retries and turning off

Answer with any 2xx status within 10 seconds. Timeouts, 408, 429 and 5xx answers are retried with backoff, 6 tries in total. Other 3xx and 4xx answers aren't retried, and redirects aren't followed. After 20 failed deliveries in a row the webhook is turned off; turn it back on in Settings or with PATCH once your endpoint works. A 410 Gone answer turns it off right away, which is how Zapier unsubscribes a Zap that was turned off.

Zapier, Make and n8n

  • Zapier: start a Zap with Webhooks by Zapier > Catch Hook, copy its URL and add it as a webhook in ShortSync. Send a test event so Zapier learns the fields.
  • Make: start a scenario with the Webhooks > Custom webhook module, copy its address and add it in ShortSync, then send a test event.
  • n8n: add a Webhook trigger node with method POST, use its production URL in ShortSync and activate the workflow. n8n has to be reachable on the public internet over https.

Step-by-step guides for posting from these tools too: n8n, Zapier and Make.

EndpointMethodPathScopePurpose
List webhooksGET/webhookswebhooks:readThe workspace's webhooks
Create a webhookPOST/webhookswebhooks:writeSubscribe a URL to events
Update a webhookPATCH/webhooks/{webhook_id}webhooks:writeChange the URL or events, turn it on or off
Delete a webhookDELETE/webhooks/{webhook_id}webhooks:writeUnsubscribe
Send a test eventPOST/webhooks/{webhook_id}/testwebhooks:writeDeliver webhook.test now and see the answer

List webhooks

GET/webhooks·webhooks:read

Returns { data: Webhook[] }. Secrets are never included. GET /webhooks/{webhook_id} returns one, and GET /webhooks/{webhook_id}/deliveries lists its recent deliveries.

bash
curl https://api.shortsync.app/v1/webhooks \
  -H "Authorization: Bearer $TOKEN"

Create a webhook

POST/webhooks·webhooks:write

Up to 10 webhooks per workspace. The response (201) includes secret; store it, it isn't returned again. POST /webhooks/{webhook_id}/roll-secret issues a new one.

Body

FieldTypeDescription
urlstringPublic https:// URL. Required.
eventsstring[]Any of post.published, post.failed, post.scheduled, dm_contact.created. Required.
formatstringjson (the signed event, default), slack (a Slack message for a hooks.slack.com URL), discord (an embed for a Discord channel webhook) or teams (an Adaptive Card for a Teams Workflows URL). Slack and Discord webhook URLs default to their format.
descriptionstringOptional note, up to 200 characters.
bash
curl -X POST https://api.shortsync.app/v1/webhooks \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://hooks.zapier.com/hooks/catch/123/abc/", "events": ["post.published", "post.failed"] }'

Example response

json
{
  "id": "5b1f0c2d-3e4a-4b5c-8d6e-7f8a9b0c1d2e",
  "url": "https://hooks.zapier.com/hooks/catch/123/abc/",
  "format": "json",
  "events": ["post.published", "post.failed"],
  "description": null,
  "active": true,
  "disabled_reason": null,
  "last_delivery_at": null,
  "last_delivery_status": null,
  "consecutive_failures": 0,
  "created_at": "2026-10-21T12:00:00.000Z",
  "created_by": { "id": "5b1f0c7e-2d9a-4e3b-8f6a-1c2d3e4f5a6b", "name": "Alex Smith" },
  "secret": "whsec_k2N0dVZ5..."
}

Update a webhook

PATCH/webhooks/{webhook_id}·webhooks:write

Pass any of url, format, events, description and active. Turning a webhook back on resets its failure count.

Delete a webhook

DELETE/webhooks/{webhook_id}·webhooks:write

Stops deliveries right away. Returns 204.

Send a test event

POST/webhooks/{webhook_id}/test·webhooks:write

Delivers a signed webhook.test event now, once, and returns { delivery_id, status, response_status, error }. Test failures don't count towards turning the webhook off.