---
title: URL Shortener API
slug: mono-go-url-shortener-api
url: https://apyverse.com/pankajretestflows/service/mono-go-url-shortener-api
provider: External Providers
categories: [Developer Tools, Marketing]
tags: [url-shortening, link-redirect, short-links, url-aliases, link-management]
auth: api_key
---

# URL Shortener API

Create short links from absolute URLs and resolve codes back to the original destination. Returns the short URL, code, permanence, and expiry when applicable.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Creates a shortened link from a long URL and returns the generated short link details.… | 10 |
| GET | `` | What it does Redirects a short URL code to its corresponding long URL. The request takes a path cod… | 10 |

## About

## What it does
URL Shortener lets you create short links from absolute http or https URLs, then resolve those codes back to the original destination. Send a `url` in the request body and get back a response with a `code`, `short_url`, `long_url`, `permanent`, and, when applicable, `expires_at`.

Use `permanent` when you want a link that never expires. When `permanent` is false, the response may include an expiry timestamp; when it is true, `expires_at` is omitted. The generated short URL includes the `/service/u/{code}` path, so you can store or share it directly without building the link yourself.

This is a good fit for product analytics, share links, campaign redirects, and internal tooling where you need a stable short alias for a longer destination. On the redirect endpoint, send the `code` in the path and the service returns an empty response after routing the user to the original URL.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/pankajretestflows/service/mono-go-url-shortener-api
