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

# Introduction

> Authenticate and send requests to the Lerix REST API.

## Base URL

All API requests are sent to your project endpoint:

```
https://api.lerix.dev/v1/:project-id
```

Replace `:project-id` with your project ID from the [Lerix Dashboard](https://app.lerix.dev) under **Project Settings**.

**Example:**

```
https://api.lerix.dev/v1/my-project-id
```

## Authentication

Before you call the API, create a **private key** in **Project Settings** in the [dashboard](https://app.lerix.dev).

Send the private key on every request in the `lerix-key` header:

```bash theme={"dark"}
curl https://api.lerix.dev/v1/my-project-id/endpoint \
  -H "lerix-key: <your-private-key>"
```

> [!WARNING]
>
> Keep your private key secret. Do not commit it to source control, expose it in client-side code, or share it publicly.

## Next steps

> [card] [Push Notifications](https://docs.lerix.dev/api-reference/push-notifications.md)
>
> Send push notifications through the REST API.

> [card] [Update a Notification](https://docs.lerix.dev/api-reference/update-notification.md)
>
> Change a notification's title and body.

> [card] [Unsend a Notification](https://docs.lerix.dev/api-reference/unsend-notification.md)
>
> Remove an already-delivered notification from devices.

> [card] [Cancel a Scheduled Notification](https://docs.lerix.dev/api-reference/cancel-notification.md)
>
> Stop a scheduled notification before it goes out.

> [card] [Get Delivery Status](https://docs.lerix.dev/api-reference/notification-deliveries.md)
>
> Read per-recipient delivery outcomes.

> [card] [Error & success codes](https://docs.lerix.dev/developers/errors-responses.md)
>
> Reference common API response codes.


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