Skip to content
    • Pricing
    • Developers
    API Documentation

    Overview

    • Introduction
    • Getting Started

    Concepts

    • Authentication
    • Rate Limiting
    • Request & Response Format

    Endpoints

    • POST /v2/shorten
    • POST /v2/shorten/batch
    • GET /v2/qr/:shortCode
    • GET /v2/stats/:shortCode

    Reference

    • Error Codes
    Back to Plung

    Request & Response Format

    Requests

    • All request bodies must be sent as JSON with Content-Type: application/json.
    • Unrecognized properties in the request body are stripped automatically. Properties not listed in the parameters table are silently ignored.
    • Explicitly disallowed properties trigger a 400 Bad Request error.
    • GET endpoints do not accept request bodies.

    Successful Responses

    Successful responses return a JSON object containing the relevant resource data.POST /v2/shorten returns 201 Created, while POST /v2/shorten/batch returns 200 OK. GET requests return 200 OK.

    Error Responses

    All error responses conform to a consistent envelope structure:

    json
    {
      "statusCode": 400,
      "timestamp": "2026-02-28T02:30:00.000Z",
      "path": "/v2/shorten",
      "method": "POST",
      "message": "Please provide a valid URL"
    }

    Certain errors include an additional errorType field for programmatic handling (e.g. "BLOCKED", "EXPIRED"). Rate limit errors also include a retryAfter field specifying the cooldown in seconds.

    PreviousRate LimitingNextPOST /v2/shorten

    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