Create Link
POST
/v1/linksRequest
Header Params
X-Auth-Id
string
required
X-Auth-Key
string
required
Body Params application/json
long_url
string
required
Long URL
title
string
optional
URL Title
password
string
optional
Protected Password
expired_at
integer
optional
Expired Links in UNIX Timestamp
Example
{
"long_url": "http://yourexamplelink.id/this-very-long-url"
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer
required
message
string
required
data
#/definitions/2362886required
Example
{
"code": 200,
"message": "link_created",
"data": {
"_id": "6673610e22b2eaa01abe4873",
"id": 414736,
"created_at": "2024-06-20T05:51:58.036434+07:00",
"updated_at": "2024-06-20T05:51:58.036435+07:00",
"short": "1JTi",
"long_url": "https://example.com/test-link2",
"blocked": false,
"blocked_reason": null,
"blocked_at": null,
"microsite": false,
"protected": false,
"disposable": false,
"adult": false,
"archive_at": null
}
}
Last modified: 4 months ago