List all links.
API endpoint:
https://shortens.me/s/api/v1/links
Request example:
curl --location --request GET 'https://shortens.me/s/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Get a link's details.
API endpoint:
https://shortens.me/s/api/v1/links/{id}
Request example:
curl --location --request GET 'https://shortens.me/s/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Create a link.
API endpoint:
https://shortens.me/s/api/v1/links
Request example:
curl --location --request POST 'https://shortens.me/s/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
Update a link.
API endpoint:
https://shortens.me/s/api/v1/links/{id}
Request example:
curl --location --request PUT 'https://shortens.me/s/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space
domain
disabled
0
.public
0
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for Geographic, 2
for Platform, 3
for Rotation.geo[index][key]
geo[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
rotation[index][value]
Delete a link.
API endpoint:
https://shortens.me/s/api/v1/links/{id}
Request example:
curl --location --request DELETE 'https://shortens.me/s/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'