Link Shortener
The Link Shortener API lets you retrieve, create, edit and delete shortened links programmatically.
Details
Base URLstringhttps://api.example.comAuthenticationstringx-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 its creator. - 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 request body. - 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.
Discussion 0
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.
No comments yet. Sign in with Discord to start the conversation.
Sign in required
Reading is open to everyone. Posting, replying, reacting and reporting require a Discord account — we only receive your public username and avatar.