YT Gift Redirect Service
The service keeps a pool of 3 active public tokens. All active tokens point to the same current activation URL for the current code_id. Token lifetime is 120 minutes from the last ingest event.
Available Endpoints
POST /api/ingest-link- save/update activation URL for code.POST /api/remove-token- remove one token from the active pool.GET /subscribe/<public_token>- direct redirect and first-click redirect (no auto-redeem).POST /api/refresh-active-codes- cron endpoint for stale marking + refresh trigger payload.GET /g/<public_token>- diagnostic status page.