Developer API

Integrate url shortening capability directly into your apps and services with our simple, robust developer API.

POST /shorten
Shorten any URL

Description

Create a customized, shortened link that redirects immediately to the original destination. You can optionally configure an expiration duration.

Request Body

Field Type Required Description
url string Yes The absolute target HTTP or HTTPS URL to shorten.
expiresIn number No Expiration time-to-live in milliseconds (e.g. 3600000 for 1 hour). Max 4 hours.

Live API Console

Experiment with the API directly from your browser. Fill in the fields below to send a live, real-time request to the Linker API server and view the response.

Response
Response payload will be displayed here after you click "Send Request".