Shortening API
The four endpoints you need to create, list, update, and delete short links. Authenticate every request with an API key in the Authorization header.
Authentication
Authorization: Bearer elu_YOUR_API_KEYPOSTCreate a short link
POST /api/urls
curl -X POST https://url.elixpo.com/api/urls \
-H "Authorization: Bearer elu_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/long-url",
"title": "My Link",
"custom_code": "my-link"
}'{
"short_url": "https://url.elixpo.com/my-link",
"short_code": "my-link",
"original_url": "https://example.com/long-url",
"title": "My Link",
"created_at": "2026-03-20T12:00:00Z"
}GETList your links
GET /api/urls?limit=20&offset=0&search=example
curl https://url.elixpo.com/api/urls?limit=20&offset=0 \
-H "Authorization: Bearer elu_YOUR_KEY"GETGet a link
GET /api/urls/{code}
curl https://url.elixpo.com/api/urls/my-link \
-H "Authorization: Bearer elu_YOUR_KEY"PATCHUpdate a link
PATCH /api/urls/{code} — change destination URL, title, or active status.
curl -X PATCH https://url.elixpo.com/api/urls/my-link \
-H "Authorization: Bearer elu_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://new-destination.com", "is_active": true}'DELETEDelete a link
DELETE /api/urls/{code} — permanently removes the link and its analytics. This is irreversible.
curl -X DELETE https://url.elixpo.com/api/urls/my-link \
-H "Authorization: Bearer elu_YOUR_KEY"