Url Shortening Service


This is a description of the API commands available for the Url Shortening service.

Shorten a Url

POST https://api.teknik.io/v1/Shorten

Headers

Name Value Default Value Description
Authorization Basic Encoding.Base64(<username>:<token>) NULL Basic Authentication to associate the shortened url with your account.

Parameters

Name Type Default Description
url string NULL Required The url you want to shorten. This url must be an absolute url.
doNotTrack bool false If you do not want the api request to be tracked as defined in the privacy policy.

Response

{"result":{"shortUrl":"shortened url", "originalUrl":"original url"}}
Name Type Description
shortUrl string The shortened url.
originalUrl string The original url that was shortened.

Example

$ curl --data "url=http://www.example.com/long/url/is/long" https://api.teknik.io/v1/Shorten

This will shorten the supplied url.