Skip to content

lacuna API

Upload screenshots, videos and notes from your scripts, programs or your own server, and get a link you control: access, password, expiry and a view limit.

Address and format

Every method works over HTTPS at https://lac.pics/api/v1. Requests and responses are JSON in UTF-8; files are uploaded as multipart/form-data.

Every response carries an X-Request-ID header. If something goes wrong, send it to support: it identifies the request.

First request

  1. Create a key in your console under API. The full key is shown once: keep it like a password.
  2. Check the key: the response returns your account, limits and the key itself.
curl "https://lac.pics/api/v1/account" \
  -H "Authorization: Bearer lac_api_YOUR_KEY"
  1. Upload a file: the response contains its link, url.
curl -X POST "https://lac.pics/api/v1/uploads" \
  -H "Authorization: Bearer lac_api_YOUR_KEY" \
  -H "Idempotency-Key: capture-2026-09-27-a7f3c1" \
  -F "file=@capture.png" \
  -F "visibility=unlisted"

Guides

OpenAPI specification

These pages are built from the OpenAPI 3.0 specification when the site is built, so they match the API. The full specification file (JSON) downloads after you sign in; it also lists the methods that work only from the console.

Sign in to download

lacuna API documentation