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

# API reference

> Every public endpoint of the Relettr API v1.

The reference is generated from the [OpenAPI 3.1 spec](https://docs.relettr.com/openapi.yaml).

**Base URL**

```
https://api.relettr.com/v1
```

**Authentication.** `Authorization: Bearer <key>` with a `rl_live_…` or `rl_test_…` key. See [Authentication and test mode](https://docs.relettr.com/authentication.md). The "Try it" panel is meant for **test keys**.

**Conventions**

* JSON request and response bodies; credits are integers.
* Ids are prefixed: `ch_` chapter, `ser_` series, `gle_` glossary entry, `we_` webhook endpoint, `evt_` event, `led_` ledger entry, `key_` API key.
* Timestamps are ISO 8601 in UTC, except event `created`, which is Unix seconds.
* Every `POST` accepts `Idempotency-Key` ([Idempotency](https://docs.relettr.com/idempotency.md)). It's required on create and start.
* Lists are paginated with a cursor ([Pagination](https://docs.relettr.com/pagination.md)).
* Errors use one shape ([Errors](https://docs.relettr.com/errors.md)).
* Every response has a `Request-Id` header.


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