> 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/make-your-first-api-request.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Make your first API request

List your podcasts with one authenticated request and open the interactive API docs.

Use this tutorial to make a successful request to the REST API v1. It uses the podcast list endpoint, which needs only a credential and returns the podcasts that your account can see.

## What you will complete

At the end of this tutorial, you have a JSON list of your podcasts on your screen. You also know where to find the other endpoints.

## Before you start

* Your plan includes API access: Scale and above, or an older plan that includes it.
* You have an API key or a REST API token. In the classic view, you find both on the **API** tab of **My account**. In the Podigee workspace, you find both on the **API keys** tab of **Data & integrations**. See [Get your API key or token](https://docs.podigee.com/documentation/connect-and-administer/integrations/get-your-api-key-or-token).
* You have `curl` or another HTTP client on your computer.

## Follow the tutorial

### 1. Send the request

1. Replace `mytoken` with your API key or your REST API token.
2. Run this command:

```bash
curl -H "Token: mytoken" https://app.podigee.com/api/v1/podcasts
```

Expected result: the response is a JSON list. Each entry is one podcast with its `id`, `title`, and the other podcast fields.

### 2. Limit the returned fields

1. Add the `fields_filter[]` parameter with one field name for each field that you need.
2. Run this command:

```bash
curl -H "Token: mytoken" "https://app.podigee.com/api/v1/podcasts?fields_filter[]=subdomain"
```

Expected result: each entry contains `id`, `title`, and `subdomain`. The API always includes `id` and `title`, even when the filter does not name them.

### 3. Open the interactive API docs

1. Open `https://app.podigee.com/api-docs` in your browser.
2. Find the `podcasts` tag and expand `GET /podcasts`.
3. Compare the response schema with the JSON from step 1.

Expected result: the page lists every published endpoint with its parameters and response schema. When you are signed in to Podigee, the page pre-fills your API key, so you can try requests in the browser. The machine-readable specification is at `https://app.podigee.com/api/v1/docs`.

## Check your result

The response from step 1 contains at least one podcast with the same `title` that you see in the Podigee web app. The list includes the podcasts that you own, the podcasts that you edit as a collaborator, and the visible podcasts of your organization.

## If the result is different

* The response is `{"code": 401, "message": "You are not authorized to access this area."}`: the credential is wrong, your plan does not include API access, or the subscription is canceled or suspended. Check the causes in [REST API authentication and errors](https://docs.podigee.com/api-reference/rest-api/authentication-and-errors.md).
* The response is `401` although the credential is correct: the credential is possibly a Model Context Protocol (MCP) token or an MCP connector credential. An MCP connector credential answers with the message `This MCP credential is not valid for the REST API. Use an API key.`. The API refuses an MCP token as unknown. Create a REST API token instead.
* The response is `429`: you sent too many requests in one minute. Wait for the number of seconds in the `Retry-After` header and send the request again.

## Next step

[REST API podcasts and episodes](https://docs.podigee.com/api-reference/rest-api/podcasts-and-episodes.md) lists the parameters of the podcast and episode endpoints.


---

# 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/make-your-first-api-request.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.
