API

Request and Response data format is JSON.

Business plan: Limited to 3000 short links per month, 150 short links per day.

Ultimate plan: Limited to 30000 short links per month, 1500 short links per day.


API Calls

Show demo
Get API key

Request:

curl https://www.capsulink.com/api/login \
-d '{"username":"<Username or email>","password":"<Password>"}'

Response:

{
    "status":"success",
    "data":{
        "api_key":"<Some API key>"
    }
}
Example
Close
curl https://www.capsulink.com/api/login -d '{"username":"[email protected]","password":"111111"}'
Capsulate a link

Request:

curl https://www.capsulink.com/api/capsulate \
-H 'Api-Key: <Some API key>' \
-d '{"url":"<Some URL>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example
Close
curl https://www.capsulink.com/api/capsulate -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"url":"www.google.com"}'
Get short link details

Request:

curl https://www.capsulink.com/api/details \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link ID>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"<Folder Name>|None"
    }
}
Example
Close
curl https://www.capsulink.com/api/details -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121"}'
Change capsulated URL

Request:

curl https://www.capsulink.com/api/set_url \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>","url":"<New URL>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<New URL>",
        "folder":"<Folder Name>|None"
    }
}
Example
Close
curl https://www.capsulink.com/api/set_url -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121","url":"www.google.com"}'
Change short link branded domain (pass empty domain to reset default)

Request:

curl https://www.capsulink.com/api/set_domain \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>","domain":"<Your domain>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/<Your domain>\/<Short URL>",
        "stats_url":"http:\/\/<Your domain>\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"<Folder Name>|None"
    }
}
Example
Close
curl https://www.capsulink.com/api/set_domain -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121","domain":"domain.com"}'
Change short link short URL (pass empty short URL to reset default)

Request:

curl https://www.capsulink.com/api/set_short_url \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>","short_url":"<Your short URL>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Your short URL>",
        "redirect_url":"http:\/\/cli.re\/<Your short URL>",
        "stats_url":"http:\/\/cli.re\/<Your short URL>+",
        "url":"<Some URL>",
        "folder":"<Folder Name>|None"
    }
}
Example
Close
curl https://www.capsulink.com/api/set_short_url -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121","short_url":"rWaEh"}'
Get short link stats

Request:

curl https://www.capsulink.com/api/stats \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>"}'

Response:

{
    "status":"success",
    "data":{
        "click_stats":{
            "all":39,
            "current":39,
            "other":0
        },
        "graph":{
            "labels":["2016-05-30","2016-05-31"],
            "clicks":[39,0],
            "recapsulations":[39,null]},
            "referrer_stats":{
            "Twitter":{"clicks":20},
            "Email, IM and direct":{"clicks":18},
            "Capsulink":{"clicks":1}
        },
        "country_stats":{
            "LVA":{"clicks":24,"name":"Latvia"},
            "DEU":{"clicks":3,"name":"Germany"},
            "NLD":{"clicks":3,"name":"Netherlands"},
            "USA":{"clicks":3,"name":"United States"},
            "THA":{"clicks":1,"name":"Thailand"},
            "SWE":{"clicks":1,"name":"Sweden"},
            "Unknown":{"clicks":1,"name":"Unknown"},
            "IRL":{"clicks":1,"name":"Ireland"},
            "FRA":{"clicks":1,"name":"France"},
            "GBR":{"clicks":1,"name":"United Kingdom"}
        }
    }
}
Example
Close
curl https://www.capsulink.com/api/stats -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121"}'
Delete short link

Request:

curl https://www.capsulink.com/api/delete \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>"}'

Response:

{
    "status":"success",
    "data":"Capsule deleted"
} 
Example
Close
curl https://www.capsulink.com/api/delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121"}'
Change short link folder (pass empty folder name to reset default)

Request:

