---
source_url: https://www.pubnub.com/docs/admin-api/get-sources
title: getSources
description: Get all available sources of messages generated by the PubNub platform.
---

# getSources

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

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"
    }
  ]
}
```
