API Endpoints
Below you will find the complete list of API endpoints available on flu.lu with technical details on how to use them.
Create a Shortened Link
POST /api/v1/shorten
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"url": "https://example.com"
}
Example Response
{
"shortcode": "abc123",
"short_url": "https://flu.lu/abc123",
"original_url": "https://example.com"
}
Get Link Statistics
GET /api/v1/stats/{shortcode}
Authorization: Bearer YOUR_API_KEY
Example Response
{
"shortcode": "abc123",
"clicks": 125,
"created_at": "2025-03-23T10:15:30Z",
"last_clicked": "2025-03-24T08:20:00Z"
}
Delete a Shortened Link
DELETE /api/v1/delete/{shortcode}
Authorization: Bearer YOUR_API_KEY
Example Response
{
"message": "Link successfully deleted"
}