Events & Actions payloads
Events & Actions delivers every event as JSON. The exact shape depends on the event type and on the envelope option you pick for the action, described on Available actions. This page shows all four variants for every event type so you can match what your action receives:
- No Envelope, containing the event's
dataSchemaand adataarray, without the envelope metadata. Every event type uses this layout, and the envelope version set on the action doesn't change it. - V1, an enveloped format that puts the event in an
eventobject next to Events & Actions listener and action metadata. V1 has two layouts. Message sent and File sent use aneventsAndActionsMetadataobject. The other event types use a top-levelschemaand ametadataobject withena:listenerandena:actionkeys, and name the event's schema keyschemainstead ofdataSchema. - V2, an enveloped format that wraps the event in a
metadataobject withprovenance. - V2.1, a refinement of V2.
See Available actions for the current envelope default and selection rules.
A few fields depend on the event or the action, not only on the envelope:
- The channel key is
pubsub:channelin V1 andpubsub.channelin V2. V2.1 doesn't include it. Events without a channel omit it in every version. - In V1 Message sent and File sent payloads,
eventTypeismessage.publishfor both events. - In V1 Message sent and File sent payloads, the samples show
webhookMetadatabecause they come from a Webhook action. Other action types name this object after the action type, for examplekafkaMetadataorsqsMetadata.
The dataSchema and schema values are identifiers, not URLs you can open. Compare them as exact strings to tell event types apart.
Identifier fields vary by event type and envelope. Message and File payloads use senderId; Message Actions and App Context payloads use userId; Presence payloads can contain uuid inside their presence data. These fields hold the User ID value where shown. Use the field in the variant that your action sends.
Payloads are grouped by source, producer, and event type, matching the Event sources reference. Jump to a source:
- Messages: Message sent, Message action created, Message action deleted, File sent
- Users: User state changed in channel, User created, User updated, User deleted
- Channels: Channel created, Channel updated, Channel deleted, First user subscribed to channel, Last user left channel, User started subscription to channel, User stopped subscription to channel, User timed out while subscribing to channel, Interval occupancy counted
- Mobile Push Notifications: Device removed, Push error
- Memberships: Membership created, Membership updated, Membership deleted
Messages
This section lists the payload for every event type in the Messages event source.
Pub/Sub
Message sent
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
3 "data": [
4 {
5 "timestamp": "2025-06-05T12:53:15.888Z",
6 "message": "Message Test",
7 "meta": null,
8 "senderId": "Jack-device",
9 "channel": "Channel-Barcelona",
10 "timetoken": "17491279958880737"
11 }
12 ]
13}
1{
2 "event": {
3 "channel": "my_channel",
4 "eventCategory": "message",
5 "eventType": "message.publish",
6 "eventId": "83e0bdc8-8a00-4831-9727-38439a307484",
7 "eventPayload": {
8 "message": "dfg",
9 "meta": null
10 },
11 "iso8601timestamp": "2025-05-27T07:40:38Z",
12 "subscribeKey": "sub-c-12b1e1ad-5648-4c98-9e34-7ef0e6371ccd",
13 "timetoken": "17483316384504473",
14 "senderId": "elon"
15 },
show all 32 lines1{
2 "event": {
3 "id": "d277cff8-b1b1-476f-a890-b661555ac4f8",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
6 "data": [
7 {
8 "timestamp": "2025-05-27T07:40:49.171Z",
9 "message": "dfg",
10 "meta": null,
11 "senderId": "elon",
12 "timetoken": "17483316491714954"
13 }
14 ]
15 }
show all 36 lines1{
2 "event": {
3 "id": "55ca7f0b-145b-428f-80f7-35f55fd3669d",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
6 "data": [
7 {
8 "timestamp": "2025-05-27T07:41:00.266Z",
9 "message": "dfg",
10 "meta": null,
11 "senderId": "elon",
12 "channel": "my_channel",
13 "timetoken": "17483316602665639"
14 }
15 ]
show all 32 linesMessage Actions
Message action created
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
3 "data": [
4 {
5 "id": "50354a63-8ba3-42b2-93e1-d1bbc17d93a1",
6 "channel": "channel1",
7 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
8 "messageTimetoken": "17500733512701872",
9 "timestamp": "2025-06-16T11:29:21.037191Z",
10 "type": "1",
11 "value": "1",
12 "userId": "User1"
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "50354a63-8ba3-42b2-93e1-d1bbc17d93a1",
5 "timestamp": "2025-06-16T11:29:21Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
8 "data": [
9 {
10 "id": "50354a63-8ba3-42b2-93e1-d1bbc17d93a1",
11 "channel": "channel1",
12 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
13 "messageTimetoken": "17500733512701872",
14 "timestamp": "2025-06-16T11:29:21.037191Z",
15 "type": "1",
show all 36 lines1{
2 "event": {
3 "id": "a0a633d9-3b09-4757-984a-91f1c5f38332",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
6 "data": [
7 {
8 "id": "a0a633d9-3b09-4757-984a-91f1c5f38332",
9 "channel": "channel1",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "messageTimetoken": "17500733512701872",
12 "timestamp": "2025-06-16T11:33:28.252328Z",
13 "type": "3",
14 "value": "3",
15 "userId": "User1"
show all 39 lines1{
2 "event": {
3 "id": "22729eda-a3ec-4b5e-bddc-f6b4d5b42113",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.action.created?v=1.0.0",
6 "data": [
7 {
8 "id": "22729eda-a3ec-4b5e-bddc-f6b4d5b42113",
9 "channel": "channel1",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "messageTimetoken": "17500733512701872",
12 "timestamp": "2025-06-16T12:02:30.119432Z",
13 "type": "4",
14 "value": "4",
15 "userId": "User1"
show all 34 linesMessage action deleted
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
3 "data": [
4 {
5 "id": "580022c7-a3df-4fc2-aa00-556813236ec4",
6 "channel": "test_channel_1",
7 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
8 "messageTimetoken": "17491299520205486",
9 "timestamp": "2025-06-05T13:31:38.148778Z",
10 "type": "Reaction",
11 "value": "true",
12 "userId": "Test Message Actions User"
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "5807c304-43e6-4789-89e0-d3766d68378d",
5 "timestamp": "2025-06-05T13:28:05Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
8 "data": [
9 {
10 "id": "5807c304-43e6-4789-89e0-d3766d68378d",
11 "channel": "test_channel_1",
12 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
13 "messageTimetoken": "17491299520205486",
14 "timestamp": "2025-06-05T13:28:05.412802Z",
15 "type": "Reaction",
show all 36 lines1{
2 "event": {
3 "id": "63a49207-e963-4802-b42b-389aa529ace5",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "63a49207-e963-4802-b42b-389aa529ace5",
9 "channel": "test_channel_1",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "messageTimetoken": "17491299520205486",
12 "timestamp": "2025-06-05T13:29:12.523015Z",
13 "type": "Reaction1",
14 "value": "true",
15 "userId": "Test Message Actions User"
show all 39 lines1{
2 "event": {
3 "id": "2a8f72af-6453-409d-8bfe-546a2add2597",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.action.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "2a8f72af-6453-409d-8bfe-546a2add2597",
9 "channel": "test_channel_1",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "messageTimetoken": "17491299520205486",
12 "timestamp": "2025-06-05T13:30:09.399706Z",
13 "type": "Reaction1",
14 "value": "true",
15 "userId": "Test Message Actions User"
show all 34 linesFiles
File sent
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
3 "data": [
4 {
5 "channel": "file-transfer-demo",
6 "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
7 "fileName": "testfile1.txt",
8 "message": {
9 "example": "message"
10 },
11 "meta": null,
12 "senderId": "Test Files User",
13 "timestamp": "2025-06-05T13:18:17.665Z",
14 "timetoken": "17491294976652491"
15 }
show all 17 lines1{
2 "event": {
3 "channel": "file-transfer-demo",
4 "eventCategory": "message",
5 "eventType": "message.publish",
6 "eventId": "21c70465-d9ae-4441-b892-cfe1843e9ad2",
7 "eventPayload": {
8 "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
9 "fileName": "testfile1.txt",
10 "message": {
11 "example": "message"
12 },
13 "meta": null
14 },
15 "iso8601timestamp": "2025-06-05T13:17:12Z",
show all 36 lines1{
2 "event": {
3 "id": "7e79fdd7-4b65-4486-b893-017b37e2f179",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
6 "data": [
7 {
8 "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
9 "fileName": "testfile1.txt",
10 "message": {
11 "example": "message"
12 },
13 "meta": null,
14 "senderId": "Test Files User",
15 "timestamp": "2025-06-05T13:18:17.665Z",
show all 40 lines1{
2 "event": {
3 "id": "31a61371-8d6d-432c-bf70-3bd348c6a3eb",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/messages.pubsub.publish?v=1.0.0",
6 "data": [
7 {
8 "channel": "file-transfer-demo",
9 "fileId": "3ec34dbc-3b6f-443f-8991-427a327abd7e",
10 "fileName": "testfile1.txt",
11 "message": {
12 "example": "message"
13 },
14 "meta": null,
15 "senderId": "Test Files User",
show all 36 linesUsers
This section lists the payload for every event type in the Users event source.
Presence
User state changed in channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
3 "data": [
4 {
5 "id": "889e9b63-0d4d-4d3c-808d-b226f5dc6504",
6 "channel": "Channel-Barcelona",
7 "userId": "Jack-device",
8 "data": {
9 "action": "state-change",
10 "uuid": "Jack-device",
11 "timestamp": "1749128108",
12 "precise_timestamp": "1749128108494",
13 "data": "{\"state\":\"test-state\"}",
14 "occupancy": "0"
15 },
show all 20 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "203d20ca-c99b-41a8-bda2-f45c857c6035",
5 "timestamp": "2025-06-05T12:57:57Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
8 "data": [
9 {
10 "id": "203d20ca-c99b-41a8-bda2-f45c857c6035",
11 "channel": "asd",
12 "userId": "asd",
13 "data": {
14 "action": "state-change",
15 "uuid": "asd",
show all 41 lines1{
2 "event": {
3 "id": "5392032a-9db5-4047-9f86-2f98679ad73f",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
6 "data": [
7 {
8 "id": "5392032a-9db5-4047-9f86-2f98679ad73f",
9 "channel": "asd",
10 "userId": "asd",
11 "data": {
12 "action": "state-change",
13 "uuid": "asd",
14 "timestamp": "1749128327",
15 "precise_timestamp": "1749128327604",
show all 44 lines1{
2 "event": {
3 "id": "cc464354-7357-4113-9bba-2e0d7fafdc31",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.user.state.in.changed?v=1.0.0",
6 "data": [
7 {
8 "id": "cc464354-7357-4113-9bba-2e0d7fafdc31",
9 "channel": "asd",
10 "userId": "asd",
11 "data": {
12 "action": "state-change",
13 "uuid": "asd",
14 "timestamp": "1749128351",
15 "precise_timestamp": "1749128351906",
show all 39 linesCRUD
User created
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
3 "data": [
4 {
5 "id": "9dc756ca-0be4-4c82-bc46-84e1a08782fb",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-05T13:11:54.517788662Z",
8 "eTag": "520565d0095710aaac47b437a0b51c4f",
9 "userId": "User_id",
10 "name": "User Name",
11 "email": "",
12 "profileUrl": "",
13 "externalId": "",
14 "type": "",
15 "status": ""
show all 18 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "8de8f5e1-ee4b-4439-a095-5326ad504e60",
5 "timestamp": "2025-06-05T13:14:41Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/user.created?v=1.0.0",
8 "data": [
9 {
10 "id": "8de8f5e1-ee4b-4439-a095-5326ad504e60",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-05T13:14:41.797913182Z",
13 "eTag": "a9fa9a3db8cd88d66e68d94f043b638c",
14 "userId": "User_id5",
15 "name": "User Name5",
show all 38 lines1{
2 "event": {
3 "id": "d2fed5e9-d1d0-45e3-b031-420dd5939d3c",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
6 "data": [
7 {
8 "id": "d2fed5e9-d1d0-45e3-b031-420dd5939d3c",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-05T13:12:36.181052533Z",
11 "eTag": "97553458609bcdd58c05936d913a6511",
12 "userId": "User_id2",
13 "name": "User Name2",
14 "email": "",
15 "profileUrl": "",
show all 38 lines1{
2 "event": {
3 "id": "9dc756ca-0be4-4c82-bc46-84e1a08782fb",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.created?v=1.0.0",
6 "data": [
7 {
8 "id": "9dc756ca-0be4-4c82-bc46-84e1a08782fb",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-05T13:11:54.517788662Z",
11 "eTag": "520565d0095710aaac47b437a0b51c4f",
12 "userId": "User_id",
13 "name": "User Name",
14 "email": "",
15 "profileUrl": "",
show all 37 linesUser updated
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
3 "data": [
4 {
5 "id": "7044631a-f86e-4df3-9303-9bb490f4b64f",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-05T13:35:14.735278571Z",
8 "eTag": "87e4956864cd39abe4ceaea8a22f375b",
9 "userId": "User_id",
10 "fields": {
11 "name": "User Name Updated"
12 }
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "bf4c7a01-c77f-45a8-93fc-d6e4837eb8b1",
5 "timestamp": "2025-06-05T13:35:45Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
8 "data": [
9 {
10 "id": "bf4c7a01-c77f-45a8-93fc-d6e4837eb8b1",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-05T13:35:45.087128767Z",
13 "eTag": "ce75db33843d362991fd1629e8652e03",
14 "userId": "User_id",
15 "fields": {
show all 35 lines1{
2 "event": {
3 "id": "06db7d99-d98f-42b9-85a4-59f7f05d8c61",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "06db7d99-d98f-42b9-85a4-59f7f05d8c61",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-05T13:36:13.817245178Z",
11 "eTag": "1e985155342411beb59eaaae686a6eec",
12 "userId": "User_id",
13 "fields": {
14 "name": "User Name Updated3"
15 }
show all 35 lines1{
2 "event": {
3 "id": "e8192dd3-46e3-4a9c-b692-e215c84d34d6",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "e8192dd3-46e3-4a9c-b692-e215c84d34d6",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-05T13:36:46.736997633Z",
11 "eTag": "26efb626b1c06dd7d8aec7bcab808986",
12 "userId": "User_id",
13 "fields": {
14 "name": "User Name Updated4"
15 }
show all 34 linesUser deleted
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
3 "data": [
4 {
5 "id": "df0cdbe6-7505-49e2-9a24-9307174b1d38",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:09:16.475127588Z",
8 "userId": "User_id6"
9 }
10 ]
11}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "032a2109-bff4-4b61-b228-78d7a52c6761",
5 "timestamp": "2025-06-16T11:29:46Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
8 "data": [
9 {
10 "id": "032a2109-bff4-4b61-b228-78d7a52c6761",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:29:46.281535176Z",
13 "userId": "User_id7"
14 }
15 ]
show all 31 lines1{
2 "event": {
3 "id": "29d404cc-e1e6-4764-b7a2-99dc4f056df2",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "29d404cc-e1e6-4764-b7a2-99dc4f056df2",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T11:33:54.887399958Z",
11 "userId": "User_id8"
12 }
13 ]
14 }
15 },
show all 31 lines1{
2 "event": {
3 "id": "4a8fc29b-9e39-4516-baba-30c88993b0e3",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/user.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "4a8fc29b-9e39-4516-baba-30c88993b0e3",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:02:48.420320848Z",
11 "userId": "User_id8"
12 }
13 ]
14 }
15 },
show all 30 linesChannels
This section lists the payload for every event type in the Channels event source.
CRUD
Channel created
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
3 "data": [
4 {
5 "id": "e2467259-b0f0-4e64-ac9f-b9a44cd8a7c4",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:10:24.844778615Z",
8 "eTag": "1e5c41f43cca3f3643524175268cddf6",
9 "channelId": "channel_1",
10 "name": "channel_1",
11 "description": "",
12 "type": "",
13 "status": ""
14 }
15 ]
show all 16 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "9e8ce6af-f750-4aa5-ba15-b4e26bd5c4a9",
5 "timestamp": "2025-06-16T11:30:11Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
8 "data": [
9 {
10 "id": "9e8ce6af-f750-4aa5-ba15-b4e26bd5c4a9",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:30:11.412327865Z",
13 "eTag": "dbe1b43a5159bcf3b931a7449042152f",
14 "channelId": "channel_3",
15 "name": "channel_3",
show all 36 lines1{
2 "event": {
3 "id": "551aa75c-7f4e-415c-8e40-1a401bc64deb",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
6 "data": [
7 {
8 "id": "551aa75c-7f4e-415c-8e40-1a401bc64deb",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T11:34:19.003868780Z",
11 "eTag": "1d44649f447d6a30fccd98790bb6ee9d",
12 "channelId": "channel_4",
13 "name": "channel_4",
14 "description": "",
15 "type": "",
show all 36 lines1{
2 "event": {
3 "id": "9ef4e9ae-7937-4ab9-adab-4902bafc84d9",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.created?v=1.0.0",
6 "data": [
7 {
8 "id": "9ef4e9ae-7937-4ab9-adab-4902bafc84d9",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:03:18.711236330Z",
11 "eTag": "7422fe5544f74f16cdbdc1e1849c8f7b",
12 "channelId": "channel_5",
13 "name": "channel_5",
14 "description": "",
15 "type": "",
show all 35 linesChannel updated
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
3 "data": [
4 {
5 "id": "7ca8f612-ca63-406e-add3-4510bf55558b",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:11:03.439309673Z",
8 "eTag": "eab2bd4c72aadf93e06d9d9084668e6a",
9 "channelId": "channel_1",
10 "fields": {
11 "space": "channel_12"
12 }
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "12a077bf-b0a2-459d-8e1d-dfa8a5cb5d61",
5 "timestamp": "2025-06-16T11:30:28Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
8 "data": [
9 {
10 "id": "12a077bf-b0a2-459d-8e1d-dfa8a5cb5d61",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:30:28.613146058Z",
13 "eTag": "29055e7eb043ae5cb547ee755a2f683a",
14 "channelId": "channel_3",
15 "fields": {
show all 35 lines1{
2 "event": {
3 "id": "01baa313-b05f-412d-868a-1927d14fbe4e",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "01baa313-b05f-412d-868a-1927d14fbe4e",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T11:34:32.051428509Z",
11 "eTag": "a683ee7c08293f69432c83edf9540d66",
12 "channelId": "channel_4",
13 "fields": {
14 "space": "channel_41"
15 }
show all 35 lines1{
2 "event": {
3 "id": "ca5ba27a-1e44-4268-a839-d46dd71cb9fe",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "ca5ba27a-1e44-4268-a839-d46dd71cb9fe",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:03:38.758837834Z",
11 "eTag": "a359f2085975452ff88676fa15fc40a4",
12 "channelId": "channel_5",
13 "fields": {
14 "space": "channel_51"
15 }
show all 34 linesChannel deleted
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
3 "data": [
4 {
5 "id": "63982247-db79-43b9-bf3a-39e647f23292",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:11:15.215130220Z",
8 "channelId": "channel_1"
9 }
10 ]
11}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "114cebca-ad70-4a15-97f6-2195db539d9c",
5 "timestamp": "2025-06-16T11:30:45Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
8 "data": [
9 {
10 "id": "114cebca-ad70-4a15-97f6-2195db539d9c",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:30:45.260591240Z",
13 "channelId": "channel_3"
14 }
15 ]
show all 31 lines1{
2 "event": {
3 "id": "acfc66ac-5863-4445-807b-8f1836208060",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "acfc66ac-5863-4445-807b-8f1836208060",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T11:34:44.451194387Z",
11 "channelId": "channel_4"
12 }
13 ]
14 }
15 },
show all 31 lines1{
2 "event": {
3 "id": "52b3ac61-75c8-4dab-8d6e-5196840dff37",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/channel.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "52b3ac61-75c8-4dab-8d6e-5196840dff37",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:03:50.391162543Z",
11 "channelId": "123"
12 }
13 ]
14 }
15 },
show all 30 linesPresence
First user subscribed to channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
3 "data": [
4 {
5 "id": "0dc3f00a-06d2-4849-b511-ea9e1817c461",
6 "timestamp": "2025-06-16T09:11:26.809Z",
7 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
8 "channel": "Channel-Barcelona"
9 }
10 ]
11}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "bcbd8352-1f3b-49e8-9f0c-cbf30870fced",
5 "timestamp": "2025-06-16T09:53:39Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
8 "data": [
9 {
10 "id": "bcbd8352-1f3b-49e8-9f0c-cbf30870fced",
11 "timestamp": "2025-06-16T09:53:39.715Z",
12 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
13 "channel": "Channel-Barcelona"
14 }
15 ]
show all 32 lines1{
2 "event": {
3 "id": "b558dab1-8d24-425a-b6a8-7f17c0f595b6",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
6 "data": [
7 {
8 "id": "b558dab1-8d24-425a-b6a8-7f17c0f595b6",
9 "timestamp": "2025-06-16T11:35:00.205Z",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "channel": "Channel-Barcelona"
12 }
13 ]
14 }
15 },
show all 35 lines1{
2 "event": {
3 "id": "1b071b4a-245b-493e-9c45-516b94a3f647",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.active?v=1.0.0",
6 "data": [
7 {
8 "id": "1b071b4a-245b-493e-9c45-516b94a3f647",
9 "timestamp": "2025-06-16T12:04:27.220Z",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "channel": "Channel-Barcelona"
12 }
13 ]
14 }
15 },
show all 30 linesLast user left channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
3 "data": [
4 {
5 "id": "bd688fba-d66e-4900-b3ae-902db0c092e0",
6 "timestamp": "2025-06-16T12:09:27.254Z",
7 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
8 "channel": "Channel-Barcelona"
9 }
10 ]
11}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "0f0a270d-a86c-4186-b7ed-e41f9fcd95a5",
5 "timestamp": "2025-06-16T09:55:00Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
8 "data": [
9 {
10 "id": "0f0a270d-a86c-4186-b7ed-e41f9fcd95a5",
11 "timestamp": "2025-06-16T09:55:00.104Z",
12 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
13 "channel": "Channel-Barcelona"
14 }
15 ]
show all 32 lines1{
2 "event": {
3 "id": "ed33c79d-dfc1-43a7-9e34-0c1a9cc8089d",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
6 "data": [
7 {
8 "id": "ed33c79d-dfc1-43a7-9e34-0c1a9cc8089d",
9 "timestamp": "2025-06-16T11:40:00.420Z",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "channel": "Channel-Barcelona"
12 }
13 ]
14 }
15 },
show all 35 lines1{
2 "event": {
3 "id": "bd688fba-d66e-4900-b3ae-902db0c092e0",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.state.inactive?v=1.0.0",
6 "data": [
7 {
8 "id": "bd688fba-d66e-4900-b3ae-902db0c092e0",
9 "timestamp": "2025-06-16T12:09:27.254Z",
10 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
11 "channel": "Channel-Barcelona"
12 }
13 ]
14 }
15 },
show all 30 linesUser started subscription to channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
3 "data": [
4 {
5 "id": "a36773df-d828-4d40-99ab-26b8ebe46e41",
6 "channel": "Channel-Barcelona",
7 "userId": "Jack-device",
8 "occupancy": 2,
9 "data": {
10 "occupancy": "2",
11 "action": "join",
12 "timestamp": "1750065086",
13 "precise_timestamp": "1750065086809",
14 "uuid": "Jack-device"
15 },
show all 20 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "9165aa63-9211-4ba0-939c-762b69474409",
5 "timestamp": "2025-06-16T09:53:39Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
8 "data": [
9 {
10 "id": "9165aa63-9211-4ba0-939c-762b69474409",
11 "channel": "Channel-Barcelona",
12 "userId": "Amanda-device",
13 "occupancy": 2,
14 "data": {
15 "action": "join",
show all 41 lines1{
2 "event": {
3 "id": "3385d6fa-3e3a-4ad9-8b85-64468adc9a78",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
6 "data": [
7 {
8 "id": "3385d6fa-3e3a-4ad9-8b85-64468adc9a78",
9 "channel": "Channel-Barcelona",
10 "userId": "Jack-device",
11 "occupancy": 1,
12 "data": {
13 "action": "join",
14 "timestamp": "1750073700",
15 "precise_timestamp": "1750073700205",
show all 44 lines1{
2 "event": {
3 "id": "a9726eba-b514-472b-a6a7-13cbe06a1975",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.joined?v=1.0.0",
6 "data": [
7 {
8 "id": "a9726eba-b514-472b-a6a7-13cbe06a1975",
9 "channel": "Channel-Barcelona",
10 "userId": "Jack-device",
11 "occupancy": 1,
12 "data": {
13 "timestamp": "1750075467",
14 "occupancy": "1",
15 "action": "join",
show all 39 linesUser stopped subscription to channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
3 "data": [
4 {
5 "id": "2cf3a1cb-6039-4745-a2e0-7c0b40051bb4",
6 "channel": "Channel-Barcelona",
7 "userId": "Amanda-device",
8 "occupancy": 1,
9 "data": {
10 "uuid": "Amanda-device",
11 "precise_timestamp": "1750065124663",
12 "timestamp": "1750065124",
13 "occupancy": "1",
14 "action": "leave"
15 },
show all 20 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "6bab3d0e-e920-45a0-b960-3c8d1c642ec0",
5 "timestamp": "2025-06-16T09:54:50Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
8 "data": [
9 {
10 "id": "6bab3d0e-e920-45a0-b960-3c8d1c642ec0",
11 "channel": "Channel-Barcelona",
12 "userId": "Amanda-device",
13 "occupancy": 5,
14 "data": {
15 "occupancy": "5",
show all 41 lines1{
2 "event": {
3 "id": "1be3c8a7-c607-428b-9b77-06fb23dccddb",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
6 "data": [
7 {
8 "id": "1be3c8a7-c607-428b-9b77-06fb23dccddb",
9 "channel": "Channel-Barcelona",
10 "userId": "Jack-device",
11 "data": {
12 "uuid": "Jack-device",
13 "timestamp": "1750073720",
14 "precise_timestamp": "1750073720101",
15 "occupancy": "0",
show all 43 lines1{
2 "event": {
3 "id": "0d5055b9-d0c4-4cc3-b007-9e5142607623",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.channel.left?v=1.0.0",
6 "data": [
7 {
8 "id": "0d5055b9-d0c4-4cc3-b007-9e5142607623",
9 "channel": "Channel-Barcelona",
10 "userId": "Jack-device",
11 "data": {
12 "action": "leave",
13 "timestamp": "1750075493",
14 "occupancy": "0",
15 "uuid": "Jack-device",
show all 38 linesUser timed out while subscribing to channel
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.user.timedout.in.channel?v=1.0.0",
3 "data": [
4 {
5 "channelId": "meeting-9xs243ia-attendees",
6 "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
7 "occupancy": 0,
8 "data": {}
9 }
10 ]
11}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
5 "timestamp": "2025-06-16T09:53:50Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.user.timedout.in.channel?v=1.0.0",
8 "data": [
9 {
10 "channelId": "meeting-9xs243ia-attendees",
11 "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
12 "occupancy": 0,
13 "data": {}
14 }
15 ]
show all 32 lines1{
2 "event": {
3 "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.timedout.in.channel?v=1.0.0",
6 "data": [
7 {
8 "channelId": "meeting-9xs243ia-attendees",
9 "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
10 "occupancy": 0,
11 "data": {}
12 }
13 ]
14 }
15 },
show all 35 lines1{
2 "event": {
3 "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.user.timedout.in.channel?v=1.0.0",
6 "data": [
7 {
8 "channelId": "meeting-9xs243ia-attendees",
9 "userId": "b631fe64-4d84-488e-8315-827f91400d1e",
10 "occupancy": 0,
11 "data": {}
12 }
13 ]
14 }
15 },
show all 30 linesInterval occupancy counted
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
3 "data": [
4 {
5 "id": "56fa7b98-56b5-433b-a4f4-247e72729d3a",
6 "channel": "Channel-Barcelona",
7 "occupancy": 7,
8 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
9 "timestamp": "2025-06-16T09:27:37.080Z"
10 }
11 ]
12}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
5 "timestamp": "2025-06-16T09:53:50Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
8 "data": [
9 {
10 "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
11 "channel": "Channel-Barcelona",
12 "occupancy": 7,
13 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
14 "timestamp": "2025-06-16T09:53:50.085Z",
15 "usersJoinedDelta": [
show all 37 lines1{
2 "event": {
3 "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
6 "data": [
7 {
8 "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
9 "channel": "Channel-Barcelona",
10 "occupancy": 6,
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:59:57.707Z"
13 }
14 ]
15 }
show all 36 lines1{
2 "event": {
3 "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/presence.channel.occupancy.counted?v=1.0.0",
6 "data": [
7 {
8 "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
9 "channel": "Channel-Barcelona",
10 "occupancy": 6,
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-17T12:24:17.708Z"
13 }
14 ]
15 }
show all 31 linesMobile Push Notifications
This section lists the payload for every event type in the Mobile Push Notifications event source.
Devices
Device removed
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/push.device.removed?v=1.0.0",
3 "data": [
4 {
5 "id": "12345",
6 "action": "remove",
7 "device": "device_token_abc",
8 "platform": "ios",
9 "timestamp": "2024-06-10T12:34:56Z",
10 "subKey": "sub-c-xyz",
11 "oldDevice": "old_device_token_def"
12 }
13 ]
14}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
5 "timestamp": "2025-06-16T09:53:50Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/push.device.removed?v=1.0.0",
8 "data": [
9 {
10 "id": "12345",
11 "action": "remove",
12 "device": "device_token_abc",
13 "platform": "ios",
14 "timestamp": "2024-06-10T12:34:56Z",
15 "subKey": "sub-c-xyz",
show all 34 lines1{
2 "event": {
3 "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/push.device.removed?v=1.0.0",
6 "data": [
7 {
8 "id": "12345",
9 "action": "remove",
10 "device": "device_token_abc",
11 "platform": "ios",
12 "timestamp": "2024-06-10T12:34:56Z",
13 "subKey": "sub-c-xyz",
14 "oldDevice": "old_device_token_def"
15 }
show all 34 lines1{
2 "event": {
3 "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/push.device.removed?v=1.0.0",
6 "data": [
7 {
8 "id": "12345",
9 "action": "remove",
10 "device": "device_token_abc",
11 "platform": "ios",
12 "timestamp": "2024-06-10T12:34:56Z",
13 "subKey": "sub-c-xyz",
14 "oldDevice": "old_device_token_def"
15 }
show all 33 linesPush error
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/push.message.sending.failed?v=1.0.0",
3 "data": [
4 {
5 "id": "52301823-51f5-47d7-962c-16ac657f752a",
6 "channel": "pn-in.dFVj.lpxY",
7 "devices": "",
8 "platform": "apns",
9 "timestamp": "2025-06-18T04:16:59.353913Z",
10 "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
11 "state": "error",
12 "payload": "APNS payload error: APNS notification exceeds max size"
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "37e53fc9-cea7-4fe5-9289-efcd2cd3cc3f",
5 "timestamp": "2025-06-16T09:53:50Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/push.message.sending.failed?v=1.0.0",
8 "data": [
9 {
10 "id": "52301823-51f5-47d7-962c-16ac657f752a",
11 "channel": "pn-in.dFVj.lpxY",
12 "devices": "",
13 "platform": "apns",
14 "timestamp": "2025-06-18T04:16:59.353913Z",
15 "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
show all 36 lines1{
2 "event": {
3 "id": "10ebb8da-9268-4f00-9d8c-6b7559a4a091",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/push.message.sending.failed?v=1.0.0",
6 "data": [
7 {
8 "id": "52301823-51f5-47d7-962c-16ac657f752a",
9 "channel": "pn-in.dFVj.lpxY",
10 "devices": "",
11 "platform": "apns",
12 "timestamp": "2025-06-18T04:16:59.353913Z",
13 "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
14 "state": "error",
15 "payload": "APNS payload error: APNS notification exceeds max size"
show all 39 lines1{
2 "event": {
3 "id": "e2d4bb46-12a0-4fde-83a4-46c8cd4c7c14",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/push.message.sending.failed?v=1.0.0",
6 "data": [
7 {
8 "id": "52301823-51f5-47d7-962c-16ac657f752a",
9 "channel": "pn-in.dFVj.lpxY",
10 "devices": "",
11 "platform": "apns",
12 "timestamp": "2025-06-18T04:16:59.353913Z",
13 "subKey": "sub-c-a5015666-3dd3-42df-8074-d37d647e8fe9",
14 "state": "error",
15 "payload": "APNS payload error: APNS notification exceeds max size"
show all 34 linesMemberships
This section lists the payload for every event type in the Memberships event source.
CRUD
Membership created
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
3 "data": [
4 {
5 "id": "2ca7fef7-6896-4a51-953d-7e4aeb16ec45",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:15:46.035118335Z",
8 "eTag": "Afah2qS199e74QE",
9 "channelId": "100",
10 "userId": "user-123",
11 "type": "",
12 "status": ""
13 }
14 ]
15}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "4525d01e-8e75-4c0a-9d44-f6a259bca8ca",
5 "timestamp": "2025-06-16T11:31:08Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
8 "data": [
9 {
10 "id": "4525d01e-8e75-4c0a-9d44-f6a259bca8ca",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:31:08.893307042Z",
13 "eTag": "Afah2qS199e74QE",
14 "channelId": "100",
15 "userId": "User_id7",
show all 35 lines1{
2 "event": {
3 "id": "17816483-e327-4a54-af19-3ecb5d36c9cb",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
6 "data": [
7 {
8 "id": "17816483-e327-4a54-af19-3ecb5d36c9cb",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:01:13.704864199Z",
11 "eTag": "Afah2qS199e74QE",
12 "channelId": "123",
13 "userId": "user-123",
14 "type": "",
15 "status": ""
show all 35 lines1{
2 "event": {
3 "id": "b5564bc7-7c8c-4da8-9a5a-81be78cefc08",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.created?v=1.0.0",
6 "data": [
7 {
8 "id": "b5564bc7-7c8c-4da8-9a5a-81be78cefc08",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-17T12:24:52.733306859Z",
11 "eTag": "Afah2qS199e74QE",
12 "channelId": "channel_5",
13 "userId": "user-123",
14 "type": "",
15 "status": ""
show all 34 linesMembership updated
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
3 "data": [
4 {
5 "id": "579e8253-f846-437a-abbd-1d353f07d2cb",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:16:04.950644238Z",
8 "eTag": "Ad6Y0N6U1IqLDw",
9 "channelId": "123",
10 "userId": "user-123",
11 "fields": {
12 "status": "dfgasd"
13 }
14 }
15 ]
show all 16 lines1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "af6a32e3-4f13-43fa-84e9-2919adc987b7",
5 "timestamp": "2025-06-16T11:31:32Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
8 "data": [
9 {
10 "id": "af6a32e3-4f13-43fa-84e9-2919adc987b7",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:31:32.369887894Z",
13 "eTag": "AeLXu9+02PuzmAE",
14 "channelId": "100",
15 "userId": "User_id7",
show all 36 lines1{
2 "event": {
3 "id": "11ca0c7d-8b28-44f0-9bd8-f0034d816231",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "11ca0c7d-8b28-44f0-9bd8-f0034d816231",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:01:43.659730872Z",
11 "eTag": "AY3Js4admc6wYw",
12 "channelId": "123",
13 "userId": "user-123",
14 "properties": {
15 "custom-field": ""
show all 36 lines1{
2 "event": {
3 "id": "cbba0435-ca88-408d-a032-fb5ffa3c6590",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.updated?v=1.0.0",
6 "data": [
7 {
8 "id": "cbba0435-ca88-408d-a032-fb5ffa3c6590",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-17T12:25:51.661738194Z",
11 "eTag": "Afv7lbeolKjQQQ",
12 "channelId": "100",
13 "userId": "user-123",
14 "fields": {
15 "status": "status"
show all 35 linesMembership deleted
- No Envelope
- V1
- V2
- V2.1
1{
2 "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
3 "data": [
4 {
5 "id": "7323e044-953d-4bd5-9518-62bf5d3f3502",
6 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
7 "timestamp": "2025-06-16T09:16:17.948145898Z",
8 "channelId": "123",
9 "userId": "user-123"
10 }
11 ]
12}
1{
2 "schema": "https://www.pubnub.com/schemas/edp.ena.event?schema-instance+json",
3 "event": {
4 "id": "8ea56777-031e-4d19-833b-9312c977b786",
5 "timestamp": "2025-06-16T11:31:45Z",
6 "payload": {
7 "schema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
8 "data": [
9 {
10 "id": "8ea56777-031e-4d19-833b-9312c977b786",
11 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
12 "timestamp": "2025-06-16T11:31:45.561577381Z",
13 "channelId": "100",
14 "userId": "User_id7"
15 }
show all 32 lines1{
2 "event": {
3 "id": "683d5f90-acdf-438b-beb2-f48ff37fca2a",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "683d5f90-acdf-438b-beb2-f48ff37fca2a",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:02:00.354843517Z",
11 "channelId": "123",
12 "userId": "user-123"
13 }
14 ]
15 }
show all 32 lines1{
2 "event": {
3 "id": "462a0c92-66a4-4172-b88e-92e1133a77b5",
4 "payload": {
5 "dataSchema": "pubnub.com/schemas/events/membership.deleted?v=1.0.0",
6 "data": [
7 {
8 "id": "462a0c92-66a4-4172-b88e-92e1133a77b5",
9 "subKey": "sub-c-b0451d-1337-4b42-bee0-1905c7c02db",
10 "timestamp": "2025-06-16T12:03:50.391226678Z",
11 "channelId": "123",
12 "userId": "User_id"
13 }
14 ]
15 }
show all 31 linesNext steps
- Events & Actions. Understand the event, listener, and action model these payloads come from.
- Event sources. Look up which event types each source produces.
- Available actions. Pick the envelope version an action uses, and see the retry and batching rules that apply to the payload it sends.
- Configure Events & Actions. Create a listener and pick an envelope option for its action.