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

# API Reference

> REST API for managing configs programmatically.

The Lazy Raccoon API lets you manage your configs, teams, and versions programmatically. The CLI uses this same API under the hood.

## Base URL

```
https://lazyraccoon.dev/api
```

## Authentication

All endpoints require authentication via an API key in the `Authorization` header:

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

You can generate an API key by running `lazy login` or from the dashboard.

## Response format

All responses are JSON. Successful responses return the requested data directly. Error responses follow this format:

```json theme={null}
{
  "error": "Description of what went wrong"
}
```

## Status codes

| Code  | Description                                        |
| ----- | -------------------------------------------------- |
| `200` | Success                                            |
| `201` | Created                                            |
| `204` | Deleted (no content)                               |
| `400` | Bad request (invalid input)                        |
| `401` | Unauthorized (missing or invalid API key)          |
| `403` | Forbidden (insufficient permissions or plan limit) |
| `404` | Not found                                          |
| `413` | Payload too large (max 512 KB)                     |
| `500` | Internal server error                              |
