curl --request GET \
--url https://api.example.com/api/photos{
"success": true,
"data": [
{
"id": "<string>",
"context": "<string>",
"routeId": {},
"routeCallId": {},
"userId": "<string>",
"imageUrl": "<string>",
"caption": {},
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"user": {
"id": "<string>",
"name": {},
"imageUrl": {}
}
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalCount": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}Get public gallery photos with optional filters and pagination
curl --request GET \
--url https://api.example.com/api/photos{
"success": true,
"data": [
{
"id": "<string>",
"context": "<string>",
"routeId": {},
"routeCallId": {},
"userId": "<string>",
"imageUrl": "<string>",
"caption": {},
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"user": {
"id": "<string>",
"name": {},
"imageUrl": {}
}
}
],
"pagination": {
"page": 123,
"limit": 123,
"totalCount": 123,
"totalPages": 123,
"hasNextPage": true,
"hasPreviousPage": true
}
}ACTIVE photos by default. This is a public endpoint that does not require authentication.
ROUTE_CALL_COVER - Route call cover photosROUTE_GALLERY - Route gallery photosROUTE_CALL_GALLERY - Route call gallery photosACTIVE - Active photos (default)FLAGGED - Flagged photosREJECTED - Rejected photosDELETED - Deleted photosROUTE_CALL_COVER, ROUTE_GALLERY, or ROUTE_CALL_GALLERY)ACTIVE, FLAGGED, REJECTED, or DELETED)curl --request GET \
--url 'https://api.losinmaduros.com/api/photos?context=ROUTE_GALLERY&page=1&limit=20'
{
"success": true,
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"context": "ROUTE_GALLERY",
"routeId": "987e6543-e21b-12d3-a456-426614174000",
"routeCallId": null,
"userId": "user_2abc123def456",
"imageUrl": "https://your-project.supabase.co/storage/v1/object/public/photos/routes/image.jpg",
"caption": "Beautiful route!",
"status": "ACTIVE",
"moderatedAt": null,
"moderatedBy": null,
"moderationNotes": null,
"createdAt": "2026-02-10T10:00:00Z",
"updatedAt": "2026-02-10T10:00:00Z",
"user": {
"id": "user_2abc123def456",
"name": "John",
"imageUrl": "https://example.com/avatar.jpg"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"totalCount": 125,
"totalPages": 7,
"hasNextPage": true,
"hasPreviousPage": false
}
}