For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/message-types-get-all.md. Documentation index: https://www.pubnub.com/llms-full.txt.
messageTypesGetAll
GET/v2/ena/messages/message-types
Each message (event) originates at a given source, like message, user, channel, or notification which lets predefined producers generate events of a given type.
For example, the channel source lets the Presence producer generate messages (events) of different types when a user subscribes to this channel (UserStartedSubscriptionToChannel), stops subscribing to it (UserStoppedSubscriptionToChannel), or when the last user leaves the channel (LastUserLeftChannel).
To get the complete list of message (event) types available, make a GET call to the /v2/messages/message-types endpoint that support query parameters to filter the results by platform, sourceId, producerId, or search (by name).
Request
Example
{
"data": [
{
"id": "string",
"name": "string",
"type": "string",
"version": "string"
}
],
"meta": {
"paging": {
"totalElements": 0,
"totalPages": 0,
"pageSize": 0,
"pageNumber": 0,
"pageOffset": 0
}
},
"errors": [
{
"code": "string",
"message": "string",
"path": "string"
}
]
}