Link
Create new link
PUT
{{HOST}}/api/v1/link
This endpoint allows you to create a new short link
Headers
Name
Type
Description
x-client-id
string
x-client-secret
string
Request Body
Name
Type
Description
slug_length
string
The length required for the link id
ttl
integer
The TTL for the link
url
string
The url to shorten
Delete link
DELETE
{{HOST}}/api/v1/link
This endpoint allow you to delete a link
Headers
Name
Type
Description
x-client-id
string
x-client-secret
string
Request Body
Name
Type
Description
slug
string
The link id
Update link
PATCH
{{HOST}}/api/v1/link
If the link is not expired you can update the target url and the ttl
Headers
Name
Type
Description
x-client-id
string
x-client-secret
string
Request Body
Name
Type
Description
ttl
integer
url
string
slug
string
The link id
Last updated
Was this helpful?