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
- 201 Created
Get all projects
GET /api/vendor/projects
Returns all projects owned by the authenticated vendor.
Headers
- 200 OK
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
- 200 OK
- 404 Not Found
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
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.
- 200 OK
- 400 Macro Error
Delete a project
DELETE /api/vendor/projects/{project_id}
Path Parameters
- 204 No Content
- 404 Not Found
(Empty response — project deleted successfully)