Skip to content
    • Pricing
    • Developers
    Back to Blog
    announcement

    v1.1 API Update: Aliases, Expiration, and Passwords

    2026-02-28·3 min read·Plung Team

    On this page

    • New Features
    • Aliases
    • Flexible Expiration
    • Password Protection
    • Example Integration
    • Granular Error Handling

    Today we are releasing v1.1 of the Plung public API. This update adds programmatic access to three features previously only available through our web interface: custom aliases, link expiration, and password protection.

    These additions maintain our "zero-friction" philosophy. There are still no API keys, no signups, and no complex authentication flows. You can start using these new parameters immediately by updating your request bodies.

    New Features

    Aliases

    You can now specify an alias in your shortening requests. This allows you to create branded or memorable links programmatically. The API will return a 400 Bad Request with the message "Alias is already taken" if your requested code is unavailable.

    Flexible Expiration

    The current API supports an expiresIn parameter. This accepts an integer representing seconds, giving you precise control over exactly when a link should expire.

    Password Protection

    You can now secure your shortened links with a password. When a user visits a password-protected link, they will be prompted to enter the password before being redirected to the destination URL.

    Example Integration

    We have updated our documentation with new examples. Here is how you can use all three new features in a single request:

    curl -X POST https://api.plung.co/v2/shorten \
      -H "Authorization: Bearer your_api_key_here" \
      -H "Content-Type: application/json" \
      -d '{
        "url": "https://example.com/confidential-report",
        "alias": "q1-report",
        "password": "SecurePassword123",
        "expiresIn": 3600
      }'
    

    In this example, the resulting link plung.co/q1-report will be password-protected and will automatically expire in exactly one hour (3600 seconds).

    Granular Error Handling

    As part of this update, we have standardized our error responses. Instead of broad "Bad Request" errors, the API now returns specific messages for common failure cases:

    • "Alias is already taken"
    • "Alias must be between 3 and 50 characters"
    • "Password must be between 4 and 100 characters"
    • "expiresIn must be at least 60 seconds (1 minute)"

    Full details on these changes and all available parameters can be found in our Developer Documentation.

    The Plung API remains free and open for everyone. We can't wait to see what you build with these new capabilities.

    Share:

    Share Article

    Written by

    Plung Team

    ← PreviousThe Plung API Is Live: Build Integrations in SecondsNext →v1.3 API Update: Bulk Shortening Endpoint

    On this page

    • New Features
    • Aliases
    • Flexible Expiration
    • Password Protection
    • Example Integration
    • Granular Error Handling

    Related Articles

    P
    announcement

    Plung API Notice: Authorization Bearer Tokens Are Now Required for Current API Authentication

    Current authenticated Plung API requests must send API keys in the Authorization header using the Bearer scheme. This notice explains the change, the impact, and the required migration steps.

    2026-03-21·4 min read
    I
    announcement

    Introducing Plung API v2: Authenticated Endpoints and API Keys

    API keys, per-key rate limiting, and v2 endpoints for shorten, batch, QR, and stats are now available. Here's what changed and how to migrate.

    2026-03-02·6 min read
    v
    announcement

    v1.2 API Update: QR Code Generation Endpoint

    We are expanding the Plung Growth Tools suite with our new programmatic QR Code generation endpoint. You can now generate scannable, cached QR codes for your short links instantly.

    2026-03-01·2 min read

    Product

    • About Us
    • Blog
    • Developers

    Features

    • URL Shortening
    • Custom Aliases
    • QR Codes
    • Password Protection
    • Link Analytics
    • Link Expiration

    Legal

    • Privacy Policy
    • Cookies Policy
    • Terms of Service
    • Acceptable Use Policy

    Support

    • Contact Us
    • Report Abuse

    © 2026 Plung

    All Rights Reserved