Link shortener API

Power your product with smart short links

Build branded short links, control traffic routing, and manage URLs directly from your applications using Replug’s powerful URL shortener API.

Replug’s link shortener API explained

This API helps you create branded short links, manage campaigns, and control link behavior directly from your applications. It is built for developers and teams who need automation, flexibility, and control beyond basic URL shorteners.

Create links via API

Generate branded short links, custom slugs, and campaign URLs using simple REST requests.

Control link behavior

Configure link routing, destinations, and rules programmatically to match your product or campaign needs.

Secure REST framework

A RESTful API with OAuth authentication designed for reliable and protected integrations.

Scalable by design

Cloud-based infrastructure that supports automation, high traffic, and growing products.

Create shortened URLs & branded short links

Start integrating today

Connect your app to Replug’s API and start creating branded short links in minutes.

See the API in action

Get a quick view of how Replug’s URL shortener API works so you can start creating and managing links in minutes.

Step 1: Authenticate

Connect securely using OAuth to gain access to your API endpoints.

Step 2: Create a short link

Send a POST request with your URL and campaign details to generate a branded short link.

Step 3: Receive short URL

The API responds with a unique short URL you can immediately use across your product or campaigns.

Step 4: Manage links programmatically

Update, route, or disable links using API requests as your needs change.

POST
/api/v2/links/create
Create a branded short link with optional custom slug, password protection, expiry date, and more
Request
curl -X POST 'https://api.replug.io/api/v2/links/create' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://example.com/my-product",
    "call_to_action_id": "507f1f77bcf86cd799439011",
  }'
Response
{
  "status": true,
  "message": "Link created successfully",
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "short_url": "abc123",
    "shorten_url": "abc123",
    "url": "https://example.com/my-product",
    "url_shortened": "https://rplg.co/abc123",
    "call_to_action_id": "507f1f77bcf86cd799439011",
    "brand_id": "507f1f77bcf86cd799439013",
    "created_at": "2025-12-15T10:30:00.000Z",
    "updated_at": "2025-12-15T10:30:00.000Z",
    "domain": {
      "url": "https://rplg.co",
      "scheme": "https",
      "netloc": "rplg.co",
      "registered_domain": "rplg.co"
    },
    "enabled_features": {
      "password_protection": false
    }
  }
}

Smart link capabilities

Deliver personalized experiences to every user automatically. Use traffic routing, geo-targeting, and A/B testing to increase engagement, boost conversions, and ensure every link drives results.

Smart link capabilities

Programmatic link creation

Create and manage links in seconds using a powerful API designed for marketers and developers. Automate link generation, use custom domains, and scale campaigns while keeping full control over your URLs.

Programmatic link creation

Why choose Replug over other URL shortener APIs?

See why marketers and developers trust Replug to deliver more than just short links.

Regular Links
Limited or no support for custom domains
Links typically go to a single destination
Often lacks mobile deep linking or app store fallback
Focused only on shortening links, not marketing outcomes
Replug favicon
With Replug
Use your own domains for every link to strengthen your brand and build trust
Automatically redirect users based on location, device, or campaign rules for better engagement
Easily connect web and mobile experiences to increase app engagement
Built for growth with features like UTM tagging, A/B testing, and campaign optimization

How can developers use the link shortener API

Manage links effortlessly across products, platforms, and campaigns.

SaaS product link generation

Automatically create branded links for onboarding flows, feature sharing, and product updates.

CRM link management

Generate and manage customer-facing links directly from your CRM workflows.

Affiliate platforms

Generate links for affiliates and influencers to accurately measure performance, attribution, and payouts.

Marketing automation tools

Use the API to embed link creation and traffic routing into your automated marketing workflows.

Internal dashboards

Manage links across teams using internal tools and admin panels.

QR code generators

Combine short links with dynamic QR codes for offline campaigns, events, packaging, and print marketing.

Frequently asked questions

Answers to common questions for developers and marketers using Replug’s API.

All features for smarter link management

Over 30,000+ marketers onboard

Manage all your links in one place

Customize links, track clicks, optimize campaigns, and turn insights into measurable revenue growth with Replug.
Sign up for free

No credit card required

CTA Preview