Developers
A clean, documented API for everything in Lepta Studio.
Galleries, invoices, clients, payments, webhooks. REST + OAuth, with SDKs for the languages you actually use. Free for personal use, generous limits on every plan.
API reference
Every endpoint, every parameter, with copy-pasteable examples in five languages.
Open
Quickstart
List your first album in under five minutes. Includes a working CodeSandbox.
Open
Auth & OAuth
Personal API keys for scripts, OAuth 2.0 for apps acting on behalf of a studio.
Open
Webhooks
Real-time events for uploads, invoice.paid, gallery.viewed, and 24 more.
Open
Quickstart
From zero to a private client gallery in 8 lines.
The SDK handles auth, retries, rate-limits, and uploads. You write the photo workflow you wish existed.
Open in CodeSandboximport { Lepta Studio } from "@lepta/sdk";
const sunset = new Lepta Studio(process.env.SUNSET_API_KEY!);
// Create a private gallery and share with a client
const album = await sunset.albums.create({
title: "Marquez Wedding ยท April",
privacy: "passcode",
passcode: "iris-mateo-24",
expiresAt: "2026-12-31",
});
await sunset.clients.invite(album.id, {
email: "[email protected]",
message: "Your gallery is ready ๐
",
});
Endpoints
A small surface area, on purpose.
/v1/albumsList galleries for the authenticated studio.
/v1/albumsCreate a new gallery (with privacy options).
/v1/albums/:id/photosUpload a photo or video to a gallery.
/v1/invoicesCreate and optionally send an invoice.
/v1/clientsAdd a client to the studio's roster.
/v1/paymentsPaginated list of incoming payments.
SDKs
Official libraries.
Node.js
npm i @lepta/sdkPython
pip install sunset-sdkGo
go get github.com/sunset/sdk-goRuby
gem install sunset-sdkSync photos from your CMS
Push delivered galleries into your portfolio site automatically.
Custom invoicing flows
Tie Lepta Studio invoices to your CRM or accounting tool of choice.
Multi-studio dashboards
Build internal tools across multiple Lepta Studio workspaces with OAuth.