Skip to main content

Project Management

Projects are the core unit on Leaf7. Each project represents a single script or script hub with its own source code, keys, settings, and analytics.

Create a project

Every project gets a unique project_id (UUID) on creation. This ID is used across all endpoints.
POST /api/vendor/projects

Headers

Request Body


Get all projects

GET /api/vendor/projects Returns all projects owned by the authenticated vendor.

Headers

The encrypted_source field in the response contains the decrypted raw source code for display purposes. It is stored encrypted at rest on the server.

Get a single project

GET /api/vendor/projects/{project_id}

Path Parameters


Update a project

PUT /api/vendor/projects/{project_id} Update any project property. Only include fields you want to change — unspecified fields remain unchanged.

Path Parameters

Request Body

When you upload new source code via encrypted_source, the version auto-increments the patch number unless you explicitly set version in the same request.
L7_SEND_WEBHOOK macros in your source code are automatically preprocessed on upload. The webhook URLs and templates are extracted and stored securely — they never reach the client.

Delete a project

DELETE /api/vendor/projects/{project_id}
This action is irreversible. All associated keys, buyer keys, and webhook templates will be permanently deleted.

Path Parameters

(Empty response — project deleted successfully)