Create shortened URL.
POST/generate/shortenedurl/add
Create shortened URL.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
destinationstringrequired
The destination URL which the shortened URL will point to.
Example:
https://0codekit.com
customstring
The shortened URL identifier. This is the part that comes after lyl.ai
, and which is used for managing the shortened URL. It must be globally unique. Default is a random 8 letter string.
Example:
to4w5vyb
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
shortenedUrlstringrequired
The complete shortened URL.
Example:
https://lyl.ai/custom
identifierstringrequired
The shortened URL identifier. If one was provided, it is simply returned.
Example:
to4w5vyb
{
"shortenedUrl": "https://lyl.ai/custom",
"identifier": "to4w5vyb"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}