Automate campaign closures with maximum click quotas (flash sales) and precise UTC expiration schedules.

Limitation and expiration features automate the conclusion of marketing campaigns, limited promo deals, or restricted beta invites without requiring manual developer intervention.
Every visit triggers an atomic increment of clicksCount directly on Cloudflare Edge nodes. Once a limit is reached (clicksCount >= maxClicks) or the expiration date passes, the link instantly transitions in under 10ms to inactive status or redirects to a fallback URL.
Core architectural pillars ensuring high performance, isolation, and security.
Ready-to-use TypeScript code snippets and configuration examples for your integrations.
Monitor quota consumption in real time for customer user interfaces:
Direct HTTP request methods, parameters schema, authentication, and responses.
Updates the maximum click quota, expiration timestamp, or expired fallback URL for an active link.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string | Required | Short link slug or ID. | vip-flash |
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| maxClicks | number | null | Optional | Maximum authorized clicks, or null to remove the limit. | 500 |
| expiresAt | string (ISO 8601) | null | Optional | UTC expiration timestamp, or null to remove expiration. | 2026-11-15T23:59:59Z |
| expiredRedirectUrl | string (url) | Optional | Destination URL after expiration. | https://events.com/waitlist |
Expert tips to maximize performance, resilience, and link security.
Always configure an expiredRedirectUrl so you never lose valuable customer traffic after your campaign ends.
Ensure timestamps are passed in standard UTC (ISO 8601 with trailing Z) to avoid local daylight savings or timezone offset bugs.
Subscribe to webhooks (link.limit_reached, link.expired) to receive automated notifications in Slack or Discord.