Skip to main content

Quickstart

This guide walks you through creating a project, generating keys, and distributing them — all via the API.

Step 1: Get your API key

Log in to leaf7.fun/dashboard, go to Settings, and copy your API key.

Step 2: Create a project

Response:
Save the project_id — you’ll need it for all key management operations.

Step 3: Upload your script

The encrypted_source field accepts raw Lua source code. Leaf7 handles encryption, obfuscation, and VM protection automatically on the server side.

Step 4: Generate buyer keys

Response:

Step 5: Share the loadstring

Your users execute your script using the Leaf7 loadstring. They set their key at the top:
That’s it! Leaf7 handles authentication, HWID locking, obfuscation, and delivery automatically.

What’s next?

Key Management

Ban, unban, reset HWID, and manage active keys.

Script Macros

Use L7 macros like L7_LinkedDiscordID in your scripts.