Call /upload
with domain to update
Call /upload
with domain
to update.
All files need to be uploaded for an update. Any existing hosted files not in the update request will be deleted.
To upload
or update
a new file and generate a link.
POST https://ext.tiiny.host/v1/upload
x-api-key:
multipart/form-data
{
"domain": "abc.tiiny.co", // optional
"files": (binary), // accepts multiple files
}
curl --location 'https://ext.tiiny.host/v1/upload' \
--header 'x-api-key: XXXXX-XXXXX-XXXXXX' \
--form 'files=@"/path/to/file/file.html"'
{
"success": true,
"data": {
"link": "something.tiiny.site",
"status": "active",
"profile": {
"quotaUsed": 5,
"quotaLimit": 1024
}
}
}
{
"success": false,
"error": "LINK_LIMIT_REACHED",
"message": "You've reached your links limit, please upgrade"
}
Retrieves user profile.
GET https://ext.tiiny.host/v1/profile
x-api-key:
curl --location 'https://ext.tiiny.host/v1/profile' \
--header 'x-api-key: XXXXX-XXXXX-XXXX'
{
"success": true,
"data": {
"links": ["abc.tiiny.site", "abc.myblog.info"],
"quotaUsed": 5,
"quotaLimit": 1024
}
}
Deletes a link.
POST https://ext.tiiny.host/v1/delete
x-api-key:
{
"domain": "abc.tiiny.co"
}
{
"success": true,
"data": {
"links": ["abc.tiiny.site", "abc.myblog.info"],
"quotaUsed": 5,
"quotaLimit": 1024
}
}