---
source_url: https://www.pubnub.com/docs/serverless/events-and-actions/ena-payloads
title: Events & Actions Payloads
updated_at: 2026-05-25T11:30:01.169Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Events & Actions Payloads

Events & Actions (E&A) payloads vary by event type and by whether the response includes E&A metadata.

:::note Envelopes
See the [Envelope](https://www.pubnub.com/docs/serverless/events-and-actions/events#envelope) section for E&A metadata details.
:::

Payloads are grouped by source, producer, and event type. Examples include both no‑envelope and enveloped variants.

## Messages

This section lists event producers for Messages.

### Pub/Sub

#### Message sent

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
    "data": [
        {
            "timestamp": "2025-06-05T12:53:15.888Z",
            "message": "Message Test",
            "meta": null,
            "senderId": "Jack-device",
            "channel": "Channel-Barcelona",
            "timetoken": "17491279958880737"
        }
    ]
}
```

##### V1

```js
{
    "event": {
        "channel": "my_channel",
        "eventCategory": "message",
        "eventType": "message.publish",
        "eventId": "83e0bdc8-8a00-4831-9727-38439a307484",
        "eventPayload": {
            "message": "dfg",
            "meta": null
        },
        "iso8601timestamp": "2025-05-27T07:40:38Z",
        "subscribeKey": "sub-c-12b1e1ad-5648-4c98-9e34-7ef0e6371ccd",
        "timetoken": "17483316384504473",
        "senderId": "elon"
    },
    "eventsAndActionsMetadata": {
        "eventListenerMetadata": {
            "eventListenerId": "285d0e25-26f3-4c28-8e03-28923cabe72c"
        },
        "actionMetadata": {
            "actionId": "c1609a41-1def-473d-a34f-2b86bb8024a1",
            "actionInstanceId": "653fec96-1406-4d28-91d6-5bbe9053b9fc",
            "actionInvocationId": "6d21bde3-69c6-4268-a7ad-9464d7570e3d",
            "webhookMetadata": {
                "retryMetadata": {
                    "attemptNum": 0,
                    "maxNumRetries": 0
                }
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "d277cff8-b1b1-476f-a890-b661555ac4f8",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
            "data": [
                {
                    "timestamp": "2025-05-27T07:40:49.171Z",
                    "message": "dfg",
                    "meta": null,
                    "senderId": "elon",
                    "timetoken": "17483316491714954"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "my_channel"
            }
        ],
        "provenance": {
            "listenerId": "285d0e25-26f3-4c28-8e03-28923cabe72c",
            "action": {
                "id": "c1609a41-1def-473d-a34f-2b86bb8024a1",
                "instanceId": "01991408-63bc-45e0-b43a-92991d14c296",
                "invocation": {
                    "id": "3e2a6172-70ff-4641-acd4-02ed1efd09e5",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "55ca7f0b-145b-428f-80f7-35f55fd3669d",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
            "data": [
                {
                    "timestamp": "2025-05-27T07:41:00.266Z",
                    "message": "dfg",
                    "meta": null,
                    "senderId": "elon",
                    "channel": "my_channel",
                    "timetoken": "17483316602665639"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "285d0e25-26f3-4c28-8e03-28923cabe72c",
            "action": {
                "id": "c1609a41-1def-473d-a34f-2b86bb8024a1",
                "instanceId": "60bb88ad-68cc-401d-b6dc-776e126a1d9c",
                "invocation": {
                    "id": "8bbf029e-a0f4-4ef1-b31c-cb94d0538811",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

### Message Actions

#### Message action created

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
    "data": [
        {
            "timestamp": "2025-06-05T13:23:06.404Z",
            "message": "Test Message",
            "meta": null,
            "senderId": "Test Message Actions User",
            "timetoken": "17491297864048155"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "50354a63-8ba3-42b2-93e1-d1bbc17d93a1",
        "timestamp": "2025-06-16T11:29:21Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
            "data": [
                {
                    "id": "50354a63-8ba3-42b2-93e1-d1bbc17d93a1",
                    "channel": "channel1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17500733512701872",
                    "timestamp": "2025-06-16T11:29:21.037191Z",
                    "type": "1",
                    "value": "1",
                    "userId": "User1"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "channel1",
        "ena:listener": {
            "id": "e9dea45f-d2e3-482d-9eb7-6ed5e5e9e90b"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "a02963ad-4266-4232-94c9-ee85faac847b",
            "invocation": {
                "id": "55688d1b-acdb-4336-a163-568b1f8addd4",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "a0a633d9-3b09-4757-984a-91f1c5f38332",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
            "data": [
                {
                    "id": "a0a633d9-3b09-4757-984a-91f1c5f38332",
                    "channel": "channel1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17500733512701872",
                    "timestamp": "2025-06-16T11:33:28.252328Z",
                    "type": "3",
                    "value": "3",
                    "userId": "User1"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "channel1"
            }
        ],
        "provenance": {
            "listenerId": "e9dea45f-d2e3-482d-9eb7-6ed5e5e9e90b",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "5388d85c-2da4-4d50-b90d-f291965f67fd",
                "invocation": {
                    "id": "2a79fe04-dc9c-47bc-8b6b-f471261edbc1",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "22729eda-a3ec-4b5e-bddc-f6b4d5b42113",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
            "data": [
                {
                    "id": "22729eda-a3ec-4b5e-bddc-f6b4d5b42113",
                    "channel": "channel1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17500733512701872",
                    "timestamp": "2025-06-16T12:02:30.119432Z",
                    "type": "4",
                    "value": "4",
                    "userId": "User1"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "e9dea45f-d2e3-482d-9eb7-6ed5e5e9e90b",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "a3e9a97c-e2ca-4e59-b980-41453eddb81a",
                "invocation": {
                    "id": "d54d9fa5-9004-413e-8bd7-a54a17c53232",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Message action deleted

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
    "data": [
        {
            "id": "580022c7-a3df-4fc2-aa00-556813236ec4",
            "channel": "test_channel_1",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "messageTimetoken": "17491299520205486",
            "timestamp": "2025-06-05T13:31:38.148778Z",
            "type": "Reaction",
            "value": "true",
            "userId": "Test Message Actions User"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "5807c304-43e6-4789-89e0-d3766d68378d",
        "timestamp": "2025-06-05T13:28:05Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
            "data": [
                {
                    "id": "5807c304-43e6-4789-89e0-d3766d68378d",
                    "channel": "test_channel_1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17491299520205486",
                    "timestamp": "2025-06-05T13:28:05.412802Z",
                    "type": "Reaction",
                    "value": "true",
                    "userId": "Test Message Actions User"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "test_channel_1",
        "ena:listener": {
            "id": "1cb9c436-dd9d-40f3-9e5d-88c1c2fab200"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "9b897903-5228-4dcb-941c-6d31ca013d86",
            "invocation": {
                "id": "b80d4011-1f9e-4d74-a842-a834354a56d0",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "63a49207-e963-4802-b42b-389aa529ace5",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
            "data": [
                {
                    "id": "63a49207-e963-4802-b42b-389aa529ace5",
                    "channel": "test_channel_1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17491299520205486",
                    "timestamp": "2025-06-05T13:29:12.523015Z",
                    "type": "Reaction1",
                    "value": "true",
                    "userId": "Test Message Actions User"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "test_channel_1"
            }
        ],
        "provenance": {
            "listenerId": "1cb9c436-dd9d-40f3-9e5d-88c1c2fab200",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "b2dfc638-b181-4e60-9101-4d9e534610de",
                "invocation": {
                    "id": "a41da6b5-131b-4127-a273-d3184c1db213",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "2a8f72af-6453-409d-8bfe-546a2add2597",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
            "data": [
                {
                    "id": "2a8f72af-6453-409d-8bfe-546a2add2597",
                    "channel": "test_channel_1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "messageTimetoken": "17491299520205486",
                    "timestamp": "2025-06-05T13:30:09.399706Z",
                    "type": "Reaction1",
                    "value": "true",
                    "userId": "Test Message Actions User"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1cb9c436-dd9d-40f3-9e5d-88c1c2fab200",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "b9254ef4-dcc6-4bdc-801d-51e2d5442216",
                "invocation": {
                    "id": "ab704b51-b1a4-4518-a48d-b5809762bb62",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

### Files

#### File sent

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
    "data": [
        {
            "channel": "file-transfer-demo"
            "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
            "fileName": "testfile1.txt",
            "message": {
                "example": "message"
            },
            "meta": null,
            "senderId": "Test Files User",
            "timestamp": "2025-06-05T13:18:17.665Z",
            "timetoken": "17491294976652491"
        }
    ]
}
```

##### V1

```js
{
    "event": {
        "channel": "file-transfer-demo",
        "eventCategory": "message",
        "eventType": "message.publish",
        "eventId": "21c70465-d9ae-4441-b892-cfe1843e9ad2",
        "eventPayload": {
            "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
            "fileName": "testfile1.txt",
            "message": {
                "example": "message"
            },
            "meta": null
        },
        "iso8601timestamp": "2025-06-05T13:17:12Z",
        "subscribeKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
        "timetoken": "17491294320151976",
        "senderId": "Test Files User"
    },
    "eventsAndActionsMetadata": {
        "eventListenerMetadata": {
            "eventListenerId": "9de104ce-3b85-0451-1337-1905793f42c7"
        },
        "actionMetadata": {
            "actionId": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "actionInstanceId": "907988fa-aac3-4ae2-8e92-213c4ccb36e8",
            "actionInvocationId": "fea861db-0c31-4e53-9338-cee3993802c1",
            "webhookMetadata": {
                "retryMetadata": {
                    "attemptNum": 0,
                    "maxNumRetries": 0
                }
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "7e79fdd7-4b65-4486-b893-017b37e2f179",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
            "data": [
                {
                    "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
                    "fileName": "testfile1.txt",
                    "message": {
                        "example": "message"
                    },
                    "meta": null,
                    "senderId": "Test Files User",
                    "timestamp": "2025-06-05T13:18:17.665Z",
                    "timetoken": "17491294976652491"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "file-transfer-demo"
            }
        ],
        "provenance": {
            "listenerId": "9de104ce-3b85-0451-1337-1905793f42c7",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "0108637a-718c-4b82-a465-c4611b13ecc6",
                "invocation": {
                    "id": "a9dfa1eb-0032-4410-8e42-c2cf72736a5e",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "31a61371-8d6d-432c-bf70-3bd348c6a3eb",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
            "data": [
                {
                    "channel": "file-transfer-demo",
                    "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
                    "fileName": "testfile1.txt",
                    "message": {
                        "example": "message"
                    },
                    "meta": null,
                    "senderId": "Test Files User",
                    "timestamp": "2025-06-05T13:18:17.665Z",
                    "timetoken": "17491294976652491"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "2dc9bbe3-adcf-424c-a43d-f069963815aa",
            "action": {
                "id": "ab043cc6-842d-4d50-ac30-7ebfd5ffd7ad",
                "instanceId": "033ffd58-ea19-4e79-ba59-321fa7bbcbbd",
                "invocation": {
                    "id": "0a78498d-791a-416e-837a-11b00a2e1850",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

## Users

This section lists all event producers from the Users source.

### Presence

#### User state changed in channel

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
    "data": [
        {
            "id": "889e9b63-0d4d-4d3c-808d-b226f5dc6504",
            "channel": "Channel-Barcelona",
            "userId": "Jack-device",
            "data": {
                "action": "state-change",
                "uuid": "Jack-device",
                "timestamp": "1749128108",
                "precise_timestamp": "1749128108494",
                "data": "{\"state\":\"test-state\"}",
                "occupancy": "0"
            },
            "timestamp": "2025-06-05T12:55:08.494Z",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "203d20ca-c99b-41a8-bda2-f45c857c6035",
        "timestamp": "2025-06-05T12:57:57Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
            "data": [
                {
                    "id": "203d20ca-c99b-41a8-bda2-f45c857c6035",
                    "channel": "asd",
                    "userId": "asd",
                    "data": {
                        "action": "state-change",
                        "uuid": "asd",
                        "timestamp": "1749128277",
                        "precise_timestamp": "1749128277953",
                        "data": "{\"state\":\"test-state2\"}",
                        "occupancy": "0"
                    },
                    "timestamp": "2025-06-05T12:57:57.953Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "asd",
        "ena:listener": {
            "id": "a2b3bfb3-a3b4-4be7-84ff-fe15a7e9e811"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "f09ed250-2dac-4d6e-a9ce-90905f58826b",
            "invocation": {
                "id": "80c9c4c0-aa61-441f-ac69-c65b9f179e7a",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "5392032a-9db5-4047-9f86-2f98679ad73f",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
            "data": [
                {
                    "id": "5392032a-9db5-4047-9f86-2f98679ad73f",
                    "channel": "asd",
                    "userId": "asd",
                    "data": {
                        "action": "state-change",
                        "uuid": "asd",
                        "timestamp": "1749128327",
                        "precise_timestamp": "1749128327604",
                        "data": "{\"state\":\"test-state3\"}",
                        "occupancy": "0"
                    },
                    "timestamp": "2025-06-05T12:58:47.604Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "asd"
            }
        ],
        "provenance": {
            "listenerId": "a2b3bfb3-a3b4-4be7-84ff-fe15a7e9e811",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "25edd589-07a6-4713-bd72-906bc78bbc2a",
                "invocation": {
                    "id": "d10aacea-3315-4c5b-8e77-ac231b672330",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "cc464354-7357-4113-9bba-2e0d7fafdc31",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
            "data": [
                {
                    "id": "cc464354-7357-4113-9bba-2e0d7fafdc31",
                    "channel": "asd",
                    "userId": "asd",
                    "data": {
                        "action": "state-change",
                        "uuid": "asd",
                        "timestamp": "1749128351",
                        "precise_timestamp": "1749128351906",
                        "data": "{\"state\":\"test-state4\"}",
                        "occupancy": "0"
                    },
                    "timestamp": "2025-06-05T12:59:11.906Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "a2b3bfb3-a3b4-4be7-84ff-fe15a7e9e811",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "2cd190ed-ff03-48b3-b5af-43f1723f37d0",
                "invocation": {
                    "id": "ec3000c2-7e5b-4c88-9ac1-2e4b02714844",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

### CRUD

#### User created

##### No Envelope

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "8493d90b-e8b9-45af-83ba-c0e0ee97cf7d",
        "timestamp": "2025-06-05T13:13:53Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "8493d90b-e8b9-45af-83ba-c0e0ee97cf7d",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:13:53.210517866Z",
                    "eTag": "b56e86ea3f6742950553768b9816adc2",
                    "userId": "User_id4",
                    "name": "User Name4",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "a965338b-b647-4d1b-925b-23074f2465a0"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "c7c027f1-8f40-46fe-98a6-00dfb3c46440",
            "invocation": {
                "id": "35603a9b-ed59-4405-9c4e-13e986219f3a",
                "attempt": 0
            }
        }
    }
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "8de8f5e1-ee4b-4439-a095-5326ad504e60",
        "timestamp": "2025-06-05T13:14:41Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "8de8f5e1-ee4b-4439-a095-5326ad504e60",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:14:41.797913182Z",
                    "eTag": "a9fa9a3db8cd88d66e68d94f043b638c",
                    "userId": "User_id5",
                    "name": "User Name5",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "a965338b-b647-4d1b-925b-23074f2465a0"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "3e945fe6-7b15-4ecb-8dc7-57e08fc1b5e4",
            "invocation": {
                "id": "63eb7ab8-d853-4f1e-82a9-a3814a13bde9",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "d2fed5e9-d1d0-45e3-b031-420dd5939d3c",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "d2fed5e9-d1d0-45e3-b031-420dd5939d3c",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:12:36.181052533Z",
                    "eTag": "97553458609bcdd58c05936d913a6511",
                    "userId": "User_id2",
                    "name": "User Name2",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "a965338b-b647-4d1b-925b-23074f2465a0",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "be265a04-9b0c-429a-8b64-ef9b04aa2f73",
                "invocation": {
                    "id": "aa75acfa-363e-4ec2-8a79-b54e723fb917",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "9dc756ca-0be4-4c82-bc46-84e1a08782fb",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "9dc756ca-0be4-4c82-bc46-84e1a08782fb",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:11:54.517788662Z",
                    "eTag": "520565d0095710aaac47b437a0b51c4f",
                    "userId": "User_id",
                    "name": "User Name",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "a965338b-b647-4d1b-925b-23074f2465a0",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "f16754bf-213b-42d6-af7e-02d5d28afcec",
                "invocation": {
                    "id": "3dcfffae-30a5-45ec-87cd-729c4cb977f7",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### User updated

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
    "data": [
        {
            "id": "7044631a-f86e-4df3-9303-9bb490f4b64f",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-05T13:35:14.735278571Z",
            "eTag": "87e4956864cd39abe4ceaea8a22f375b",
            "userId": "User_id",
            "fields": {
                "name": "User Name Updated"
            }
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "bf4c7a01-c77f-45a8-93fc-d6e4837eb8b1",
        "timestamp": "2025-06-05T13:35:45Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
            "data": [
                {
                    "id": "bf4c7a01-c77f-45a8-93fc-d6e4837eb8b1",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:35:45.087128767Z",
                    "eTag": "ce75db33843d362991fd1629e8652e03",
                    "userId": "User_id",
                    "fields": {
                        "name": "User Name Updated2"
                    }
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "d0bbcab1-3cf5-4d9a-92e6-d3f8351383fb"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "70aa0afc-bbed-40f6-83b1-4083f1f07a91",
            "invocation": {
                "id": "018355cf-97c7-4df5-b7fc-62a7a640b6cc",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "06db7d99-d98f-42b9-85a4-59f7f05d8c61",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
            "data": [
                {
                    "id": "06db7d99-d98f-42b9-85a4-59f7f05d8c61",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:36:13.817245178Z",
                    "eTag": "1e985155342411beb59eaaae686a6eec",
                    "userId": "User_id",
                    "fields": {
                        "name": "User Name Updated3"
                    }
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "d0bbcab1-3cf5-4d9a-92e6-d3f8351383fb",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "1bb39b17-5aaf-4eca-a5a8-f4da37283d83",
                "invocation": {
                    "id": "a6ef419b-a265-4e9b-8462-a0f4a8d3a192",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "e8192dd3-46e3-4a9c-b692-e215c84d34d6",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
            "data": [
                {
                    "id": "e8192dd3-46e3-4a9c-b692-e215c84d34d6",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-05T13:36:46.736997633Z",
                    "eTag": "26efb626b1c06dd7d8aec7bcab808986",
                    "userId": "User_id",
                    "fields": {
                        "name": "User Name Updated4"
                    }
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "d0bbcab1-3cf5-4d9a-92e6-d3f8351383fb",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "570eb7a6-0767-4a42-ad11-b06c6d474338",
                "invocation": {
                    "id": "e1d0ad9a-1c44-4647-98be-690888e48b18",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### User deleted

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
    "data": [
        {
            "id": "df0cdbe6-7505-49e2-9a24-9307174b1d38",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:09:16.475127588Z",
            "userId": "User_id6"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "032a2109-bff4-4b61-b228-78d7a52c6761",
        "timestamp": "2025-06-16T11:29:46Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "032a2109-bff4-4b61-b228-78d7a52c6761",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:29:46.281535176Z",
                    "eTag": "a2668f823762f97bb0ed2b68b3a4ae4a",
                    "userId": "User_id7",
                    "name": "User_id7",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "a965338b-b647-4d1b-925b-23074f2465a0"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "10f08250-5531-4072-91f8-281b89b5fdf5",
            "invocation": {
                "id": "3556a696-e420-446a-b258-2d52fcd696ef",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "29d404cc-e1e6-4764-b7a2-99dc4f056df2",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
            "data": [
                {
                    "id": "29d404cc-e1e6-4764-b7a2-99dc4f056df2",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:33:54.887399958Z",
                    "eTag": "fa2caf5fcf438b8afa3f6a9bd6edb4b7",
                    "userId": "User_id8",
                    "name": "User_id8",
                    "email": "",
                    "profileUrl": "",
                    "externalId": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "a965338b-b647-4d1b-925b-23074f2465a0",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "03b93297-dc0c-49c8-bfd0-dc29add311c2",
                "invocation": {
                    "id": "d9a98d5e-00a8-4c8b-8e6f-5ce6d5315d7c",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "4a8fc29b-9e39-4516-baba-30c88993b0e3",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
            "data": [
                {
                    "id": "4a8fc29b-9e39-4516-baba-30c88993b0e3",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:02:48.420320848Z",
                    "userId": "User_id8"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "4a37983d-c846-4fed-9acc-09fd776de70b",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "1622f657-5607-49bc-982b-3fc98d654cd0",
                "invocation": {
                    "id": "11bf0d93-49b5-4c01-b6ea-3e62ffbbef02",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

## Channels

This section lists all event producers from the Channels source.

### CRUD

#### Channel created

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
    "data": [
        {
            "id": "e2467259-b0f0-4e64-ac9f-b9a44cd8a7c4",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:10:24.844778615Z",
            "eTag": "1e5c41f43cca3f3643524175268cddf6",
            "channelId": "channel_1",
            "name": "channel_1",
            "description": "",
            "type": "",
            "status": ""
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "9e8ce6af-f750-4aa5-ba15-b4e26bd5c4a9",
        "timestamp": "2025-06-16T11:30:11Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
            "data": [
                {
                    "id": "9e8ce6af-f750-4aa5-ba15-b4e26bd5c4a9",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:30:11.412327865Z",
                    "eTag": "dbe1b43a5159bcf3b931a7449042152f",
                    "channelId": "channel_3",
                    "name": "channel_3",
                    "description": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "49e86af8-4209-4cf5-8f69-04af49288d07"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "6a43c296-ff0b-47fd-8492-addc0856a336",
            "invocation": {
                "id": "a07af190-33cf-4ddf-bfb1-73a4184db103",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "551aa75c-7f4e-415c-8e40-1a401bc64deb",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
            "data": [
                {
                    "id": "551aa75c-7f4e-415c-8e40-1a401bc64deb",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:34:19.003868780Z",
                    "eTag": "1d44649f447d6a30fccd98790bb6ee9d",
                    "channelId": "channel_4",
                    "name": "channel_4",
                    "description": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "49e86af8-4209-4cf5-8f69-04af49288d07",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "b3dca2a0-153a-4130-aed0-8dae9a454423",
                "invocation": {
                    "id": "78e70cd3-e27f-4cc6-97bb-7a8c37ca9391",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "9ef4e9ae-7937-4ab9-adab-4902bafc84d9",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
            "data": [
                {
                    "id": "9ef4e9ae-7937-4ab9-adab-4902bafc84d9",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:03:18.711236330Z",
                    "eTag": "7422fe5544f74f16cdbdc1e1849c8f7b",
                    "channelId": "channel_5",
                    "name": "channel_5",
                    "description": "",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "49e86af8-4209-4cf5-8f69-04af49288d07",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "46fd1098-84ca-4de2-9adb-16e0a22e6420",
                "invocation": {
                    "id": "44e65183-d3dc-4691-916a-12b6ec0219f1",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Channel updated

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
    "data": [
        {
            "id": "7ca8f612-ca63-406e-add3-4510bf55558b",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:11:03.439309673Z",
            "eTag": "eab2bd4c72aadf93e06d9d9084668e6a",
            "channelId": "channel_1",
            "fields": {
                "space": "channel_12"
            }
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "12a077bf-b0a2-459d-8e1d-dfa8a5cb5d61",
        "timestamp": "2025-06-16T11:30:28Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
            "data": [
                {
                    "id": "12a077bf-b0a2-459d-8e1d-dfa8a5cb5d61",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:30:28.613146058Z",
                    "eTag": "29055e7eb043ae5cb547ee755a2f683a",
                    "channelId": "channel_3",
                    "fields": {
                        "space": "channel_31"
                    }
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "228dbc87-795c-4e53-9361-ddeba51c941d"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "680bf345-0971-44a6-b4ab-30c520e41b05",
            "invocation": {
                "id": "35ccc69c-5540-4051-9839-fad67170349e",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "01baa313-b05f-412d-868a-1927d14fbe4e",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
            "data": [
                {
                    "id": "01baa313-b05f-412d-868a-1927d14fbe4e",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:34:32.051428509Z",
                    "eTag": "a683ee7c08293f69432c83edf9540d66",
                    "channelId": "channel_4",
                    "fields": {
                        "space": "channel_41"
                    }
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "228dbc87-795c-4e53-9361-ddeba51c941d",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "61612fc9-752b-4df3-a8a2-a65c76970362",
                "invocation": {
                    "id": "0c88ba10-9834-4f43-bd8a-624e936cef71",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "ca5ba27a-1e44-4268-a839-d46dd71cb9fe",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
            "data": [
                {
                    "id": "ca5ba27a-1e44-4268-a839-d46dd71cb9fe",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:03:38.758837834Z",
                    "eTag": "a359f2085975452ff88676fa15fc40a4",
                    "channelId": "channel_5",
                    "fields": {
                        "space": "channel_51"
                    }
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "228dbc87-795c-4e53-9361-ddeba51c941d",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "f1dad9e2-276d-47f8-9df3-f28207908fcf",
                "invocation": {
                    "id": "017705e0-a7e6-4a2d-881a-771bf16197e0",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Channel deleted

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
    "data": [
        {
            "id": "63982247-db79-43b9-bf3a-39e647f23292",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:11:15.215130220Z",
            "channelId": "channel_1"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "114cebca-ad70-4a15-97f6-2195db539d9c",
        "timestamp": "2025-06-16T11:30:45Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
            "data": [
                {
                    "id": "114cebca-ad70-4a15-97f6-2195db539d9c",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:30:45.260591240Z",
                    "channelId": "channel_3"
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "10d94a0e-a954-4487-be83-f3cd139e21d5"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "8fa6fc4e-fa3f-4b48-8312-5c23f2000642",
            "invocation": {
                "id": "ebf13b02-e7c0-474d-853a-1091bbdc6753",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "acfc66ac-5863-4445-807b-8f1836208060",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
            "data": [
                {
                    "id": "acfc66ac-5863-4445-807b-8f1836208060",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:34:44.451194387Z",
                    "channelId": "channel_4"
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "10d94a0e-a954-4487-be83-f3cd139e21d5",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "10831b67-68c1-449c-8d1f-6076724a56be",
                "invocation": {
                    "id": "69f4e4a4-b9bb-4572-b624-5fdbb7ef62e0",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "52b3ac61-75c8-4dab-8d6e-5196840dff37",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
            "data": [
                {
                    "id": "52b3ac61-75c8-4dab-8d6e-5196840dff37",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:03:50.391162543Z",
                    "channelId": "123"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "10d94a0e-a954-4487-be83-f3cd139e21d5",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "8d8af46e-c757-4d5f-835b-3545c4c32814",
                "invocation": {
                    "id": "897ba8cd-8d98-44a7-a0bb-1d21ff9e9d39",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

### Presence

#### First user subscribed to channel

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
    "data": [
        {
            "id": "0dc3f00a-06d2-4849-b511-ea9e1817c461",
            "timestamp": "2025-06-16T09:11:26.809Z",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "channel": "Channel-Barcelona"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "bcbd8352-1f3b-49e8-9f0c-cbf30870fced",
        "timestamp": "2025-06-16T09:53:39Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
            "data": [
                {
                    "id": "bcbd8352-1f3b-49e8-9f0c-cbf30870fced",
                    "timestamp": "2025-06-16T09:53:39.715Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "0f61dd70-ea09-4406-bf35-19d51bb8541c"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "d5a71205-13e5-4aa8-90ef-657ad0c46bea",
            "invocation": {
                "id": "607c9a93-d613-47cb-9d4a-b156fcde7bb1",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "b558dab1-8d24-425a-b6a8-7f17c0f595b6",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
            "data": [
                {
                    "id": "b558dab1-8d24-425a-b6a8-7f17c0f595b6",
                    "timestamp": "2025-06-16T11:35:00.205Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "0f61dd70-ea09-4406-bf35-19d51bb8541c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "aee61563-b31b-4058-b541-f8b8e1ecab9b",
                "invocation": {
                    "id": "4f2e3428-5666-4f0f-8ea1-ae0b55da34c8",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "1b071b4a-245b-493e-9c45-516b94a3f647",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
            "data": [
                {
                    "id": "1b071b4a-245b-493e-9c45-516b94a3f647",
                    "timestamp": "2025-06-16T12:04:27.220Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "0f61dd70-ea09-4406-bf35-19d51bb8541c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "619ba676-88ec-40b5-aa7a-3ff44a052768",
                "invocation": {
                    "id": "eb9d3aea-aeb5-491e-bc46-72c70679e843",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Last user left channel

##### No Envelope

```js
{
    "event": {
        "id": "a4cd34f6-afb2-4399-84cc-eaffa9dfc481",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
            "data": [
                {
                    "id": "a4cd34f6-afb2-4399-84cc-eaffa9dfc481",
                    "timestamp": "2025-06-16T10:52:49.629Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "128d19ec-6abe-48da-8941-a31db5604862",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "eb095f18-8e62-4036-afab-abccc9d4ebd4",
                "invocation": {
                    "id": "7e0d4201-43d3-4157-b724-4df56ebd1e7b",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "0f0a270d-a86c-4186-b7ed-e41f9fcd95a5",
        "timestamp": "2025-06-16T09:55:00Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
            "data": [
                {
                    "id": "0f0a270d-a86c-4186-b7ed-e41f9fcd95a5",
                    "timestamp": "2025-06-16T09:55:00.104Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "128d19ec-6abe-48da-8941-a31db5604862"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "5bc158bf-0005-4e30-8a7b-e942d70704f0",
            "invocation": {
                "id": "8c323457-b0dc-4be1-9b49-ab6d322fdaa9",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "ed33c79d-dfc1-43a7-9e34-0c1a9cc8089d",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.00",
            "data": [
                {
                    "id": "ed33c79d-dfc1-43a7-9e34-0c1a9cc8089d",
                    "timestamp": "2025-06-16T11:40:00.420Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "128d19ec-6abe-48da-8941-a31db5604862",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "6deb0f0d-77d7-4b2e-953a-f8b895d35057",
                "invocation": {
                    "id": "bbc7899b-d31a-4352-a3c8-2a14f61e3f62",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "bd688fba-d66e-4900-b3ae-902db0c092e0",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
            "data": [
                {
                    "id": "bd688fba-d66e-4900-b3ae-902db0c092e0",
                    "timestamp": "2025-06-16T12:09:27.254Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "channel": "Channel-Barcelona"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "128d19ec-6abe-48da-8941-a31db5604862",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "b81b924f-f3e8-461c-9f06-0c93c640b012",
                "invocation": {
                    "id": "95ad1e6c-5a5a-4853-9bc0-5652548d2428",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### User started subscription to channel

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
    "data": [
        {
            "id": "a36773df-d828-4d40-99ab-26b8ebe46e41",
            "channel": "Channel-Barcelona",
            "userId": "Jack-device",
            "occupancy": 2,
            "data": {
                "occupancy": "2",
                "action": "join",
                "timestamp": "1750065086",
                "precise_timestamp": "1750065086809",
                "uuid": "Jack-device"
            },
            "timestamp": "2025-06-16T09:11:26.809Z",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "9165aa63-9211-4ba0-939c-762b69474409",
        "timestamp": "2025-06-16T09:53:39Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
            "data": [
                {
                    "id": "9165aa63-9211-4ba0-939c-762b69474409",
                    "channel": "Channel-Barcelona",
                    "userId": "Amanda-device",
                    "occupancy": 2,
                    "data": {
                        "action": "join",
                        "precise_timestamp": "1750067619763",
                        "uuid": "Amanda-device",
                        "timestamp": "1750067619",
                        "occupancy": "2"
                    },
                    "timestamp": "2025-06-16T09:53:39.763Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "9bd98294-a514-44c1-b61f-722e4320f687"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "5a1e6347-e0d3-4f00-8be1-01fd7b308c31",
            "invocation": {
                "id": "81dadc79-9795-4f43-aac2-50ef50864144",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "3385d6fa-3e3a-4ad9-8b85-64468adc9a78",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
            "data": [
                {
                    "id": "3385d6fa-3e3a-4ad9-8b85-64468adc9a78",
                    "channel": "Channel-Barcelona",
                    "userId": "Jack-device",
                    "occupancy": 1,
                    "data": {
                        "action": "join",
                        "timestamp": "1750073700",
                        "precise_timestamp": "1750073700205",
                        "occupancy": "1",
                        "uuid": "Jack-device"
                    },
                    "timestamp": "2025-06-16T11:35:00.205Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "9bd98294-a514-44c1-b61f-722e4320f687",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "eae443f5-5acc-48d6-a8ff-b2fd30ef42a8",
                "invocation": {
                    "id": "bb7eb284-f595-4fd7-a73b-7bc2bea3b8c4",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "a9726eba-b514-472b-a6a7-13cbe06a1975",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
            "data": [
                {
                    "id": "a9726eba-b514-472b-a6a7-13cbe06a1975",
                    "channel": "Channel-Barcelona",
                    "userId": "Jack-device",
                    "occupancy": 1,
                    "data": {
                        "timestamp": "1750075467",
                        "occupancy": "1",
                        "action": "join",
                        "precise_timestamp": "1750075467220",
                        "uuid": "Jack-device"
                    },
                    "timestamp": "2025-06-16T12:04:27.220Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "9bd98294-a514-44c1-b61f-722e4320f687",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "cbaa86d5-797f-4c55-9a52-af5069b58275",
                "invocation": {
                    "id": "f15035d2-7691-4739-8523-8c059457fae3",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### User stopped subscription to channel

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
    "data": [
        {
            "id": "2cf3a1cb-6039-4745-a2e0-7c0b40051bb4",
            "channel": "Channel-Barcelona",
            "userId": "Amanda-device",
            "occupancy": 1,
            "data": {
                "uuid": "Amanda-device",
                "precise_timestamp": "1750065124663",
                "timestamp": "1750065124",
                "occupancy": "1",
                "action": "leave"
            },
            "timestamp": "2025-06-16T09:12:04.663Z",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "6bab3d0e-e920-45a0-b960-3c8d1c642ec0",
        "timestamp": "2025-06-16T09:54:50Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
            "data": [
                {
                    "id": "6bab3d0e-e920-45a0-b960-3c8d1c642ec0",
                    "channel": "Channel-Barcelona",
                    "userId": "Amanda-device",
                    "occupancy": 5,
                    "data": {
                        "occupancy": "5",
                        "action": "leave",
                        "timestamp": "1750067690",
                        "uuid": "Amanda-device",
                        "precise_timestamp": "1750067690489"
                    },
                    "timestamp": "2025-06-16T09:54:50.489Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "7c39bdca-322d-4202-ba4c-3bb3aa2bf3a6"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "56d2d513-997f-43e6-bfec-b96d1f48222b",
            "invocation": {
                "id": "77761f90-4ee7-4435-9042-7b0ae56349c4",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "1be3c8a7-c607-428b-9b77-06fb23dccddb",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
            "data": [
                {
                    "id": "1be3c8a7-c607-428b-9b77-06fb23dccddb",
                    "channel": "Channel-Barcelona",
                    "userId": "Jack-device",
                    "data": {
                        "uuid": "Jack-device",
                        "timestamp": "1750073720",
                        "precise_timestamp": "1750073720101",
                        "occupancy": "0",
                        "action": "leave"
                    },
                    "timestamp": "2025-06-16T11:35:20.101Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "7c39bdca-322d-4202-ba4c-3bb3aa2bf3a6",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "7bb31ed9-d400-4210-a80c-128319a8b965",
                "invocation": {
                    "id": "f38f68dd-2e36-4535-801d-0f3d4b8d35c3",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "0d5055b9-d0c4-4cc3-b007-9e5142607623",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
            "data": [
                {
                    "id": "0d5055b9-d0c4-4cc3-b007-9e5142607623",
                    "channel": "Channel-Barcelona",
                    "userId": "Jack-device",
                    "data": {
                        "action": "leave",
                        "timestamp": "1750075493",
                        "occupancy": "0",
                        "uuid": "Jack-device",
                        "precise_timestamp": "1750075493003"
                    },
                    "timestamp": "2025-06-16T12:04:53.003Z",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "7c39bdca-322d-4202-ba4c-3bb3aa2bf3a6",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "f025f393-c551-486c-ab5d-06e660b64833",
                "invocation": {
                    "id": "c7a50edb-aeb5-423b-81d5-80d24e306f79",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### User timed out while subscribing to channel

##### No Envelope

```js
{
    "channelId": "meeting-9xs243ia-attendees",
    "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
    "occupancy": 0,
    "data": {}
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
        "timestamp": "2025-06-16T09:53:50Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "channelId": "meeting-9xs243ia-attendees",
                    "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
                    "occupancy": 0,
                    "data": {}
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "1b526cbb-4e4c-4f19-8f77-ea862d94115c"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "fac22a44-c01e-457e-97ac-808c4cd5a510",
            "invocation": {
                "id": "4cc6398a-629d-4923-83b2-a25938094f83",
                "attempt": 0
            }
        }
    },
    "channelId": "meeting-9xs243ia-attendees",
    "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
    "occupancy": 0,
    "data": {}
}
```

##### V2

```js
{
    "event": {
        "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "channelId": "meeting-9xs243ia-attendees",
                    "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
                    "occupancy": 0,
                    "data": {}
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "c65b2163-b7aa-4687-b8cf-a995654bb5fa",
                "invocation": {
                    "id": "3646066e-2099-4368-a31b-36c2457c8c1c",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "channelId": "meeting-9xs243ia-attendees",
                    "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
                    "occupancy": 0,
                    "data": {}
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "85b12038-8a23-4152-9a62-ccdb184e9b01",
                "invocation": {
                    "id": "90c56456-7f1e-4036-8200-af650ea21d54",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Interval occupancy counted

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
    "data": [
        {
            "id": "56fa7b98-56b5-433b-a4f4-247e72729d3a",
            "channel": "Channel-Barcelona",
            "occupancy": 7,
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:27:37.080Z"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
        "timestamp": "2025-06-16T09:53:50Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
                    "channel": "Channel-Barcelona",
                    "occupancy": 7,
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T09:53:50.085Z",
                    "usersJoinedDelta": [
                        "Julia-device",
                        "Keith-device"
                    ]
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "1b526cbb-4e4c-4f19-8f77-ea862d94115c"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "fac22a44-c01e-457e-97ac-808c4cd5a510",
            "invocation": {
                "id": "4cc6398a-629d-4923-83b2-a25938094f83",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
                    "channel": "Channel-Barcelona",
                    "occupancy": 6,
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:59:57.707Z"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "c65b2163-b7aa-4687-b8cf-a995654bb5fa",
                "invocation": {
                    "id": "3646066e-2099-4368-a31b-36c2457c8c1c",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
                    "channel": "Channel-Barcelona",
                    "occupancy": 6,
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-17T12:24:17.708Z"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "85b12038-8a23-4152-9a62-ccdb184e9b01",
                "invocation": {
                    "id": "90c56456-7f1e-4036-8200-af650ea21d54",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

## Mobile Push Notifications

This section lists all event producers from the Mobile Push Notifications source.

### Devices

#### Device removed

##### No Envelope

```js
{
    "id": "12345",
    "action": "remove",
    "device": "device_token_abc",
    "platform": "ios",
    "timestamp": "2024-06-10T12:34:56Z",
    "subKey": "sub-c-xyz",
    "oldDevice": "old_device_token_def"
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
        "timestamp": "2025-06-16T09:53:50Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "12345",
                    "action": "remove",
                    "device": "device_token_abc",
                    "platform": "ios",
                    "timestamp": "2024-06-10T12:34:56Z",
                    "subKey": "sub-c-xyz",
                    "oldDevice": "old_device_token_def"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "1b526cbb-4e4c-4f19-8f77-ea862d94115c"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "fac22a44-c01e-457e-97ac-808c4cd5a510",
            "invocation": {
                "id": "4cc6398a-629d-4923-83b2-a25938094f83",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "12345",
                    "action": "remove",
                    "device": "device_token_abc",
                    "platform": "ios",
                    "timestamp": "2024-06-10T12:34:56Z",
                    "subKey": "sub-c-xyz",
                    "oldDevice": "old_device_token_def"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "c65b2163-b7aa-4687-b8cf-a995654bb5fa",
                "invocation": {
                    "id": "3646066e-2099-4368-a31b-36c2457c8c1c",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "12345",
                    "action": "remove",
                    "device": "device_token_abc",
                    "platform": "ios",
                    "timestamp": "2024-06-10T12:34:56Z",
                    "subKey": "sub-c-xyz",
                    "oldDevice": "old_device_token_def"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "85b12038-8a23-4152-9a62-ccdb184e9b01",
                "invocation": {
                    "id": "90c56456-7f1e-4036-8200-af650ea21d54",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Push error

##### No Envelope

```js
{
    "id": "52301823-51f5-47d7-962c-16ac657f752a",
    "channel": "pn-in.dFVj.lpxY",
    "devices": "",
    "platform": "apns",
    "timestamp": "2025-06-18T04:16:59.353913Z",
    "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
    "state": "error",
    "payload": "APNS payload error: APNS notification exceeds max size"
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
        "timestamp": "2025-06-16T09:53:50Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "52301823-51f5-47d7-962c-16ac657f752a",
                    "channel": "pn-in.dFVj.lpxY",
                    "devices": "",
                    "platform": "apns",
                    "timestamp": "2025-06-18T04:16:59.353913Z",
                    "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
                    "state": "error",
                    "payload": "APNS payload error: APNS notification exceeds max size"
                }
            ]
        }
    },
    "metadata": {
        "pubsub:channel": "Channel-Barcelona",
        "ena:listener": {
            "id": "1b526cbb-4e4c-4f19-8f77-ea862d94115c"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "fac22a44-c01e-457e-97ac-808c4cd5a510",
            "invocation": {
                "id": "4cc6398a-629d-4923-83b2-a25938094f83",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "52301823-51f5-47d7-962c-16ac657f752a",
                    "channel": "pn-in.dFVj.lpxY",
                    "devices": "",
                    "platform": "apns",
                    "timestamp": "2025-06-18T04:16:59.353913Z",
                    "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
                    "state": "error",
                    "payload": "APNS payload error: APNS notification exceeds max size"
                }
            ]
        }
    },
    "metadata": {
        "definitional": [
            {
                "pubsub.channel": "Channel-Barcelona"
            }
        ],
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "c65b2163-b7aa-4687-b8cf-a995654bb5fa",
                "invocation": {
                    "id": "3646066e-2099-4368-a31b-36c2457c8c1c",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
            "data": [
                {
                    "id": "52301823-51f5-47d7-962c-16ac657f752a",
                    "channel": "pn-in.dFVj.lpxY",
                    "devices": "",
                    "platform": "apns",
                    "timestamp": "2025-06-18T04:16:59.353913Z",
                    "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
                    "state": "error",
                    "payload": "APNS payload error: APNS notification exceeds max size"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1b526cbb-4e4c-4f19-8f77-ea862d94115c",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "85b12038-8a23-4152-9a62-ccdb184e9b01",
                "invocation": {
                    "id": "90c56456-7f1e-4036-8200-af650ea21d54",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

## Memberships

This section lists all event producers from the Memberships source.

### CRUD

#### Membership created

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
    "data": [
        {
            "id": "2ca7fef7-6896-4a51-953d-7e4aeb16ec45",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:15:46.035118335Z",
            "eTag": "Afah2qS199e74QE",
            "channelId": "100",
            "userId": "user-123",
            "type": "",
            "status": ""
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "4525d01e-8e75-4c0a-9d44-f6a259bca8ca",
        "timestamp": "2025-06-16T11:31:08Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
            "data": [
                {
                    "id": "4525d01e-8e75-4c0a-9d44-f6a259bca8ca",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:31:08.893307042Z",
                    "eTag": "Afah2qS199e74QE",
                    "channelId": "100",
                    "userId": "User_id7",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "160b4360-a9f8-4962-a25d-d425fbd7286e"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "eb6ef008-5d52-4004-aeae-87287897d05a",
            "invocation": {
                "id": "d753b3a0-459b-488d-b3ae-50b4bf5ed03b",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "17816483-e327-4a54-af19-3ecb5d36c9cb",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
            "data": [
                {
                    "id": "17816483-e327-4a54-af19-3ecb5d36c9cb",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:01:13.704864199Z",
                    "eTag": "Afah2qS199e74QE",
                    "channelId": "123",
                    "userId": "user-123",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "160b4360-a9f8-4962-a25d-d425fbd7286e",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "880a47a2-5e60-4825-bcd4-aed69ee3f264",
                "invocation": {
                    "id": "5a2a18b5-fe05-479e-8f0e-a0d99852c615",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "b5564bc7-7c8c-4da8-9a5a-81be78cefc08",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
            "data": [
                {
                    "id": "b5564bc7-7c8c-4da8-9a5a-81be78cefc08",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-17T12:24:52.733306859Z",
                    "eTag": "Afah2qS199e74QE",
                    "channelId": "channel_5",
                    "userId": "user-123",
                    "type": "",
                    "status": ""
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "160b4360-a9f8-4962-a25d-d425fbd7286e",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "649353d4-61a9-40f2-ab00-18e1236745ff",
                "invocation": {
                    "id": "1e0fc1f9-4595-480e-961d-c50552901c78",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Membership updated

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
    "data": [
        {
            "id": "579e8253-f846-437a-abbd-1d353f07d2cb",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:16:04.950644238Z",
            "eTag": "Ad6Y0N6U1IqLDw",
            "channelId": "123",
            "userId": "user-123",
            "fields": {
                "status": "dfgasd"
            }
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "af6a32e3-4f13-43fa-84e9-2919adc987b7",
        "timestamp": "2025-06-16T11:31:32Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
            "data": [
                {
                    "id": "af6a32e3-4f13-43fa-84e9-2919adc987b7",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:31:32.369887894Z",
                    "eTag": "AeLXu9+02PuzmAE",
                    "channelId": "100",
                    "userId": "User_id7",
                    "properties": {
                        "sdf": ""
                    }
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "b2f75737-349c-4854-9ec9-9468efaca379"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "9bb5fde9-9c56-4e00-9ada-6bc2871fad63",
            "invocation": {
                "id": "01514ffb-2c33-48ab-ad8d-81d7d793304b",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "11ca0c7d-8b28-44f0-9bd8-f0034d816231",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
            "data": [
                {
                    "id": "11ca0c7d-8b28-44f0-9bd8-f0034d816231",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:01:43.659730872Z",
                    "eTag": "AY3Js4admc6wYw",
                    "channelId": "123",
                    "userId": "user-123",
                    "properties": {
                        "custom-field": ""
                    }
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "b2f75737-349c-4854-9ec9-9468efaca379",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "41d927b8-0b5c-4d6d-a332-4ec1b391a476",
                "invocation": {
                    "id": "a515f660-b958-4ba9-9dcf-7ea3ceffa685",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "cbba0435-ca88-408d-a032-fb5ffa3c6590",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
            "data": [
                {
                    "id": "cbba0435-ca88-408d-a032-fb5ffa3c6590",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-17T12:25:51.661738194Z",
                    "eTag": "Afv7lbeolKjQQQ",
                    "channelId": "100",
                    "userId": "user-123",
                    "fields": {
                        "status": "status"
                    }
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "b2f75737-349c-4854-9ec9-9468efaca379",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "ee11be36-f560-4aa9-9c84-1535d56daaa2",
                "invocation": {
                    "id": "97f78b68-f058-4302-a913-d8ccf92c40f1",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```

#### Membership deleted

##### No Envelope

```js
{
    "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
    "data": [
        {
            "id": "7323e044-953d-4bd5-9518-62bf5d3f3502",
            "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
            "timestamp": "2025-06-16T09:16:17.948145898Z",
            "channelId": "123",
            "userId": "user-123"
        }
    ]
}
```

##### V1

```js
{
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
    "event": {
        "id": "8ea56777-031e-4d19-833b-9312c977b786",
        "timestamp": "2025-06-16T11:31:45Z",
        "payload": {
            "schema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
            "data": [
                {
                    "id": "8ea56777-031e-4d19-833b-9312c977b786",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T11:31:45.561577381Z",
                    "channelId": "100",
                    "userId": "User_id7"
                }
            ]
        }
    },
    "metadata": {
        "ena:listener": {
            "id": "1589a5a2-ec55-444f-8073-a7cceb2308db"
        },
        "ena:action": {
            "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
            "instanceId": "00298c9f-ad9b-4c4f-b124-b019fb60e237",
            "invocation": {
                "id": "e8b73b57-ed4a-4d63-bd8f-e0c431ac0ad3",
                "attempt": 0
            }
        }
    }
}
```

##### V2

```js
{
    "event": {
        "id": "683d5f90-acdf-438b-beb2-f48ff37fca2a",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
            "data": [
                {
                    "id": "683d5f90-acdf-438b-beb2-f48ff37fca2a",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:02:00.354843517Z",
                    "channelId": "123",
                    "userId": "user-123"
                }
            ]
        }
    },
    "metadata": {
        "definitional": null,
        "provenance": {
            "listenerId": "1589a5a2-ec55-444f-8073-a7cceb2308db",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "b3793b7a-f22c-4407-8dc5-afc5f6f4bb82",
                "invocation": {
                    "id": "4d5d8ce0-e4d6-47f9-aeec-41efe787bcda",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.0"
}
```

##### V2.1

```js
{
    "event": {
        "id": "462a0c92-66a4-4172-b88e-92e1133a77b5",
        "payload": {
            "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
            "data": [
                {
                    "id": "462a0c92-66a4-4172-b88e-92e1133a77b5",
                    "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
                    "timestamp": "2025-06-16T12:03:50.391226678Z",
                    "channelId": "123",
                    "userId": "User_id"
                }
            ]
        }
    },
    "metadata": {
        "provenance": {
            "listenerId": "1589a5a2-ec55-444f-8073-a7cceb2308db",
            "action": {
                "id": "0159494b-18a3-4c0a-95ab-b12fb0ba73cf",
                "instanceId": "ac866732-cca7-491e-9656-a9ba0c4cfa94",
                "invocation": {
                    "id": "047bb577-dd1a-49c8-87f7-b297d4b30f39",
                    "attempt": 0
                }
            }
        }
    },
    "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json?v=2.1"
}
```