When a person should choose: the pictures of a window and a link to send
Some questions about the past are better answered by the person who was there. How to fetch the pictures of a few minutes, let someone tap the right one, and keep it as evidence.
A delivery platform writes to a restaurant: the customer says one of the two sandwiches was missing, the order is refunded, and the amount is taken from the restaurant. The restaurant knows the order was complete. It has a camera above the counter. It also has a dinner service to run, and nobody is going to scroll through a recorder for a nine euro refund.
One could ask a model to find the picture. Sometimes that is the right tool. Here it is the hard way: several orders sit on the same counter, the sandwiches look alike, and the question “which of these is order 4F2” is one the person who packed it answers at a glance.
So let that person answer. The API’s job becomes smaller and more certain: fetch the pictures of those few minutes, show them, and keep the one that is chosen.1
Ask for a window
curl https://api.camly.ai/v1/cameras/cam_123/pictures \
-H "Authorization: Bearer $CAMLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "2027-02-09T19:30:00+01:00",
"to": "2027-02-09T19:36:00+01:00",
"max_pictures": 30
}'
The camera must be on a Camly Bridge with its archive on, which is the default for a new one. The Bridge sends small versions of the pictures it kept in that window, 480 pixels wide, in time order, at most 60 and 30 by default. With a recent Bridge, they are there within a few seconds, and a pictures.ready webhook says so.
No check is made. Nothing is analysed and nothing is guessed, so nothing can be wrong: this is the manual search through a recording, done in seconds instead of minutes.
Show them, keep one
Fetch the small pictures from your server, with your key, and show them in your own app. Never put the key in a web page or a phone app.
When the person taps one:
curl -X POST https://api.camly.ai/v1/pictures/pic_123/pi_1/keep \
-H "Authorization: Bearer $CAMLY_API_KEY"
The Bridge then sends that picture at full size, and picture.kept tells you when it has arrived. It is kept 30 days by default, and you can delete it sooner. The small pictures are gone after 24 hours.
Keep soon after asking. The archive on site is a rolling one, and a picture that has been pruned in the meantime cannot be sent.
No app of your own: send a link
Many integrators have no screen in the restaurant’s hands. For that case the API hosts the page:
curl https://api.camly.ai/v1/cameras/cam_123/picker \
-H "Authorization: Bearer $CAMLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "2027-02-09T19:28:00+01:00",
"to": "2027-02-09T19:36:00+01:00",
"title": "Order 4F2 - 2 sandwiches, 1 water",
"reference": "order-4F2",
"locale": "en"
}'
The answer carries a url. Send it by SMS, e-mail or chat to the person who knows what happened. They open it on their phone, with no account and nothing to install. The page shows the pictures of the window; they tap one, may circle what proves it, and send.
Your back end then receives picker.chosen with the full picture, the time it was taken, what was circled as boxes in units from 0 to 1, and the reference exactly as you sent it, so you can attach the picture to the right dispute without keeping any state in between.
The link is a key: treat it as one
| Property | Value |
|---|---|
| Shown | Once, in the answer to the call |
| Valid | 24 hours |
| Allows | Seeing the pictures of that window, and choosing one, once |
| Does not allow | Any other window, any other camera, anything else |
Anyone who has the link can see those pictures for those 24 hours. Send it to one person, through a channel you would use for something private, and keep the window as short as the dispute allows. Six minutes of a counter is very different from six hours.
What it costs
A request for the pictures of a window costs €0.01, refunded when nothing comes back, for example when the archive holds nothing for that time. Keeping the chosen picture is free. A picker link opens a pictures request, so it costs the same.1 For a nine euro refund, that is an easy sum.
Person or model: which search for which question
The previous post in this series described the other tool, a look-back that reads a reference. The two answer different questions.
| Look-back with Read | Pictures of a window | |
|---|---|---|
| Who decides | The API, by comparing text | A person, by looking |
| Needs | Something written and readable | Someone who knows what happened |
| Good for | Parcels, labels, plates, numbered containers | Unlabelled items, several similar things in view |
| When it fails | Says “not found” | The person finds no picture, and says so |
| Cost | Up to one check per picture | €0.01 per request |
A third way sits between them: the pictures of a window can be ranked, likely ones first, by a Find that counts named items. That feature is in beta and its accuracy has not yet been measured on real pictures, so the person still chooses; the ranking only saves them scrolling.1
What the picture proves
Say this to whoever will read the picture, before they read too much into it.
A picture proves what it shows, at the time it was taken. On a counter with several orders, it shows items that look like those of the order. It does not show that they were that order, and it does not show what happened after the bag left the counter.
That is still a great deal more than the restaurant had before, which was its word. A timestamped picture of two wrapped sandwiches and a bottle of water beside a bag, taken two minutes before the courier’s pickup time, changes the conversation with the platform. It does not end every dispute, and it should not be presented as if it did.
And as for any archive of pictures, what is filmed, for how long and how people are told follows the rules that apply on that site. A counter camera films staff at work: the points to settle with them are in telling staff: a template notice.
Sources
- Camly API, all guides as plain text: Pictures of a window, Items for Find, Limits and prices. platform.camly.ai
- Camly API contract (OpenAPI). api.camly.ai