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 {{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

The link has been deleted with success

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?