Webhook Events

Message Deleted

Sent when the person unsends a message. Instagram only.

Header Parameters

Onepostly-Signature*string

t 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*"message.deleted"

The event name, the same as type.

Value in"message.deleted"
Onepostly-Event-Id*string

The event id, the same as id.

Onepostly-Delivery*string

The delivery id, as List Deliveries shows it. It stays the same across attempts.

User-Agent*string

Always Onepostly-Webhooks/1.0.

Request Body

application/json
  1. body
id*string

The event id, starting with evt_. It stays the same on every retry, so use it as your idempotency key.

createdAt*string

When the event was created, in ISO 8601. It does not change between retries.

Formatdate-time
organizationId*string

The workspace the event belongs to.

type*"message.deleted"

The event name.

Value in"message.deleted"
data*

Holds object, the object the event is about, as it was when the event happened.

Response Body

Acknowledges the delivery. Answer within 10 seconds, and do slow work after you answer.

Example Requests
POST/message.deleted
Request Bodyapplication/json
{  "id": "evt_7c41e09a5b3d4f2e8a6c1b9d0e3f5a72",  "createdAt": "2027-03-15T09:00:01.412Z",  "organizationId": "5b0e7c1a-2f4d-4c8e-9a3b-6d1f0e2c4a7b",  "type": "message.deleted",  "data": {    "object": {      "id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUyOTA2MzE4Mjc0OjM0MDI4MjM2Njg0",      "accountId": "acc_1699f4157fb643f49d2ac447491f32a8",      "platform": "instagram",      "conversationId": "cnv_HEjYFMpANOkmDhP6W8cF57AbClWN8VKQgwy7yAKwY6vYtBIXoNSC44JrQldArbYX7qJPs",      "senderId": "6845123987456321",      "recipientId": "17841452906318274",      "sentAt": "2027-03-15T14:05:11.000Z"    }  }}
Header Parameters
{  "Onepostly-Signature": "t=1805101202,v1=48267c482b923179ab3b38f14e593896bfa7fde216b400b4ad697749d3ba95ef",  "Onepostly-Event": "message.deleted",  "Onepostly-Event-Id": "evt_7c41e09a5b3d4f2e8a6c1b9d0e3f5a72",  "Onepostly-Delivery": "dlv_9f3e6b2a4c1d4a8eb7f51d2c8e0a6b49",  "User-Agent": "Onepostly-Webhooks/1.0"}