> ## Documentation Index
> Fetch the complete documentation index at: https://juicer.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Authentication

> Use a Bearer API key to authenticate every request.

All requests require an API key passed as a Bearer token:

```bash theme={null}
Authorization: Bearer jcr_your_api_key_here
```

## Getting an API key

You can obtain a key two ways:

### 1. From the dashboard (permanent key)

Sign in at [juicer.io](https://www.juicer.io/feeds) and create a key on the **API** dashboard. Dashboard-issued keys never expire and are the right choice for long-running production integrations.

### 2. Programmatically via `POST /v1/authorize` (temporary key)

For CLI tools, AI agents, and one-off scripts, you can request a key with just an email address — no dashboard or prior signup needed.

```bash theme={null}
curl -X POST https://api.juicer.io/v1/authorize \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "client_name": "My Tool"}'
```

There are two outcomes:

* **New email** — returns an `api_key` immediately. Valid for 2 hours pre-confirmation, extended to 12 hours once the user confirms the email.
* **Existing confirmed user** — returns an `authorization_url` (the user opens it in a browser to approve the request) plus a `poll_url` you GET until the key is issued.

Every key issued through `/authorize` is time-bounded. For a permanent key, generate one from the dashboard.

> [!NOTE]
>
> Issuing a new session key never revokes existing keys. Permanent and session
> keys coexist on the same account.

## Key format

API keys are prefixed with `jcr_`. Treat them as secrets — never embed them in client-side code.

## Rate limits

Rate limits are the same on every plan. They depend on the kind of key and on the endpoints you call, and every request also counts against a limit for the IP address it comes from.

| Who / which endpoints | Limit | What the `429 Too Many Requests` looks like |
| - | - | - |
| Any request, any endpoint | 50 requests every 5 seconds per IP address | Plain text `Retry later`, no `Retry-After` |
| Any key, `/v1/data/…` | 60 requests a minute per key | JSON `{"error": "Rate limit exceeded. Try again later."}`, no `Retry-After` |
| Any key, `/v1/publishing/…` | 60 requests a minute per key, of which 10 post creates | Standard error envelope (`error.code` `rate_limit_exceeded`) and a `Retry-After` header with the seconds to wait |
| Temporary key, email not yet confirmed, every `/v1/…` path except publishing | 60 requests an hour per key | Standard error envelope (`rate_limit_exceeded`), plus `upgrade_hint` (confirm your email) and `upgrade_url`; no `Retry-After` |
| Temporary key, email confirmed, every `/v1/…` path except publishing | 300 requests an hour and 60 a minute per key | Standard error envelope (`rate_limit_exceeded`) naming the limit you reached, plus `upgrade_hint` and `upgrade_url`; no `Retry-After` |

**Permanent keys have no hourly limit.** The hourly limits apply only to temporary keys issued by `POST /v1/authorize`. For sustained traffic, have an account owner or manager create a permanent key on the **API** dashboard (see [Getting an API key](#getting-an-api-key)). Upgrading your plan does not change a temporary key's limits.

How the limits behave:

* **Windows are fixed, not sliding.** Each limit counts requests in fixed clock windows: the hourly limits reset on the hour (UTC), the per-minute limits on the minute. Requests just before and just after a reset land in different windows.
* **The first limit you exceed answers.** Limits are checked in the order of the table above. On `/v1/data/…` a temporary key counts against both the data limit and its own: when both run out on the same request, you get the data API's answer.
* **The per-IP limit is shared.** Every key and session sending from the same address counts against the same 50 requests every 5 seconds. For a permanent key, on endpoints with no per-key limit (feeds, sources, posts, users and the rest), it is the only limit.
* **The data API's `429` body is not the standard envelope.** Its `error` is a plain string, so a client that reads `error.code` gets nothing; check the status code.

`POST /v1/authorize` itself is limited to 5 requests an hour per IP address and 3 a day per email address, and polling `GET /v1/authorize/{request_id}` to 60 requests a minute per IP address. These answer `429` with `{"error": "Rate limit exceeded. Try again later."}` and no `Retry-After`.

Publishing endpoints can also answer `429 supplier_busy` when the shared publishing supplier is busy, and the connection callback a browser returns to is limited to 20 requests a minute; see the [Publishing guide](https://juicer.mintlify.site/publishing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.