For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/message-types-get-all-by-producer.md. Documentation index: https://www.pubnub.com/llms-full.txt.
messageTypesGetAllByProducer
GET/v2/ena/messages/producers/:producerId/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 for a given producer, make a GET call to the /v2/messages/producers/{producerId}/message-types endpoint using the producerId parameter.
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"
}
]
}