GET /api/v1/loterias
Retrieves a list of all loterias (lotteries) with support for pagination, filtering, and search.Authentication
Requires authentication. Available to all roles.Query Parameters
Page number for pagination (min: 1)
Number of items per page (min: 1, max: 100)
Filter by active status.
true: Show only active loteriasfalse: Show only inactive loterias- Omit: Show all loterias
Search by loteria name (case-insensitive).Min: 1 character, Max: 100 characters
Response
Indicates if the operation was successful
Array of loteria objects
Pagination metadata
Example Request
Example Response
Example Request (Search)
Filtering Options
- All Loterias
- Active Only
- Inactive Only
- Search by Name
Understanding rulesJson
TherulesJson field contains loteria configuration:
digits
digits
Number of digits for winning numbers.
2: Times/Tiempos (00-99)3: Monazos (000-999)
drawSchedule
drawSchedule
Defines when sorteos are created automatically.
reventadoConfig
reventadoConfig
REVENTADO (extra multiplier) settings.
autoCreateSorteos
autoCreateSorteos
Whether sorteos are auto-generated.
true: Automatic via cron jobfalse: Manual creation only
Use Cases
Related Endpoints
Get Loteria
Get a single loteria by ID
Create Loteria
Create a new loteria
Update Loteria
Update loteria configuration
List Sorteos
Get sorteos for a loteria