SliceIt URL Shortener : API Documentation
A URL Shortener with API Support.
Visit at scit.me
Developed by Tenzopy Digital
How to Retrieve API Token.
1. Log into your Profile of Sliceit.
2. Use the API Token Button in the navbar to retrieve your token (Keep your API Token Secret).
3. Add the API Token in the Header of every request.
Key | Value |
Authorization | Token <your token> |
Slice a Link [ POST Request ]
https://scit.me/api/slice/
Body
backhalf - The Back-Half part of the URL after the /
eg :
scit.me/tenz
url - URL that is needed to be shortened.
x-www-form-urlencoded
Key | Value |
url | https://tenzopy.com |
backhalf | tenz |
raw
{
"url" : "https://tenzopy.com",
"backhalf" : "tenz"
}
Output [ 201 CREATED ]
{
"stat": "true",
"result": {
"code": "tenz",
"short_url": "scit.me/tenz",
"full_short_url": "https://scit.me/tenz",
"target_url": "https://tenzopy.com"
}
}
Errors
- Backhalf Already Used [ 409 CONFLICT ]
{
"stat": "false",
"result": "backhalf already used."
}
- Invalid URL [ 400 BAD REQUEST ]
{
"stat": "false",
"result": "invalid url"
}
- Incomplete Keys [ 400 BAD REQUEST ]
Delete a Link [ DELETE Request ]
https://scit.me/api/remove/
Body
code - The code returned during slicing AKA Back-Half.
eg :
scit.me/tenz
-> code is tenz
x-www-form-urlencoded
Key | Value |
code | tenz |
raw
{
"code" : "tenz"
}
Output [ 200 OK ]
{
"stat": "true",
"result": "link deleted"
}
Errors
- Invalid Code [ 404 NOT FOUND ]
{
"stat": "false",
"result": "not found"
}
- Trying to delete Unauthorized Link/Code [ 403 FORBIDDEN ]
{
"stat": "false",
"result": "forbidden"
}
- Incomplete Keys [ 400 BAD REQUEST ]
About a Link [ GET Request ]
https://scit.me/api/info
Query Params
code - The code returned during slicing AKA Back-Half.
eg :
scit.me/tenz
-> code is tenz
Output [ 200 OK ]
{
"stat": "true",
"result": {
"code": "tenz",
"short_url": "scit.me/tenz",
"full_short_url": "https://scit.me/tenz",
"target_url": "https://tenzopy.com",
"is_active": true,
"clicks": 2
}
}
Errors
Invalid Code [ 404 NOT FOUND ]
{ "stat": "false", "result": "not found" }
Trying to access Unauthorized Link/Code [ 403 FORBIDDEN ]
{ "stat": "false", "result": "forbidden" }
Incomplete Keys [ 400 BAD REQUEST ]
Enable/Disable A Link [ PATCH Request ]
https://scit.me/api/active/
Body
code - The code returned during slicing AKA Back-Half.
eg :
scit.me/tenz
-> code is tenzstatus - True/False , The link should be enabled or disabled.
raw
{
"code" : "tenz",
"status" : true
}
Output [ 200 OK ]
{
"stat": "true",
"result": "link enabled"
}
Errors
Invalid Code [ 404 NOT FOUND ]
{ "stat": "false", "result": "not found" }
Trying to access Unauthorized Link/Code [ 403 FORBIDDEN ]
{ "stat": "false", "result": "forbidden" }
Incomplete/Invalid Keys [ 400 BAD REQUEST ]
Subscribe to my newsletter
Read articles from Tenzopy Digital directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by