Link Shortener
Link Shortener
- Base URL
-
https://api.example.com - Authentication
x-api-key: YOUR_API_KEY
Endpoints
- Authentication How to authenticate your API requests.
-
GET
Get Link
/api/link/{name}Retrieves an existing shortened link by its name or destination URL. The supplied value is matched against both the name and url fields. -
POST
Create Link
/api/linkCreates a new shortened link. The link name and destination URL must be supplied in the request body. The link is attributed to API as it… -
PATCH
Edit Link
/api/linkUpdates the name and destination URL of an existing shortened link. The link ID, new name and new destination URL must be supplied in the… -
DELETE
Delete Link
/api/link/{id}Permanently deletes an existing shortened link using its database ID. Returns the link object as it existed immediately before deletion.