For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/get-sources.md. Documentation index: https://www.pubnub.com/llms-full.txt.
getSources
GET/v2/ena/messages/sources
Get all available sources of messages generated by the PubNub platform.
A source narrows down the area of your application the route input reacts to. Each message (event) originates at a given source, 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, stops subscribing to it, or when the last user leaves the channel.
Sources can include message, user, channel, or notification and identify the root PubNub object that can generate events when modified.
Request
Example
{
"data": [
{
"id": "string",
"name": "string"
}
],
"meta": {
"paging": {
"totalElements": 0,
"totalPages": 0,
"pageSize": 0,
"pageNumber": 0,
"pageOffset": 0
}
},
"errors": [
{
"code": "string",
"message": "string",
"path": "string"
}
]
}