# Authentication

> API keys, how to send them, and how to keep them safe.

Source: https://www.podcastlookup.com/documentation/authentication

Every REST call and every MCP request is authenticated with an **API key** created on your [account page](https://www.podcastlookup.com/account/api-keys). The same key works for both.

## Sending your key

Use the standard bearer header:

```http
Authorization: Bearer pl_…
```

If your client can't set `Authorization`, the `X-API-Key` header works too:

```http
X-API-Key: pl_…
```

Never put the key in a query string: URLs end up in logs.

## Key format

- Keys start with `pl_` followed by 40 random characters.
- Each key has a name of your choice (up to 50 characters), so you can tell them apart.
- You can create 1 key on Free, up to 10 on Pro and 50 on Business. Keys stop working while a subscription payment is past due.

## What a key gives access to

A key acts as **your account**: its credits, its rate limit and its plan. All your keys share the same monthly credits, so creating more keys does not add credits. Use separate keys per machine or app so you can revoke one without touching the others.

## Storage and revocation

We store only a fingerprint of each key, never the key itself. The full key is shown once, when you create it.

To revoke a key, delete it on your [account page](https://www.podcastlookup.com/account/api-keys). Requests with that key fail with `401 invalid_api_key` immediately.

## Calling from the browser

The REST API answers CORS preflights and allows every origin, because keys travel in headers and never in cookies. That means **your key is visible to anyone who opens your page**. Call the API from a server, a serverless function or a script whenever the key must stay private.

> **Important: Leaked a key?**
>
> Revoke it on your account page, then create a new one. Usage already spent is not refunded, so revoke quickly.