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.

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 CodeSandbox
share-gallery.ts
import { 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.

GET/v1/albums
POST/v1/albums
POST/v1/albums/:id/photos
POST/v1/invoices
POST/v1/clients
GET/v1/payments

SDKs

Official libraries.

Node.js

npm i @lepta/sdk

Python

pip install sunset-sdk

Go

go get github.com/sunset/sdk-go

Ruby

gem install sunset-sdk

Sync 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.