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

# Introduction

> Welcome to the Leaf7 API programmatic control over your script protection platform.

# Leaf7 API Documentation

The Leaf7 HTTP API gives vendors full programmatic control over their projects, script keys, blacklists, and analytics. Use it to build custom dashboards, integrate with payment processors, automate key distribution via Discord bots, and more.

<Warning>
  The Leaf7 API is **not a public API**. It is accessible only by registered Leaf7 vendors with a valid API key.
</Warning>

## Things to remember ✅

<Note>
  The `Content-Type` header must be set to `application/json` in all requests that include a body.
</Note>

<Warning>
  Rate limits apply to all endpoints. In general you can make **60 requests per minute**. Exceeding this will result in a `429 Too Many Requests` response.
</Warning>

<Info>
  **Parameter Types:**

  | Type       | Example                                                                |
  | ---------- | ---------------------------------------------------------------------- |
  | **Path**   | `https://api.leaf7.fun/api/vendor/projects/`**`PROJECT_ID`**`/...`     |
  | **Query**  | `https://api.leaf7.fun/api/vendor/keys/active`**`?project_id=abc123`** |
  | **Body**   | `{ "name": "My Script" }`                                              |
  | **Header** | `Authorization: Bearer YOUR_API_KEY`                                   |
</Info>

## Base URL

All API requests are made to:

```
https://api.leaf7.fun
```

## What can you do?

<CardGroup cols={2}>
  <Card title="Manage Projects" icon="folder" href="/api-reference/projects">
    Create, update, delete projects and upload script source code.
  </Card>

  <Card title="Manage Keys" icon="key" href="/api-reference/keys">
    Generate buyer keys, manage active keys, ban/unban users, reset HWIDs.
  </Card>

  <Card title="Blacklist" icon="ban" href="/api-reference/blacklist">
    Block IPs and HWIDs from accessing your scripts.
  </Card>

  <Card title="Analytics" icon="chart-line" href="/api-reference/analytics">
    Fetch execution stats, security events, and system health.
  </Card>
</CardGroup>

## Need help?

Join our [Discord server](https://discord.gg/NWJ5Nxqfb4) and open a ticket or contact us via mail [support@leaf7.fun](mailto:support@leaf7.fun) — we're always happy to help.
