Integrate TailURL into your applications with our powerful REST API. Create, manage, and track URLs programmatically.
https://tailurl.com/api/v1Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYPOST /urls
Content-Type: application/json
{
"url": "https://example.com/very/long/url",
"customSlug": "my-link",
"title": "My Link",
"description": "Link description"
}POST /urls - Create short URLGET /urls - List URLsGET /urls/:id - Get URL detailsPUT /urls/:id - Update URLDELETE /urls/:id - Delete URLGET /urls/:id/analytics - Get URL analyticsGET /analytics/summary - Get account summaryPOST /qr - Generate QR codeGET /qr/:id - Get QR codeconst response = await fetch(
'https://tailurl.com/api/v1/urls',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://example.com'
})
}
)import requests
response = requests.post(
'https://tailurl.com/api/v1/urls',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={'url': 'https://example.com'}
)curl -X POST \
https://tailurl.com/api/v1/urls \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"url": "https://example.com"}'