Create webhook
Creates an enabled webhook that sends the chosen post events to your endpoint. The response includes the signing_secret. The endpoint must be a public http or https URL: other schemes and private or local addresses are refused with 422 This endpoint is not allowed. on endpoint.
Each delivery is a JSON POST with the body {id, type, data, created_at} and the header X-Webhook-Signature: the hex HMAC-SHA256 of the raw body, keyed with the webhook’s signing_secret. Compare it with your own HMAC of the body before trusting it. A delivery that does not get a 2xx answer within 10 seconds is retried twice, a minute apart. Redirects are not followed.
Body
1post.created: a post was created. Itsdata.statusis the status it was created with (draft,scheduled,publishingorpending_approval).post.scheduled: an existing post was scheduled (for example a draft scheduled, or a request approved). A post created already scheduled sends onlypost.created.post.unscheduled: a scheduled post went back to draft or to pending approval.post.published: the post was published.post.deleted_on_network: a published post was deleted on its network, found the next time TryPost reads its metrics (Facebook, Instagram, Threads, YouTube, X, Bluesky, Mastodon and Pinterest). Itsdata.publish_statusisdeleted;statusstayspublished. Only within the post's metrics window (30 days; 31 on Mastodon; X up to 28 days).post.restored: a post marked deleted is back on its network. Itsdata.publish_statusispublishedagain;post.publishedis not sent again. Neither network event is sent for posts imported from the network.post.failed: publishing failed.post.deleted: a post was deleted. Not sent for posts imported from the network or removed by disconnecting their channel. Itsdatais only{id, workspace_id}.
post.created, post.scheduled, post.unscheduled, post.published, post.deleted_on_network, post.restored, post.failed, post.deleted Response
The created webhook, with its signing secret.
post.created: a post was created. Itsdata.statusis the status it was created with (draft,scheduled,publishingorpending_approval).post.scheduled: an existing post was scheduled (for example a draft scheduled, or a request approved). A post created already scheduled sends onlypost.created.post.unscheduled: a scheduled post went back to draft or to pending approval.post.published: the post was published.post.deleted_on_network: a published post was deleted on its network, found the next time TryPost reads its metrics (Facebook, Instagram, Threads, YouTube, X, Bluesky, Mastodon and Pinterest). Itsdata.publish_statusisdeleted;statusstayspublished. Only within the post's metrics window (30 days; 31 on Mastodon; X up to 28 days).post.restored: a post marked deleted is back on its network. Itsdata.publish_statusispublishedagain;post.publishedis not sent again. Neither network event is sent for posts imported from the network.post.failed: publishing failed.post.deleted: a post was deleted. Not sent for posts imported from the network or removed by disconnecting their channel. Itsdatais only{id, workspace_id}.
post.created, post.scheduled, post.unscheduled, post.published, post.deleted_on_network, post.restored, post.failed, post.deleted 
