Skip to main content

List Session Photos

GET 

/api/v1/devices/:device_uuid/sessions/:session_id/photos

List image-typed StoredFile attachments for a session with derived GPS coords.

Phase 120-04 (D-11). Each row is a PhotoOut whose lat/lon are resolved per D-07 (nearest DeviceLocation within ±60s of captured_at, falling back to PostGIS ST_LineInterpolatePoint on the session's track_geometry for closed sessions, falling back to null). Newest-first ordering (D-17). Presigned download URL with TTL=3600 (D-18).

Coexists with GET .../sessions/{session_id}/attachments which returns ALL attachment types — that endpoint is preserved unchanged for the v1.20 mobile consumer (Plan 105) per CONTEXT D-11.

Role scoping (D-12 = v1.20 D-09):

  • field_worker: only own device's photos
  • manager/owner: any workspace device's photos

Request

Responses

OK