Docs · Your account
API
Read and create galleries from your own scripts.
The Capturely API lets your own scripts read your galleries, client picks, photos and analytics, and create or change galleries. It answers JSON at https://capturely.me/api/v1. API keys are part of Pro.
Create a key
- 1Open Settings → Connectors.
- 2Under API keys, press Create key, give it a name and tick what it may do.
- 3Choose when it expires and press Create key.
- 4Copy the key: it starts with cap_ and is shown only once.
Send the key
Send it in the Authorization header as a bearer token, on every request:
curl https://capturely.me/api/v1/galleries \
-H "Authorization: Bearer $CAPTURELY_KEY"Permissions
- galleries:read: list galleries, and one gallery's details, counts, expiry and share link.
- selections:read: what clients picked and favorited, with file names, and their comments.
- analytics:read: the numbers on your Analytics page.
- photos:read: photo names, sizes, dates and small preview links that expire on their own. Never the original files.
- galleries:write: create a gallery, and change its title, client name, expiry, password, downloads and watermark.
Endpoints
- GET /galleries: your galleries, newest first. Filters: status=active, expired or draft; waiting=true for galleries with photos that no client has opened yet; q= to search titles and client names.
- GET /galleries/ID: one gallery, with its counts, expiry, share link and sent selections.
- GET /galleries/ID/selections: what clients picked, with file names, their comments and each sent selection.
- GET /galleries/ID/photos: the photos, in the gallery's order, each with a small preview link.
- GET /analytics?days=30: your analytics for the last 7, 30 or 90 days.
- POST /galleries: create a gallery.
- PATCH /galleries/ID: change a gallery. Only the fields you send change.
Examples
Galleries with photos that the client has not opened yet:
curl "https://capturely.me/api/v1/galleries?waiting=true" \
-H "Authorization: Bearer $CAPTURELY_KEY"What the clients of one gallery picked:
curl https://capturely.me/api/v1/galleries/GALLERY_ID/selections \
-H "Authorization: Bearer $CAPTURELY_KEY"Create a gallery. Anything you leave out comes from your gallery defaults:
curl -X POST https://capturely.me/api/v1/galleries \
-H "Authorization: Bearer $CAPTURELY_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Smith wedding", "clientName": "Anna Smith", "expiresAt": "2027-03-01"}'Turn downloads on and set a password:
curl -X PATCH https://capturely.me/api/v1/galleries/GALLERY_ID \
-H "Authorization: Bearer $CAPTURELY_KEY" \
-H "Content-Type: application/json" \
-d '{"downloadsEnabled": true, "password": "smith2027"}'Pages, dates and errors
- Lists return 25 items (limit= takes up to 100) and a nextCursor. Pass it back as cursor= for the next page; it is null on the last one.
- Dates are ISO 8601, in UTC. An expiry you send is a day, such as 2027-03-01: the gallery closes at the end of it. Send null for no expiry.
- Errors look like {"error": {"code": "not_found", "message": "Gallery not found."}}.
- 401: the key is missing, wrong, revoked or expired. 403: the key lacks a permission (the message names it), or the account is not on Pro. 404: no such gallery in your account. 422: the request is not valid (fields says why). 429: more than 60 requests a minute with one key.
The full description, for code generators and tools such as Postman, is the OpenAPI file at https://capturely.me/openapi/v1.json.