Webhook Events
Post Updated
Sent when you edit a scheduled post with PATCH /v1/posts/{id}, when a TikTok post gets its public id, when a Facebook video gets its post id, or when a post made outside Onepostly changes.
Onepostly-Signature*stringt is the Unix time in seconds and v1 the hex HMAC-SHA256 of t, a period and the raw body, keyed with the webhook's secret. Verify it before you trust the body.
Onepostly-Event*"post.updated"The event name, the same as type.
"post.updated"Onepostly-Event-Id*stringThe event id, the same as id.
Onepostly-Delivery*stringThe delivery id, as List Deliveries shows it. It stays the same across attempts.
User-Agent*stringAlways Onepostly-Webhooks/1.0.
application/json- body
id*stringThe event id, starting with evt_. It stays the same on every retry, so use it as your idempotency key.
createdAt*stringWhen the event was created, in ISO 8601. It does not change between retries.
date-timeorganizationId*stringThe workspace the event belongs to.
type*"post.updated"The event name.
"post.updated"data*Holds object, the object the event is about, as it was when the event happened.
Acknowledges the delivery. Answer within 10 seconds, and do slow work after you answer.
{ "id": "evt_7c41e09a5b3d4f2e8a6c1b9d0e3f5a72", "createdAt": "2027-03-15T09:00:01.412Z", "organizationId": "5b0e7c1a-2f4d-4c8e-9a3b-6d1f0e2c4a7b", "type": "post.updated", "data": { "object": { "id": "pst_3c8a2d6e91b44f7a8e250d6b4c1f9a73", "groupId": "grp_7d2e5b1a9c4f4a68b3e07f1c2d9a6e45", "accountId": "acc_1699f4157fb643f49d2ac447491f32a8", "platform": "instagram", "source": "onepostly", "status": "scheduled", "text": "Ship day", "mediaKind": "image", "media": [ { "url": "https://cdn.onepostly.com/media/product.jpg" } ], "thread": [ { "text": "string", "media": [ { "url": "https://cdn.onepostly.com/media/product.jpg" } ] } ], "scheduledFor": "2027-03-15T09:00:00", "timezone": "America/New_York", "options": { "tiktok": { "privacyLevel": "public_to_everyone", "allowComment": true, "allowDuet": false, "allowStitch": false } }, "platformPostId": "17895695668004550", "url": "https://x.com/you/status/17895695668004550", "error": { "code": "VALIDATION_ERROR", "message": "string" }, "publishedAt": "2019-08-24T14:15:22Z", "metrics": { "impressions": 0, "reach": 0, "likes": 0, "comments": 0, "shares": 0, "saves": 0, "views": 0, "engagement": 0 }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } }}{ "Onepostly-Signature": "t=1805101202,v1=48267c482b923179ab3b38f14e593896bfa7fde216b400b4ad697749d3ba95ef", "Onepostly-Event": "post.updated", "Onepostly-Event-Id": "evt_7c41e09a5b3d4f2e8a6c1b9d0e3f5a72", "Onepostly-Delivery": "dlv_9f3e6b2a4c1d4a8eb7f51d2c8e0a6b49", "User-Agent": "Onepostly-Webhooks/1.0"}