Shorten a URL
POST
/urlThis endpoint shortens a given long URL.
Request
Body Params application/json
url
string
required
The URL to be shortened
Example:
https://example.com/very/long/url
customKey
string
optional
Custom key for the shortened URL
utmSource
string
optional
UTM source parameter
utmMedium
string
optional
UTM medium parameter
utmCampaign
string
optional
UTM campaign parameter
utmTerm
string
optional
UTM term parameter
utmContent
string
optional
UTM content parameter
title
string
optional
Title for the shortened URL
tags
array[string]
optional
Tags associated with the URL
Example
{
"url": "https://gregarious-corsage.info",
"customKey": "sint aliqua ea laboris",
"utmSource": "ut nostrud commodo",
"utmMedium": "reprehenderit",
"utmCampaign": "fugiat Excepteur esse aliquip cupidatat",
"utmTerm": "occaecat est velit sint",
"utmContent": "Vel tempore aspernatur amet. Voluptas tempora cupiditate amet totam reiciendis odit. Excepturi quae eum magni excepturi autem molestias non exercitationem. Et nesciunt at. A quam nam error dolore voluptatibus quod ut molestiae.",
"title": "culpa quaerat veritatis",
"tags": [
"deleniti"
]
}
Request samples
Responses
URL shortened successfully(200)
Validation Error(400)
Unauthorized(401)
Internal Server Error(500)
URL shortened successfully
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Modified at 4 months ago