Messages Introduction
Messages
This group of endpoints provides metadata about available event types in the PubNub platform.
The Messages endpoints serve as a discovery API, helping you explore what events can be monitored by Route Inputs. This is a read-only catalog that organizes PubNub events in a hierarchical structure: Sources → Producers → Message Types. Use these endpoints to understand what events are available before creating your Route Inputs and Routes.
Metadata Hierarchy:
- Sources - Root PubNub objects that generate events (e.g., message, user, channel, notification)
- Producers - Categories of events generated on a source (e.g., Presence API, PubSub API)
- Message Types - Specific event types with detailed schemas (e.g., MessageSent, UserJoinedChannel)
- Filters - Available filtering options for each message type
Key Features:
- Discover all available event sources and types
- Browse message types by producer or search by keyword
- View available filters for precise event targeting
- Query available action types (router integrations) for your account
- Understand event schemas before configuring Route Inputs
Typical Discovery Flow:
- List sources to see top-level event categories
- Explore producers within a source
- Find specific message types that match your use case
- Review available filters for precise event matching
- Use this information to create targeted Route Inputs
GET producersGetAll
Get all available producers for a selected source of messages generated by the PubNub platform.
GET getSources
Get all available sources of messages generated by the PubNub platform.
GET messageTypesGetAllByProducer
Each message (event) originates at a given source, like `message`, `user`, `channel`, or `notification` which lets predefined producers generate events of a given type.
GET filtersGetAll
Get information on all filters available for a given message (event) type.
GET messageTypesGetAll
Each message (event) originates at a given source, like `message`, `user`, `channel`, or `notification` which lets predefined producers generate events of a given type.
GET actionTypesGetAll
Get all types of routers ([actions](/docs/serverless/events-and-actions/overview#actions)) existing on your PubNub's `account_id` created through the `/v2/routes/routers` call.