curl https://www.capsulink.com/api/set_folder \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>","folder":"<Folder Name>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Your short URL>",
        "redirect_url":"http:\/\/cli.re\/<Your short URL>",
        "stats_url":"http:\/\/cli.re\/<Your short URL>+",
        "url":"<Some URL>",
        "folder":"<Folder Name>|None"
    }
}
Example
Close
curl https://www.capsulink.com/api/set_folder -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"id":"121","folder":"Folder_Name"}'
Create a new folder (optional parameter "description" is available)

Request:

curl https://www.capsulink.com/api/create_folder \
-H 'Api-Key: <Some API key>' \
-d '{"title":"<Folder Name>"}'

Response:

{
    "status":"success",
    "data":{
        "title":"<Folder Name>",
        "description":"<Folder Description>|null",
        "capsules":"<Count>"
    }
}
Example
Close
curl https://www.capsulink.com/api/create_folder -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"title":"Folder_Name"}'
Delete a folder

Request:

curl https://www.capsulink.com/api/delete_folder \
-H 'Api-Key: <Some API key>' \
-d '{"folder":"<Folder Name>"}'

Response:

{
    "status":"success",
    "data":"Folder deleted"
}
Example
Close
curl https://www.capsulink.com/api/delete_folder -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"folder":"Folder_Name"}'
List all short links (pass an optional paramater "folder" to list only in that particular folder)

Request:

curl https://www.capsulink.com/api/list \
-H 'Api-Key: <Some API key>' \
-d '{}'

Response:

{
    "status":"success",
    "data":[
        {
            "id":"<Short link ID>",
            "short_url":"<Your short URL>",
            "redirect_url":"http:\/\/cli.re\/<Your short URL>",
            "stats_url":"http:\/\/cli.re\/<Your short URL>+",
            "url":"<Some URL>",
            "folder":"<Folder Name>|None"
        },
        ...
    ]
}
Example
Close
curl https://www.capsulink.com/api/list -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{}'
List all folders

Request:

curl https://www.capsulink.com/api/folders \
-H 'Api-Key: <Some API key>' \
-d '{}'

Response:

{
    "status":"success",
    "data":[
        {
            "title":"<Folder Name>",
            "description":"<Folder Description>|null",
            "capsules":"<Count>"
        },
        ...
    ]
}
Example
Close
curl https://www.capsulink.com/api/folders -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{}'
List the capsule target urls

Request:

curl https://www.capsulink.com/api/target_urls \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>"}'

Response:

{
    "status":"success",
    "data":[
        {
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
        },
        ...
    ]
}
Example
Close
curl https://www.capsulink.com/api/target_urls -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"capsule_id":"121"}'
Add target url to the short link (optional parameter "description" is available)

Request:

curl https://www.capsulink.com/api/target_url_add \
-H 'Api-Key: <Some API key>' \
-d '{"id":"<Short link Short Url>","url":"<Target Url>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "capsule_id":"<Short link ID>",
        "url":"<Target Url>",
        "description":"<Target Url Description>|null"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"capsule_id":"121", "url":"www.google.com"}'
Delete target url

Request:

curl https://www.capsulink.com/api/target_url_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>"}'

Response:

{
    "status":"success",
    "data":"Target Url Deleted"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"2"}'
