v1

latestOpenAPI 3.1.02026-07-13143194365.4 KB
maintenance

Close expired giveaways (admin/cron)

Admin/cron endpoint to transition giveaways from active -> ended when end_at has passed. Does not draw winners or modify entries; it only updates status. Safe to run repeatedly (idempotent for already-ended giveaways). Returns the number of giveaways closed plus their IDs.

post/v1/admin/close_expired_giveaways

Headers

X-MAINTENANCE-KEYstring nullable

Response

Closed giveaways count + IDs

closedinteger required

Number of giveaways that were closed

giveaway_idsstring[] required

IDs of the closed giveaways