API Docs

Create URL

Create URL by sending POST data in json format to REST API endpoint: /api/v1/urls


Parameter Type Position # Description
apikey string Header Required Enter your 20-characters unique api key.
apisecret string Header Required Enter your 12-characters unique api secter.
Content-Type string Header Required application/json
destination string Body Required The destination URL that you want to transform into short URL.
slashtag string Body Optional The keyword for your branded short URL. Max: 100 chracters
redirectCode string Body Optional HTTP redirect codes (301, 302, 303, 304, 307, or 308). Default is 301
password string Body Optional Password to protect URL and default is no password. Max: 12 chracters
domain_id integer Body Optional ID of branded short domain. Default is 0

Sample post-data json



    "status": 200,
    "message": "ok",
    "data": {
        "id": 114,
        "destination": "https://t2mio.com/blog/google-url-shortener-goo-gl-shutting-down/",
        "hits": 0,
        "redirectCode": 301,
        "shortUrl": "http://google.cawe/googl_t2m",
        "slashtag": "googl_t2m",
        "password": "Yes",
        "createdAt": "2018-06-16 06:49:52"
    "status": 400,
    "message": "Bad request. <detailed-msg-will-go-here.>",
    "data": []