Skip to content

List Entries

GET /v1/lotteries/{slug}/entries

Returns a paginated list of all tickets your account has entered for a specific lottery. Use this to track your users’ entries and check draw results.

HeaderRequiredValue
X-API-SecretYesYour secret key
ParameterTypeDescription
slugstringThe lottery’s unique slug
ParameterTypeDefaultDescription
pageinteger1Page number
limitinteger20Results per page (max 100)
Terminal window
curl -X GET "https://api.gamifyhost.com/v1/lotteries/mega-millions-weekly/entries?page=1&limit=20" \
-H "X-API-Secret: sk_live_your_secret_key"

Status: 200 OK

{
"status": "success",
"data": [
{
"id": "b1c2d3e4-f5a6-7890-bcde-f12345678901",
"ticketRef": "LX-2026-0305-A7F2",
"drawId": "c2d3e4f5-a6b7-8901-cdef-123456789012",
"lotteryId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"email": "user@example.com",
"externalUserId": "user_12345",
"status": "ACTIVE",
"entryMethod": "PARTNER_API",
"lines": [
{ "main": [7, 14, 21, 35, 42], "bonus": [3] }
],
"winTier": null,
"winAmountCents": 0,
"createdAt": "2026-03-05T14:30:00Z"
},
{
"id": "d4e5f6a7-b8c9-0123-def4-567890abcdef",
"ticketRef": "LX-2026-0304-B3E1",
"drawId": "c2d3e4f5-a6b7-8901-cdef-123456789012",
"lotteryId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"email": "another@example.com",
"externalUserId": "user_67890",
"status": "WON",
"entryMethod": "PARTNER_API",
"lines": [
{ "main": [3, 12, 27, 33, 49], "bonus": [7] }
],
"winTier": "Tier 3",
"winAmountCents": 5000,
"createdAt": "2026-03-04T09:15:00Z"
}
],
"total": 47,
"page": 1,
"limit": 20
}
FieldTypeDescription
dataarrayList of ticket objects
totalintegerTotal entries for this lottery
pageintegerCurrent page
limitintegerResults per page
FieldTypeDescription
idstringTicket UUID
ticketRefstringHuman-readable ticket reference
drawIdstringDraw UUID this ticket was entered into
lotteryIdstringLottery UUID
emailstringUser’s email
externalUserIdstringYour user ID (if provided at entry)
statusstringCurrent ticket status (see below)
entryMethodstringHow the entry was created
linesarrayNumber lines on this ticket
winTierstring|nullPrize tier name if the ticket won, null otherwise
winAmountCentsintegerPrize amount in cents (0 if not won)
createdAtstringISO 8601 timestamp
StatusDescription
ACTIVETicket is entered in an upcoming or open draw
DRAWNDraw has been executed, results being processed
WONTicket matched a winning tier
LOSTTicket did not match any winning tier
CANCELLEDTicket was cancelled
CodeMessage
400lottery not found — Invalid slug