> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/api-reference/rest-api/listeners.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# REST API listeners

Endpoints to invite, activate, deactivate, and verify private feed listeners in the REST API v1.

Use this reference when you manage the listeners of a protected (private) podcast from your own system. Paths are relative to `https://app.podigee.com/api/v1`.

The listener endpoints work on the listeners of the podcasts that the credential's account owns.

## Endpoints

| Method   | Path                                         | Purpose                                                 | Notable parameters                            | Response notes                                                                                                                                                                        |
| -------- | -------------------------------------------- | ------------------------------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `GET`    | `/listeners`                                 | List listeners                                          | `podcast_id` (one id)                         | Without `podcast_id`, returns the network listeners of the account owner, not the listeners of every podcast. `400` with `podcast_id must be a single id.` when you send several ids. |
| `GET`    | `/listeners/{listener_id}`                   | Read a listener                                         | none                                          |                                                                                                                                                                                       |
| `POST`   | `/listeners`                                 | Invite a listener                                       | `podcast_id`, `username`, `email`, `password` | The response includes the listener's feed `token`.                                                                                                                                    |
| `DELETE` | `/listeners/{listener_id}`                   | Delete a listener                                       | none                                          |                                                                                                                                                                                       |
| `POST`   | `/listeners/{podcast_id}/authorize`          | Verify a listener's credentials from an external system | Listener credentials                          | `401` with `Listener not authorized`; `404` with `Listener not found`.                                                                                                                |
| `POST`   | `/listeners/{listener_id}/activate`          | Set the listener status to active                       | none                                          |                                                                                                                                                                                       |
| `POST`   | `/listeners/{listener_id}/deactivate`        | Set the listener status to inactive                     | none                                          |                                                                                                                                                                                       |
| `POST`   | `/listeners/{listener_id}/password_reset`    | Send a password reset email to the listener             | none                                          |                                                                                                                                                                                       |
| `POST`   | `/listeners/{listener_id}/resend_invitation` | Send the invitation email again                         | none                                          | Only for a listener whose invitation is pending or was resent; otherwise `422` with `Listener don't have pending invitation`.                                                         |

## Invite a listener

`POST /listeners` needs `podcast_id` and an `email` or a `username`.

| Request                                                     | Result                                                                                                                                  |
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Without `password`                                          | Podigee sends an invitation email to the listener. The listener sets a password. The status is `pending`.                               |
| With `password`                                             | Podigee sends no invitation email. The status is `active`. Your system gives the access data to the listener.                           |
| An email address that a listener of the podcast already has | `422` with `Creation not possible: limit reached or listener not unique.` The same message appears when the plan has no listeners left. |

The response contains the `token` of the listener. The personal feed address of the listener is the feed address of the podcast with the parameter `auth=<token>`. Handle the token and the personal feed address like a password.

## Verify a listener

`POST /listeners/{podcast_id}/authorize` checks the password of one listener. Send the access data in an object with the name `listener`:

```json
{"listener": {"email": "riley.park@example.com", "password": "the password of the listener"}}
```

Send `email` or `username`. A correct password returns the listener, with the `token`.

## Connect your own access system

Use these endpoints when your own system decides who can listen, for example a paywall or a subscriber database.

1. Restrict the podcast in Podigee. The REST API has no endpoint for this setting. See [Restrict a podcast to invited listeners](https://docs.podigee.com/documentation/create-and-publish/publishing-and-distribution/restrict-a-podcast-to-invited-listeners).
2. When a person gets access in your system, send `POST /listeners` with a `password` and store the listener `id` and the `token`.
3. When the person loses access, send `POST /listeners/{listener_id}/deactivate`.
4. When the person gets access again, send `POST /listeners/{listener_id}/activate`.

Important limits:

* A podcast is public or restricted, not both. For free episodes next to restricted episodes, use two podcasts.
* A listener belongs to one podcast. A person with access to three podcasts is three listeners.
* The endpoints identify your system, not the listener. Do not call them from a browser or an app.
* Your system calls these endpoints. Podigee does not call your paywall or your subscription system. For help with the plan of a larger integration, write to Podigee through the [sales form](https://www.podigee.com/sales/).

## Listener statuses

| Status     | Meaning                                |
| ---------- | -------------------------------------- |
| `pending`  | The listener was invited.              |
| `resent`   | The invitation was sent again.         |
| `active`   | The listener can use the private feed. |
| `inactive` | The listener was deactivated.          |

## Related pages

* [REST API retries and timeouts](https://docs.podigee.com/api-reference/rest-api/retries-and-timeouts.md)
* The agent tools for the same job: [Add a private feed listener](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/manage-private-feeds-and-listeners) and [List private feed listeners](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/manage-private-feeds-and-listeners).
* [REST API authentication and errors](https://docs.podigee.com/api-reference/rest-api/authentication-and-errors.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/api-reference/rest-api/listeners.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
