Developer API
Build your own integrations with our fast and secure REST API.
Fast & Scalable
Low latency redirects and high throughput link creation.
Secure
OAuth2 and API key authentication supported.
Shorten a URL
# POST /api/links
curl -X POST https://linky.sh/api/links \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://google.com",
"customSlug": "my-search"
}'Response Body
{
"id": "clxt2e3f00000v4v8",
"url": "https://google.com",
"shortSlug": "my-search",
"shortUrl": "https://linky.sh/my-search",
"createdAt": "2024-05-20T12:00:00Z"
}