Add country to the target url as one of the redirect rules (Country ISO Code may be in 'ISO Alpha 2', 'ISO Alpha 3' or 'ISO Numeric Code' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_country_add \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","iso_code":"<Country ISO Code>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_country_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","iso_code":"LV"}'
Delete country from the target url as one of the redirect rules (Country ISO Code may be in 'ISO Alpha 2', 'ISO Alpha 3' or 'ISO Numeric Code' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_country_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","iso_code":"<Country ISO Code>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_country_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","iso_code":"LV"}'
Add language to the target url as one of the redirect rules (Language ISO Code have be in 'ISO 639_1' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_language_add \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","iso_code":"<Language ISO Code>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_language_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","iso_code":"lv"}'
Delete language from the target url as one of the redirect rules (Language ISO Code have be in 'ISO 639_1' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_language_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","iso_code":"<Language ISO Code>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_language_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","iso_code":"lv"}'
Add OS-Device to the target url as one of the redirect rules (OS-Device is one of the joined OS-Devices names that can be find on any short link page in redirect rules section)

Request:

curl https://www.capsulink.com/api/target_url_rules_os_device_add \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","os_device_name":"<OS-Device>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_os_device_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","os_device_name":"Desktop Windows"}'
Delete OS-Device from the target url as one of the redirect rules (OS-Device is one of the joined OS-Devices names that can be find on any short link page in redirect rules section)

Request:

curl https://www.capsulink.com/api/target_url_rules_os_device_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","os_device_name":"<OS-Device>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_os_device_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","os_device_name":"Desktop Windows"}'
Add date period to the target url (Date only in 'Y-m-d H:i:s' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_date_add \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","date_time_start":"<Start date>","date_time_end":"<End date>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_start_date_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","date_time_start":"2017-10-21 22:15:00","date_time_end":"2017-10-22 22:15:00"}'
Delete date period from the target url

Request:

curl https://www.capsulink.com/api/target_url_rules_date_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_start_date_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5"}'
Add hour value to week-day schedule of the target url (Week Day: 'Monday' or 'Mon' format, Hour: 0-23)

Request:

curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_add \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","week_day":"<Week Day>","hour":"<Hour>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_add -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","week_day":"Mon","hour":"22"}'
Delete hour value from week-day schedule of the target url (Week Day: 'Monday' or 'Mon' format, Hour: 0-23)

Request:

curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_delete \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","week_day":"<Week Day>","hour":"<Hour>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_delete -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","week_day":"Mon","hour":"22"}'
Delete all hour values from week-day schedule of the target url for one day (Week Day: 'Monday' or 'Mon' format)

Request:

curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_delete_all \
-H 'Api-Key: <Some API key>' \
-d '{"target_url_id":"<Target Url ID>","week_day":"<Week Day>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Target Url ID>",
        "url":"<Target Url>",
        "description":"<Description>|null",
        "created_at":"<Created At>|null",
        "updated_at":"<Updated At>|null",
        "active_time_start":"<Allow to use start date>|null",
        "active_time_end":"<Allow to use end date>|null",
        "countries":"<[Countries]>|[]",
        "languages":"<[Languages]>|[]",
        "os_devices":"<[OS Devices]>|[]"
    }
}
Example
Close
curl https://www.capsulink.com/api/target_url_rules_week_day_time_schedule_delete_all -H 'Api-Key: 70a9da038e6wq3wr18971aca4b0adadc4h60fd82' -d '{"target_url_id":"5","week_day":"Mon"}'
Set password to short link

Request:

curl https://www.capsulink.com/api/short_link_password_set \
-H 'Api-Key: <Some API key>' \
-d '{"short_link":"<Short link>","password":"<Password>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example
Unset password to short link

Request:

curl https://www.capsulink.com/api/short_link_password_unset \
-H 'Api-Key: <Some API key>' \
-d '{"short_link":"<Short link>","password":"<Password>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example
Change password to short link

Request:

curl https://www.capsulink.com/api/short_link_password_change \
-H 'Api-Key: <Some API key>' \
-d '{"short_link":"<Short link>","old_password":"<Old Password>","new_password":"<New Password>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example
Make short link (short link) private status

Request:

curl https://www.capsulink.com/api/short_link_private_set \
-H 'Api-Key: <Some API key>' \
-d '{"short_link":"<Short link>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example
Make short link (short link) public status

Request:

curl https://www.capsulink.com/api/short_link_public_set \
-H 'Api-Key: <Some API key>' \
-d '{"short_link":"<Short link>"}'

Response:

{
    "status":"success",
    "data":{
        "id":"<Short link ID>",
        "short_url":"<Short URL>",
        "redirect_url":"http:\/\/cli.re\/<Short URL>",
        "stats_url":"http:\/\/cli.re\/<Short URL>+",
        "url":"<Some URL>",
        "folder":"None"
    }
}
Example