Link Expiration

Shrinkr supports optional expiration dates on links. When a link expires, visitors will see a friendly expiration page instead of being redirected.

Setting an Expiration

Dashboard

When creating or editing a link, use the Expires at field to pick a date and time. Leave it empty for links that never expire.

API

Include the expires_at field in your create request:

json
{
  "url": "https://example.com/flash-sale",
  "code": "flash-sale",
  "expires_at": "2026-04-01T00:00:00Z"
}

The value must be an ISO 8601 datetime string in UTC.

How Expiration Works

  • Links are checked at redirect time
  • Expired links return a friendly expiration page (not a 404)
  • Expired links still appear in your dashboard with an "Expired" badge
  • You can update or remove the expiration date at any time
  • Click analytics are preserved even after expiration

Use Cases

  • Limited-time promotions — set the link to expire when the sale ends
  • Event invitations — expire the RSVP link after the event date
  • Temporary resources — share files or documents with a time limit
  • A/B testing — expire variant links after the test period

Notes

  • Expiration uses UTC time
  • The minimum expiration is 1 hour from creation
  • There is no maximum — set it years in the future if needed